Install dnet-config to $(STAGING_DIR)/host/bin rather then

$(STAGING_DIR)/usr/bin.


git-svn-id: svn://svn.openwrt.org/openwrt/packages@12916 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
lars 2008-10-08 17:27:59 +00:00
parent bc6430ef10
commit 6fc7df325f

View File

@ -1,5 +1,5 @@
# #
# Copyright (C) 2006 OpenWrt.org # Copyright (C) 2006-2008 OpenWrt.org
# #
# This is free software, licensed under the GNU General Public License v2. # This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information. # See /LICENSE for more information.
@ -50,7 +50,7 @@ CONFIGURE_ARGS += \
--enable-static \ --enable-static \
--without-check \ --without-check \
--without-python --without-python
CONFIGURE_VARS += \ CONFIGURE_VARS += \
ac_cv_dnet_bsd_bpf=no ac_cv_dnet_bsd_bpf=no
@ -59,20 +59,38 @@ MAKE_FLAGS += \
all install all install
define Build/InstallDev define Build/InstallDev
mkdir -p $(1)/usr/bin $(INSTALL_DIR) $(2)/bin
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/dnet-config $(1)/usr/bin/ $(INSTALL_BIN) \
mkdir -p $(1)/usr/include $(PKG_INSTALL_DIR)/usr/bin/dnet-config \
$(CP) $(PKG_INSTALL_DIR)/usr/include/dnet.h $(1)/usr/include/ $(2)/bin/
$(CP) $(PKG_INSTALL_DIR)/usr/include/dnet $(1)/usr/include/ $(SED) \
mkdir -p $(1)/usr/lib 's,^\(prefix\|exec_prefix\)=.*,\1=$(STAGING_DIR)/usr,g' \
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libdnet.{a,so*} $(1)/usr/lib/ $(2)/bin/dnet-config
$(INSTALL_DIR) $(1)/usr/include
$(INSTALL_DATA)\
$(PKG_INSTALL_DIR)/usr/include/dnet.h \
$(1)/usr/include/
$(CP) \
$(PKG_INSTALL_DIR)/usr/include/dnet \
$(1)/usr/include/
$(INSTALL_DIR) $(1)/usr/lib
$(INSTALL_DATA) \
$(PKG_INSTALL_DIR)/usr/lib/libdnet.{la,so*} \
$(1)/usr/lib/
endef endef
define Package/libdnet/install define Package/libdnet/install
$(INSTALL_DIR) $(1)/usr/lib $(INSTALL_DIR) $(1)/usr/lib
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libdnet.so.* $(1)/usr/lib/ $(INSTALL_DATA) \
$(PKG_INSTALL_DIR)/usr/lib/libdnet.so.* \
$(1)/usr/lib/
$(INSTALL_DIR) $(1)/usr/sbin $(INSTALL_DIR) $(1)/usr/sbin
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/dnet $(1)/usr/sbin/ $(INSTALL_BIN) \
$(PKG_INSTALL_DIR)/usr/sbin/dnet \
$(1)/usr/sbin/
endef endef
define Package/pydnet/install define Package/pydnet/install