summaryrefslogtreecommitdiff
path: root/package/libnl/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/libnl/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/libnl/Makefile')
-rw-r--r--package/libnl/Makefile17
1 files changed, 3 insertions, 14 deletions
diff --git a/package/libnl/Makefile b/package/libnl/Makefile
index 68b45bf0c..ab6872b79 100644
--- a/package/libnl/Makefile
+++ b/package/libnl/Makefile
@@ -5,22 +5,18 @@ include ${TOPDIR}/rules.mk
PKG_NAME:= libnl
PKG_VERSION:= 3.2.22
-PKG_RELEASE:= 2
+PKG_RELEASE:= 3
PKG_MD5SUM:= 2e1c889494d274aca24ce5f6a748e66e
PKG_DESCR:= Netlink library
PKG_SECTION:= libs
PKG_URL:= http://www.infradead.org/~tgr/libnl/
PKG_SITES:= http://www.infradead.org/~tgr/libnl/files/
PKG_NOPARALLEL:= 1
-
-PKG_SUBPKGS:= LIBNL LIBNL_DEV
-PKGSD_LIBNL_DEV:= header files for netlink library
-PKGSC_LIBNL_DEV:= devel
+PKG_OPTS:= dev
include ${TOPDIR}/mk/package.mk
-$(eval $(call PKG_template,LIBNL,libnl,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
-$(eval $(call PKG_template,LIBNL_DEV,libnl-dev,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKGSD_LIBNL_DEV},${PKGSC_LIBNL_DEV}))
+$(eval $(call PKG_template,LIBNL,libnl,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION},${PKG_OPTS}))
libnl-install:
${INSTALL_DIR} ${IDIR_LIBNL}/etc/libnl
@@ -38,11 +34,4 @@ libnl-install:
$(CP) ${WRKINST}/usr/lib/libnl/cli/qdisc/*.so \
${IDIR_LIBNL}/usr/lib/libnl/cli/qdisc
-libnl-dev-install:
- ${INSTALL_DIR} ${IDIR_LIBNL_DEV}/usr/include
- ${CP} ${WRKINST}/usr/include/* ${IDIR_LIBNL_DEV}/usr/include
- ${INSTALL_DIR} ${IDIR_LIBNL_DEV}/usr/lib/pkgconfig
- ${INSTALL_DATA} ${WRKINST}/usr/lib/pkgconfig/*.pc \
- ${IDIR_LIBNL_DEV}/usr/lib/pkgconfig
-
include ${TOPDIR}/mk/pkg-bottom.mk