2010-11-15 14:45:56 -05:00
|
|
|
# $OpenBSD: Makefile,v 1.8 2010/11/15 19:46:00 espie 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
|
|
|
|
2010-07-25 19:39:07 -04:00
|
|
|
DISTNAME = luaevent-prosody-0.1.1
|
|
|
|
PKGNAME= luaevent-0.2.1
|
2009-12-16 09:59:10 -05:00
|
|
|
CATEGORIES = devel
|
2007-07-03 15:36:10 -04:00
|
|
|
|
2010-07-25 19:39:07 -04:00
|
|
|
HOMEPAGE = http://prosody.im/doc/libevent
|
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
|
|
|
|
2010-07-25 19:39:07 -04:00
|
|
|
MASTER_SITES = http://matthewwild.co.uk/uploads/
|
2009-12-16 09:59:10 -05:00
|
|
|
|
|
|
|
MODULES = lang/lua
|
|
|
|
|
2010-11-15 14:45:56 -05:00
|
|
|
REGRESS_DEPENDS += devel/luaevent
|
|
|
|
RUN_DEPENDS += net/luasocket
|
2009-12-16 09:59:10 -05:00
|
|
|
|
|
|
|
CFLAGS += -I${LOCALBASE}/include -I../include
|
|
|
|
LINK = ${CC} ${CFLAGS} -fPIC -shared -L${LOCALBASE}/lib -o
|
|
|
|
|
2007-07-03 15:36:10 -04:00
|
|
|
do-build:
|
2010-07-25 19:39:07 -04:00
|
|
|
cd ${WRKDIST}/src && ${LINK} core.so luaevent.c buffer_event.c event_buffer.c event_callback.c utility.c -llua -levent
|
|
|
|
|
|
|
|
do-regress:
|
|
|
|
cd ${WRKDIST}/test && lua basic.lua
|
|
|
|
cd ${WRKDIST}/test && lua event_buffer-tests.lua
|
|
|
|
cd ${WRKDIST}/test && lua timertest.lua
|
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>
|