2011-04-25 11:01:28 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.4 2011/04/25 15:01:28 jolan Exp $
|
2010-07-25 21:17:48 -04:00
|
|
|
|
|
|
|
COMMENT= lua binding of zlib
|
|
|
|
SHARED_ONLY= Yes
|
2010-07-31 12:52:24 -04:00
|
|
|
DISTNAME= luazlib-20100731
|
2010-07-25 21:17:48 -04:00
|
|
|
CATEGORIES= archivers
|
2011-04-25 11:01:28 -04:00
|
|
|
MASTER_SITES= ${MASTER_SITE_BACKUP}
|
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
|
2010-11-14 19:22:45 -05:00
|
|
|
REGRESS_DEPENDS += archivers/luazlib
|
2010-07-25 21:17:48 -04:00
|
|
|
WANTLIB+= m z
|
|
|
|
|
|
|
|
CFLAGS+= -I${LOCALBASE}/include
|
|
|
|
LINK= ${CC} ${CFLAGS} -fPIC -shared -L${LOCALBASE}/lib -o
|
|
|
|
|
|
|
|
do-build:
|
|
|
|
cd ${WRKDIST} && ${LINK} zlib.so lua_zlib.c -lz -llua -lm
|
|
|
|
|
|
|
|
do-install:
|
|
|
|
${INSTALL_DATA_DIR} ${MODLUA_LIBDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/zlib.so ${MODLUA_LIBDIR}
|
|
|
|
|
|
|
|
do-regress:
|
|
|
|
cd ${WRKDIST} && lua test.lua
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|