openbsd-ports/devel/luaevent/Makefile
jasper 81b25b55e4 - fixup regress dependds
- simplify do-regress
2012-08-12 17:26:16 +00:00

49 lines
1.2 KiB
Makefile

# $OpenBSD: Makefile,v 1.12 2012/08/12 17:26:16 jasper Exp $
COMMENT = lua binding of libevent
SHARED_ONLY = Yes
DISTNAME = luaevent-prosody-0.1.1
PKGNAME= luaevent-0.2.1
REVISION = 1
CATEGORIES = devel
HOMEPAGE = http://prosody.im/doc/libevent
# LGPLv2.1
PERMIT_PACKAGE_CDROM = Yes
PERMIT_PACKAGE_FTP = Yes
PERMIT_DISTFILES_CDROM =Yes
PERMIT_DISTFILES_FTP = Yes
WANTLIB = event ${MODLUA_WANTLIB}
MASTER_SITES = http://matthewwild.co.uk/uploads/
MODULES = lang/lua
MODLUA_REGRESS_DEPENDS += devel/luaevent
MODLUA_RUN_DEPENDS += net/luasocket
REGRESS_FILES = basic event_buffer-tests timertest
CFLAGS += -I${MODLUA_INCL_DIR} -I../include
LINK = ${CC} ${CFLAGS} -fPIC -shared -L${LOCALBASE}/lib -o
do-build:
cd ${WRKDIST}/src && ${LINK} core.so luaevent.c buffer_event.c \
event_buffer.c event_callback.c utility.c ${MODLUA_LIB} -levent
do-regress:
.for r in ${REGRESS_FILES}
cd ${WRKDIST}/test && ${MODLUA_BIN} $r.lua
.endfor
do-install:
${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
.include <bsd.port.mk>