libnet-1.2.x: simplify build dep installation
authorStefan Tomanek <redacted>
Fri, 7 Jul 2017 22:36:25 +0000 (00:36 +0200)
committerStefan Tomanek <redacted>
Sun, 9 Jul 2017 16:51:11 +0000 (18:51 +0200)
Install include files and libraries into a common place; this
makes compiling depending packages easier.

Signed-off-by: Stefan Tomanek <redacted>
libs/libnet-1.2.x/Makefile

index 84591f01d8da6027896993200a5de61d2c1e8c67..c4ec90bfc77d69713ff9555f00cb7ecb2ad2d1fa 100644 (file)
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=libnet
 PKG_VERSION:=1.2-rc3
-PKG_RELEASE:=3
+PKG_RELEASE:=4
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
 PKG_SOURCE_URL:=http://sourceforge.net/projects/libnet-dev/files/
@@ -53,14 +53,14 @@ endef
 
 
 define Build/InstallDev
-       $(INSTALL_DIR) $(STAGING_DIR)/usr/lib/libnet-1.2.x/include
-       $(CP) $(PKG_INSTALL_DIR)/usr/include/libnet.h $(STAGING_DIR)/usr/lib/libnet-1.2.x/include
+       $(INSTALL_DIR) $(STAGING_DIR)/usr/include
+       $(CP) $(PKG_INSTALL_DIR)/usr/include/libnet.h $(STAGING_DIR)/usr/include
 
-       $(INSTALL_DIR) $(STAGING_DIR)/usr/lib/libnet-1.2.x/include/libnet
-       $(CP) $(PKG_INSTALL_DIR)/usr/include/libnet/libnet-*.h $(STAGING_DIR)/usr/lib/libnet-1.2.x/include/libnet
+       $(INSTALL_DIR) $(STAGING_DIR)/usr/include/libnet
+       $(CP) $(PKG_INSTALL_DIR)/usr/include/libnet/libnet-*.h $(STAGING_DIR)/usr/include/libnet
 
-       $(INSTALL_DIR) $(STAGING_DIR)/usr/lib/libnet-1.2.x/lib
-       $(CP) $(PKG_INSTALL_DIR)/usr/lib/libnet.{a,la,so*} $(STAGING_DIR)/usr/lib/libnet-1.2.x/lib
+       $(INSTALL_DIR) $(STAGING_DIR)/usr/lib
+       $(CP) $(PKG_INSTALL_DIR)/usr/lib/libnet.{a,la,so*} $(STAGING_DIR)/usr/lib
 endef
 
 define Package/libnet-1.2.x/install
git clone https://git.99rst.org/PROJECT