# Created by: Sunpoet Po-Chuan Hsieh # $FreeBSD: head/devel/lua-bitop/Makefile 531700 2020-04-14 15:49:36Z mat $ PORTNAME= bitop PORTVERSION= 1.0.2 PORTREVISION= 2 CATEGORIES= devel MASTER_SITES= http://bitop.luajit.org/download/ \ LOCAL/sunpoet PKGNAMEPREFIX= ${LUA_PKGNAMEPREFIX} DISTNAME= LuaBitOp-${PORTVERSION} MAINTAINER= sunpoet@FreeBSD.org COMMENT= Bitwise operations on numbers LICENSE= MIT CFLAGS+= -I${LUA_INCDIR} MAKE_ARGS= CC=${CC} LUA=${LUA_CMD} TEST_TARGET= test USES= gmake lua:module PLIST_FILES= ${LUA_MODLIBDIR}/bit.so .include .if ${LUA_VER_STR} >= 53 CFLAGS+= -DLUA_NUMBER_DOUBLE EXTRA_PATCHES+= ${PATCHDIR}/extra-patch-bittest.lua .endif do-install: ${MKDIR} ${STAGEDIR}${LUA_MODLIBDIR}/ ${INSTALL_LIB} ${WRKSRC}/bit.so ${STAGEDIR}${LUA_MODLIBDIR}/ .include