summaryrefslogtreecommitdiff
path: root/package/libnet/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'package/libnet/Makefile')
-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