X-Git-Url: http://git.openwrt.org/?p=openwrt%2Fsvn-archive%2Farchive.git;a=blobdiff_plain;f=libs%2Flibdnet%2FMakefile;h=12c1af28add14bff0c60566806de336c773ed151;hp=5bd4a72b15278b19bd31e52a369b312822387692;hb=09cbefc7ab6c0526866f214c4b886235d534dd79;hpb=b74e5d849eabf4d604db51c38b4ad0a1f03bd40e diff --git a/libs/libdnet/Makefile b/libs/libdnet/Makefile index 5bd4a72b15..12c1af28ad 100644 --- a/libs/libdnet/Makefile +++ b/libs/libdnet/Makefile @@ -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. # See /LICENSE for more information. @@ -15,6 +15,7 @@ PKG_RELEASE:=1 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE_URL:=@SF/$(PKG_NAME) PKG_MD5SUM:=416b765e9d9961501ac85e9a366fd219 +PKG_FIXUP:=libtool include $(INCLUDE_DIR)/package.mk @@ -43,12 +44,14 @@ define Package/pydnet/description low-level networking routines. endef +TARGET_CFLAGS += $(FPIC) + CONFIGURE_ARGS += \ --enable-shared \ --enable-static \ --without-check \ --without-python - + CONFIGURE_VARS += \ ac_cv_dnet_bsd_bpf=no @@ -57,20 +60,38 @@ MAKE_FLAGS += \ all install define Build/InstallDev - mkdir -p $(1)/usr/bin - $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/dnet-config $(1)/usr/bin/ - mkdir -p $(1)/usr/include - $(CP) $(PKG_INSTALL_DIR)/usr/include/dnet.h $(1)/usr/include/ - $(CP) $(PKG_INSTALL_DIR)/usr/include/dnet $(1)/usr/include/ - mkdir -p $(1)/usr/lib - $(CP) $(PKG_INSTALL_DIR)/usr/lib/libdnet.{a,so*} $(1)/usr/lib/ + $(INSTALL_DIR) $(2)/bin + $(INSTALL_BIN) \ + $(PKG_INSTALL_DIR)/usr/bin/dnet-config \ + $(2)/bin/ + $(SED) \ + 's,^\(prefix\|exec_prefix\)=.*,\1=$(STAGING_DIR)/usr,g' \ + $(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 define Package/libdnet/install $(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_BIN) $(PKG_INSTALL_DIR)/usr/sbin/dnet $(1)/usr/sbin/ + $(INSTALL_BIN) \ + $(PKG_INSTALL_DIR)/usr/sbin/dnet \ + $(1)/usr/sbin/ endef define Package/pydnet/install