2012-06-06 07:45:01 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.7 2012/06/06 11:45:01 jasper Exp $
|
2009-09-09 15:39:47 -04:00
|
|
|
|
|
|
|
SHARED_ONLY= Yes
|
2012-06-06 07:45:01 -04:00
|
|
|
|
2009-09-09 15:39:47 -04:00
|
|
|
COMMENT= library for bitwise operations in lua
|
2012-06-06 07:45:01 -04:00
|
|
|
|
|
|
|
V= 1.0.2
|
|
|
|
DISTNAME= LuaBitOp-$V
|
|
|
|
PKGNAME= luabitop-$V
|
2009-09-09 15:39:47 -04:00
|
|
|
CATEGORIES= devel
|
2012-06-06 07:45:01 -04:00
|
|
|
MASTER_SITES= ${HOMEPAGE}/download/
|
2009-09-09 15:39:47 -04:00
|
|
|
|
|
|
|
HOMEPAGE= http://bitop.luajit.org/
|
|
|
|
|
|
|
|
# MIT
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
|
|
|
|
USE_GMAKE= Yes
|
|
|
|
MODULES= lang/lua
|
2010-11-15 14:45:56 -05:00
|
|
|
REGRESS_DEPENDS+=devel/luabitop
|
2009-09-09 15:39:47 -04:00
|
|
|
MAKE_ENV+= INCLUDES=-I${LOCALBASE}/include
|
|
|
|
|
|
|
|
do-install:
|
2012-05-15 11:15:19 -04:00
|
|
|
${INSTALL_DATA_DIR} ${MODLUA_LIBDIR} ${MODLUA_DOCDIR}
|
2010-06-18 13:59:06 -04:00
|
|
|
${INSTALL_DATA} ${WRKBUILD}/bit.so ${MODLUA_LIBDIR}
|
2009-09-09 15:39:47 -04:00
|
|
|
cd ${WRKSRC}/doc && \
|
|
|
|
find . -type d \
|
2012-05-15 11:15:19 -04:00
|
|
|
-exec ${INSTALL_DATA_DIR} ${MODLUA_DOCDIR}/{} \; && \
|
2009-09-09 15:39:47 -04:00
|
|
|
find . ! -type d \
|
2012-05-15 11:15:19 -04:00
|
|
|
-exec ${INSTALL_DATA} -m 644 {} ${MODLUA_DOCDIR}/{} \;
|
2009-09-09 15:39:47 -04:00
|
|
|
do-regress:
|
|
|
|
lua ${WRKSRC}/bittest.lua
|
|
|
|
lua ${WRKSRC}/md5test.lua
|
|
|
|
lua ${WRKSRC}/bitbench.lua
|
|
|
|
lua ${WRKSRC}/nsievebits.lua
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|