summaryrefslogtreecommitdiff
path: root/package/libdnet/Makefile
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/libdnet/Makefile
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/libdnet/Makefile')
-rw-r--r--package/libdnet/Makefile18
1 files changed, 3 insertions, 15 deletions
diff --git a/package/libdnet/Makefile b/package/libdnet/Makefile
index 78e218cd4..214c55192 100644
--- a/package/libdnet/Makefile
+++ b/package/libdnet/Makefile
@@ -5,21 +5,17 @@ include $(TOPDIR)/rules.mk
PKG_NAME:= libdnet
PKG_VERSION:= 1.11
-PKG_RELEASE:= 1
+PKG_RELEASE:= 2
PKG_MD5SUM:= 04c394ed8e1e7fc455456e79e908916d
PKG_DESCR:= a low-level networking library
PKG_SECTION:= libs
PKG_URL:= http://libdnet.sourceforge.net/
PKG_SITES:= ${MASTER_SITE_SOURCEFORGE:=$(PKG_NAME)/}
-
-PKG_SUBPKGS:= LIBDNET LIBDNET_DEV
-PKGSD_LIBDNET_DEV:= headers for a low-level networking library
-PKGSC_LIBDNET_DEV:= devel
+PKG_OPTS:= dev
include $(TOPDIR)/mk/package.mk
-$(eval $(call PKG_template,LIBDNET,libdnet,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
-$(eval $(call PKG_template,LIBDNET_DEV,libdnet-dev,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKGSD_LIBDNET_DEV},${PKGSC_LIBDNET_DEV}))
+$(eval $(call PKG_template,LIBDNET,libdnet,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION},${PKG_OPTS}))
TARGET_CFLAGS:= $(filter-out -flto,$(TARGET_CFLAGS))
CONFIGURE_ENV+= ac_cv_dnet_bsd_bpf=no
@@ -29,12 +25,4 @@ libdnet-install:
$(INSTALL_DIR) $(IDIR_LIBDNET)/usr/lib
$(CP) $(WRKINST)/usr/lib/libdnet.so* $(IDIR_LIBDNET)/usr/lib
-libdnet-dev-install:
- $(INSTALL_DIR) $(IDIR_LIBDNET_DEV)/usr/bin
- $(CP) $(WRKINST)/usr/bin/dnet-config $(IDIR_LIBDNET_DEV)/usr/bin
- $(INSTALL_DIR) $(IDIR_LIBDNET_DEV)/usr/include
- $(CP) $(WRKINST)/usr/include/* \
- $(IDIR_LIBDNET_DEV)/usr/include
-
-
include ${TOPDIR}/mk/pkg-bottom.mk