summaryrefslogtreecommitdiff
path: root/package/libnet
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2013-10-21 17:20:24 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2013-10-21 17:20:24 +0200
commit90d5c8b73e8d538e121275b12e714332ca785cff (patch)
treeb70121e4732d658097d1db00c8af381629ec82eb /package/libnet
parent33dd541790614765228a71477e1f8b2b6aa21ce1 (diff)
automatically create development subpackages, without user interaction, depend on gcc for the target, simplifies a lot of library packages
Diffstat (limited to 'package/libnet')
-rw-r--r--package/libnet/Makefile17
1 files changed, 3 insertions, 14 deletions
diff --git a/package/libnet/Makefile b/package/libnet/Makefile
index 9e6b7663f..916d3901c 100644
--- a/package/libnet/Makefile
+++ b/package/libnet/Makefile
@@ -5,7 +5,7 @@ include ${TOPDIR}/rules.mk
PKG_NAME:= libnet
PKG_VERSION:= 1.1.5
-PKG_RELEASE:= 1
+PKG_RELEASE:= 2
PKG_MD5SUM:= a9bc1d75a610efcfee200d3e28d8eb8f
PKG_DESCR:= a low-level packet creation library
PKG_SECTION:= libs
@@ -14,15 +14,11 @@ PKG_BUILDDEP:= libpcap
PKG_URL:= http://sourceforge.net/projects/libnet-dev/
PKG_SITES:= ${MASTER_SITE_SOURCEFORGE:=libnet-dev/}
PKG_NEED_CXX:= 1
-
-PKG_SUBPKGS:= LIBNET LIBNET_DEV
-PKGSC_LIBNET_DEV:= devel
-PKGSD_LIBNET_DEV:= libnet headers
+PKG_OPTS:= dev
include ${TOPDIR}/mk/package.mk
-$(eval $(call PKG_template,LIBNET,libnet,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
-$(eval $(call PKG_template,LIBNET_DEV,libnet-dev,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKGSD_LIBNET_DEV},${PKGSC_LIBNET_DEV}))
+$(eval $(call PKG_template,LIBNET,libnet,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION},${PKG_OPTS}))
TARGET_CFLAGS:= $(filter-out -flto,$(TARGET_CFLAGS))
ENDIAN:=lil
@@ -43,11 +39,4 @@ libnet-install:
${INSTALL_DIR} ${IDIR_LIBNET}/usr/lib
${CP} ${WRKINST}/usr/lib/libnet.so* ${IDIR_LIBNET}/usr/lib
-libnet-dev-install:
- ${INSTALL_DIR} ${IDIR_LIBNET_DEV}/usr/include
- ${CP} ${WRKINST}/usr/include/* ${IDIR_LIBNET_DEV}/usr/include
- ${INSTALL_DIR} ${IDIR_LIBNET_DEV}/usr/bin
- ${INSTALL_BIN} ${WRKINST}/usr/bin/libnet-config \
- ${IDIR_LIBNET_DEV}/usr/bin
-
include ${TOPDIR}/mk/pkg-bottom.mk