summaryrefslogtreecommitdiff
path: root/openwrt/package/libdnet
diff options
context:
space:
mode:
authornico <nico@3c298f89-4303-0410-b956-a3cf2f4a3e73>2005-09-20 07:41:52 +0000
committernico <nico@3c298f89-4303-0410-b956-a3cf2f4a3e73>2005-09-20 07:41:52 +0000
commit0e6dc9622ede76222f9dd3c4d13c66e4fa806a78 (patch)
tree2ed54d2bacb9b311bf3fca9f63a1135b6527a932 /openwrt/package/libdnet
parent9d3bf2a7408ed765481e42b37783a4491a067843 (diff)
fix dnet-config (remove references to /usr/{include,lib}),
only install and remove what's needed in staging_dir git-svn-id: svn://svn.openwrt.org/openwrt/trunk@1962 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'openwrt/package/libdnet')
-rw-r--r--openwrt/package/libdnet/Makefile10
-rw-r--r--openwrt/package/libdnet/patches/libdnet-1.10-dnet_config.patch23
2 files changed, 29 insertions, 4 deletions
diff --git a/openwrt/package/libdnet/Makefile b/openwrt/package/libdnet/Makefile
index e47b34aff4..5501b6bd98 100644
--- a/openwrt/package/libdnet/Makefile
+++ b/openwrt/package/libdnet/Makefile
@@ -76,9 +76,10 @@ $(STAGING_DIR)/usr/lib/libdnet.so: $(PKG_BUILD_DIR)/.built
mkdir -p $(STAGING_DIR)/usr/bin
cp -fpR $(PKG_INSTALL_DIR)/usr/bin/dnet-config $(STAGING_DIR)/usr/bin/
mkdir -p $(STAGING_DIR)/usr/include
- cp -fpR $(PKG_INSTALL_DIR)/usr/include/dnet* $(STAGING_DIR)/usr/include/
+ cp -fpR $(PKG_INSTALL_DIR)/usr/include/dnet.h $(STAGING_DIR)/usr/include/
+ cp -fpR $(PKG_INSTALL_DIR)/usr/include/dnet $(STAGING_DIR)/usr/include/
mkdir -p $(STAGING_DIR)/usr/lib
- cp -fpR $(PKG_INSTALL_DIR)/usr/lib/libdnet.* $(STAGING_DIR)/usr/lib/
+ cp -fpR $(PKG_INSTALL_DIR)/usr/lib/libdnet.{a,so*} $(STAGING_DIR)/usr/lib/
touch $@
install-dev: $(STAGING_DIR)/usr/lib/libdnet.so
@@ -86,8 +87,9 @@ install-dev: $(STAGING_DIR)/usr/lib/libdnet.so
uninstall-dev:
rm -rf \
$(STAGING_DIR)/usr/bin/dnet-config \
- $(STAGING_DIR)/usr/include/dnet* \
- $(STAGING_DIR)/usr/lib/libdnet.* \
+ $(STAGING_DIR)/usr/include/dnet.h \
+ $(STAGING_DIR)/usr/include/dnet \
+ $(STAGING_DIR)/usr/lib/libdnet.{a,so*} \
compile: install-dev
clean: uninstall-dev
diff --git a/openwrt/package/libdnet/patches/libdnet-1.10-dnet_config.patch b/openwrt/package/libdnet/patches/libdnet-1.10-dnet_config.patch
new file mode 100644
index 0000000000..005ac3305c
--- /dev/null
+++ b/openwrt/package/libdnet/patches/libdnet-1.10-dnet_config.patch
@@ -0,0 +1,23 @@
+--- libdnet-1.10/dnet-config.in.orig 2001-10-19 03:29:00.000000000 +0200
++++ libdnet-1.10/dnet-config.in 2005-09-20 09:32:53.000000000 +0200
+@@ -45,10 +45,18 @@
+ done
+
+ if test "$echo_cflags" = "yes"; then
+- echo -I@includedir@
++ includes=
++ if test "@includedir@" != "/usr/include" ; then
++ includes=-I@includedir@
++ fi
++ echo $includes
+ fi
+
+ if test "$echo_libs" = "yes"; then
+- echo -L@libdir@ -ldnet @LIBS@
++ libs=
++ if test "@libdir@" != "/usr/lib" ; then
++ libs=-I@libdir@
++ fi
++ echo $libs -ldnet @LIBS@
+ fi
+