summaryrefslogtreecommitdiff
path: root/package/libevent/Makefile
blob: 25897ad614e676a8b0943a9a2b3ffa8ec17aa05a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# This file is part of the OpenADK project. OpenADK is copyrighted
# material, please see the LICENCE file in the top-level directory.

include $(TOPDIR)/rules.mk

PKG_NAME:=		libevent
PKG_VERSION:=		1.3
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_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}))

post-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