summaryrefslogtreecommitdiff
path: root/package/libevent/Makefile
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2010-12-15 18:49:50 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2010-12-15 18:49:50 +0100
commit12f6f7118fa1f00ea90148b1f46080c64ca6bd55 (patch)
tree4a2fb825ce9f9cfdce1d27d98d219e7e3686ca09 /package/libevent/Makefile
parentf7f913a1d16a12c41d9d34a956a26b5f6415d32b (diff)
add header package
Diffstat (limited to 'package/libevent/Makefile')
-rw-r--r--package/libevent/Makefile21
1 files changed, 17 insertions, 4 deletions
diff --git a/package/libevent/Makefile b/package/libevent/Makefile
index fb664f92f..829162b10 100644
--- a/package/libevent/Makefile
+++ b/package/libevent/Makefile
@@ -5,20 +5,33 @@ include $(TOPDIR)/rules.mk
PKG_NAME:= libevent
PKG_VERSION:= 1.3
-PKG_RELEASE:= 2
+PKG_RELEASE:= 3
PKG_MD5SUM:= d87b05143c6c2bc9464758e68e9c6e25
PKG_DESCR:= Event notification library for event-driven network servers
PKG_SECTION:= libs
-PKG_URL:= http://www.monkey.org/~provos
+PKG_URL:= http://www.monkey.org/~provos/
PKG_SITES:= http://www.monkey.org/~provos/
+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,${PKG_NAME},$(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}))
+
+SUB_INSTALLS-y:=
+SUB_INSTALLS-m:=
+SUB_INSTALLS-${ADK_PACKAGE_LIBEVENT_DEV}+= libevent-dev-install
-post-install:
+post-install: ${SUB_INSTALLS-m} ${SUB_INSTALLS-y}
$(INSTALL_DIR) $(IDIR_LIBEVENT)/usr/lib
- $(CP) $(WRKINST)/usr/lib/libevent-$(PKG_VERSION).so* \
+ $(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