1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-02-07 11:49:40 +00:00
Mathieu Arnold beb1c1fe19 USES=lua gained flavors.
Ports using USES=lua:module or lua:flavors will be flavored.  A range of
supported lua versions can be set using XX-YY (or XX-, or -YY, or simply ZZ)
for ports not supporting all lua versions.

USES=lua sets LUA_FLAVOR that needs to be used on all dependencies of
flavored lua ports, in a similar way as PHP or Python flavors.

PR:		245038
Submitted by:	andrew tao11 riddles org uk
Reviewed by:	mat, kevans, russ haley gmail com
Approved by:	mat (portmgr)
Differential Revision:	https://reviews.freebsd.org/D16494
2020-04-14 15:49:36 +00:00

37 lines
789 B
Makefile

# Created by: Sunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>
# $FreeBSD$
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 <bsd.port.pre.mk>
.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 <bsd.port.post.mk>