summaryrefslogtreecommitdiff
path: root/package/libevent
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/libevent
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/libevent')
-rw-r--r--package/libevent/Makefile14
1 files changed, 3 insertions, 11 deletions
diff --git a/package/libevent/Makefile b/package/libevent/Makefile
index 45afa7005..821822f81 100644
--- a/package/libevent/Makefile
+++ b/package/libevent/Makefile
@@ -5,24 +5,20 @@ include $(TOPDIR)/rules.mk
PKG_NAME:= libevent
PKG_VERSION:= 1.4.14b
-PKG_RELEASE:= 1
+PKG_RELEASE:= 2
PKG_MD5SUM:= a00e037e4d3f9e4fe9893e8a2d27918c
PKG_DESCR:= Event notification library for event-driven network servers
PKG_SECTION:= libs
PKG_URL:= http://www.monkey.org/~provos/
PKG_SITES:= http://www.monkey.org/~provos/
+PKG_OPTS:= dev
DISTFILES:= $(PKG_NAME)-$(PKG_VERSION)-stable.tar.gz
WRKDIST= $(WRKDIR)/$(PKG_NAME)-$(PKG_VERSION)-stable
-PKG_SUBPKGS:= LIBEVENT LIBEVENT_DEV
-PKGSD_LIBEVENT_DEV:= development files for libevent
-PKGSC_LIBEVENT_DEV:= devel
-
include $(TOPDIR)/mk/package.mk
-$(eval $(call PKG_template,LIBEVENT,libevent,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
-$(eval $(call PKG_template,LIBEVENT_DEV,libevent-dev,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKGSD_LIBEVENT_DEV},${PKGSC_LIBEVENT_DEV}))
+$(eval $(call PKG_template,LIBEVENT,libevent,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION},${PKG_OPTS}))
TARGET_CFLAGS:= $(filter-out -flto,$(TARGET_CFLAGS))
@@ -30,8 +26,4 @@ libevent-install:
$(INSTALL_DIR) $(IDIR_LIBEVENT)/usr/lib
$(CP) $(WRKINST)/usr/lib/libevent*.so* $(IDIR_LIBEVENT)/usr/lib
-libevent-dev-install:
- ${INSTALL_DIR} ${IDIR_LIBEVENT_DEV}/usr/include
- ${CP} ${WRKINST}/usr/include/*.h ${IDIR_LIBEVENT_DEV}/usr/include
-
include ${TOPDIR}/mk/pkg-bottom.mk