From 90d5c8b73e8d538e121275b12e714332ca785cff Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Mon, 21 Oct 2013 17:20:24 +0200 Subject: automatically create development subpackages, without user interaction, depend on gcc for the target, simplifies a lot of library packages --- package/libnet/Makefile | 17 +++-------------- 1 file changed, 3 insertions(+), 14 deletions(-) (limited to 'package/libnet') 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 -- cgit v1.2.3