2010-06-18 13:59:06 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.6 2010/06/18 18:03:13 jasper Exp $
|
2007-07-03 15:36:10 -04:00
|
|
|
|
2009-12-16 09:59:10 -05:00
|
|
|
COMMENT = lua binding of libevent
|
|
|
|
SHARED_ONLY = Yes
|
2007-07-03 15:36:10 -04:00
|
|
|
|
2009-12-16 09:59:10 -05:00
|
|
|
DISTNAME = luaevent-0.2.0
|
|
|
|
CATEGORIES = devel
|
2007-07-03 15:36:10 -04:00
|
|
|
|
2009-12-16 09:59:10 -05:00
|
|
|
HOMEPAGE = http://luaforge.net/projects/luaevent/
|
2007-07-03 15:36:10 -04:00
|
|
|
|
2009-12-16 09:59:10 -05:00
|
|
|
# LGPLv2.1
|
|
|
|
PERMIT_PACKAGE_CDROM = Yes
|
|
|
|
PERMIT_PACKAGE_FTP = Yes
|
|
|
|
PERMIT_DISTFILES_CDROM =Yes
|
|
|
|
PERMIT_DISTFILES_FTP = Yes
|
2007-07-03 15:36:10 -04:00
|
|
|
|
2009-12-16 09:59:10 -05:00
|
|
|
WANTLIB = event
|
2007-07-03 15:36:10 -04:00
|
|
|
|
2009-12-16 09:59:10 -05:00
|
|
|
MASTER_SITES = http://luaforge.net/frs/download.php/2629/
|
|
|
|
|
|
|
|
MODULES = lang/lua
|
|
|
|
|
|
|
|
RUN_DEPENDS += ::net/luasocket
|
|
|
|
|
|
|
|
CFLAGS += -I${LOCALBASE}/include -I../include
|
|
|
|
LINK = ${CC} ${CFLAGS} -fPIC -shared -L${LOCALBASE}/lib -o
|
|
|
|
|
|
|
|
NO_REGRESS = Yes
|
2007-07-03 15:36:10 -04:00
|
|
|
|
|
|
|
do-build:
|
2009-12-16 09:59:10 -05:00
|
|
|
cd ${WRKDIST}/src && ${LINK} core.so luaevent.c event_buffer.c event_callback.c -levent
|
2007-07-03 15:36:10 -04:00
|
|
|
|
|
|
|
do-install:
|
2010-06-18 13:59:06 -04:00
|
|
|
${INSTALL_DATA_DIR} ${MODLUA_DATADIR}
|
|
|
|
${INSTALL_DATA_DIR} ${MODLUA_LIBDIR}/luaevent
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/lua/luaevent.lua ${MODLUA_DATADIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/src/*.so ${MODLUA_LIBDIR}/luaevent
|
2009-12-16 09:59:10 -05:00
|
|
|
|
2007-07-03 15:36:10 -04:00
|
|
|
.include <bsd.port.mk>
|