openbsd-ports/archivers/luazlib/Makefile

36 lines
813 B
Makefile
Raw Normal View History

# $OpenBSD: Makefile,v 1.8 2012/07/10 15:22:44 jasper Exp $
2010-07-25 21:17:48 -04:00
COMMENT= lua binding of zlib
SHARED_ONLY= Yes
DISTNAME= luazlib-20100731
REVISION= 1
2010-07-25 21:17:48 -04:00
CATEGORIES= archivers
MASTER_SITES= http://distfiles.nl/
2010-07-25 21:17:48 -04:00
HOMEPAGE= http://github.com/brimworks/lua-zlib/
# MIT
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
MODULES= lang/lua
REGRESS_DEPENDS += ${BASE_PKGPATH}
2012-05-15 15:48:30 -04:00
WANTLIB+= ${MODLUA_WANTLIB} m z
2010-07-25 21:17:48 -04:00
CFLAGS+= `pkg-config --cflags ${MODLUA_DEP}`
2010-07-25 21:17:48 -04:00
LINK= ${CC} ${CFLAGS} -fPIC -shared -L${LOCALBASE}/lib -o
do-build:
cd ${WRKDIST} && ${LINK} zlib.so lua_zlib.c -lz ${MODLUA_LIB} -lm
2010-07-25 21:17:48 -04:00
do-install:
${INSTALL_DATA_DIR} ${MODLUA_LIBDIR}
${INSTALL_DATA} ${WRKSRC}/zlib.so ${MODLUA_LIBDIR}
do-regress:
cd ${WRKDIST} && ${MODLUA_BIN} test.lua
2010-07-25 21:17:48 -04:00
.include <bsd.port.mk>