openbsd-ports/devel/luaevent/Makefile

40 lines
969 B
Makefile
Raw Normal View History

2010-06-18 13:59:06 -04:00
# $OpenBSD: Makefile,v 1.6 2010/06/18 18:03:13 jasper Exp $
COMMENT = lua binding of libevent
SHARED_ONLY = Yes
DISTNAME = luaevent-0.2.0
CATEGORIES = devel
HOMEPAGE = http://luaforge.net/projects/luaevent/
# LGPLv2.1
PERMIT_PACKAGE_CDROM = Yes
PERMIT_PACKAGE_FTP = Yes
PERMIT_DISTFILES_CDROM =Yes
PERMIT_DISTFILES_FTP = Yes
WANTLIB = event
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
do-build:
cd ${WRKDIST}/src && ${LINK} core.so luaevent.c event_buffer.c event_callback.c -levent
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
.include <bsd.port.mk>