2010-06-18 13:59:06 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.7 2010/06/18 18:06:56 jasper Exp $
|
2006-11-24 13:58:02 -05:00
|
|
|
|
2007-09-15 22:52:56 -04:00
|
|
|
COMMENT= library for packing and unpacking binary data
|
2006-11-24 13:58:02 -05:00
|
|
|
DISTNAME= luapack-20061124
|
2008-06-11 01:04:37 -04:00
|
|
|
PKGNAME= ${DISTNAME}p0
|
2006-11-24 13:58:02 -05:00
|
|
|
CATEGORIES= devel
|
2010-01-30 14:08:30 -05:00
|
|
|
MASTER_SITES= http://openbsddistfiles.org/jolan/
|
2006-11-24 13:58:02 -05:00
|
|
|
|
|
|
|
HOMEPAGE= http://www.tecgraf.puc-rio.br/~lhf/ftp/lua/
|
|
|
|
|
|
|
|
# PD
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
|
2008-06-11 01:04:37 -04:00
|
|
|
MODULES= lang/lua
|
2006-11-24 13:58:02 -05:00
|
|
|
SHARED_ONLY= Yes
|
2010-06-15 16:24:06 -04:00
|
|
|
REGRESS_DEPENDS=::${BUILD_PKGPATH}
|
2006-11-24 13:58:02 -05:00
|
|
|
|
|
|
|
do-build:
|
|
|
|
${CC} ${CFLAGS} -fPIC -I${LOCALBASE}/include -shared \
|
|
|
|
${WRKSRC}/lpack.c -o ${WRKDIST}/pack.so
|
|
|
|
|
|
|
|
do-install:
|
2010-06-18 13:59:06 -04:00
|
|
|
${INSTALL_DATA_DIR} ${MODLUA_LIBDIR}
|
2006-11-24 13:58:02 -05:00
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/luapack
|
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/luapack
|
2010-06-18 13:59:06 -04:00
|
|
|
${INSTALL_DATA} ${WRKBUILD}/pack.so ${MODLUA_LIBDIR}
|
2006-11-24 13:58:02 -05:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/luapack
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/test.lua ${PREFIX}/share/examples/luapack
|
|
|
|
|
|
|
|
do-regress:
|
|
|
|
lua ${WRKSRC}/test.lua
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|