openbsd-ports/devel/luabitop/Makefile

41 lines
992 B
Makefile
Raw Normal View History

2011-07-31 22:13:45 -04:00
# $OpenBSD: Makefile,v 1.4 2011/08/01 02:13:45 jolan Exp $
SHARED_ONLY= Yes
COMMENT= library for bitwise operations in lua
DISTNAME= LuaBitOp-1.0.1
PKGNAME= luabitop-1.0.1
2011-07-31 22:13:45 -04:00
REVISION= 0
CATEGORIES= devel
MASTER_SITES= http://bitop.luajit.org/download/
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
MAKE_ENV+= INCLUDES=-I${LOCALBASE}/include
DOCDIR= ${PREFIX}/share/doc/luabitop
do-install:
2010-06-18 13:59:06 -04:00
${INSTALL_DATA_DIR} ${MODLUA_LIBDIR}
${INSTALL_DATA_DIR} ${DOCDIR}
2010-06-18 13:59:06 -04:00
${INSTALL_DATA} ${WRKBUILD}/bit.so ${MODLUA_LIBDIR}
cd ${WRKSRC}/doc && \
find . -type d \
-exec ${INSTALL_DATA_DIR} ${DOCDIR}/{} \; && \
find . ! -type d \
-exec ${INSTALL_DATA} -m 644 {} ${DOCDIR}/{} \;
do-regress:
lua ${WRKSRC}/bittest.lua
lua ${WRKSRC}/md5test.lua
lua ${WRKSRC}/bitbench.lua
lua ${WRKSRC}/nsievebits.lua
.include <bsd.port.mk>