forked from Lainports/freebsd-ports
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
27 lines
591 B
Makefile
27 lines
591 B
Makefile
# Created by: Rong-En Fan <rafan@FreeBSD.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= bitlib
|
|
PORTVERSION= 24
|
|
PORTREVISION= 1
|
|
CATEGORIES= devel
|
|
MASTER_SITES= http://luaforge.net/frs/download.php/2715/
|
|
PKGNAMEPREFIX= ${LUA_PKGNAMEPREFIX}
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= Tiny library for bitwise operations
|
|
|
|
USES= lua:module
|
|
|
|
PLIST_FILES= %%LUA_MODLIBDIR%%/bit.so
|
|
|
|
do-build:
|
|
cd ${WRKSRC} && \
|
|
${CC} -fPIC -shared -o bit.so lbitlib.c \
|
|
-I${LUA_INCDIR} -lm
|
|
|
|
do-install:
|
|
@${MKDIR} ${STAGEDIR}${LUA_MODLIBDIR}
|
|
${INSTALL_PROGRAM} ${WRKSRC}/bit.so ${STAGEDIR}${LUA_MODLIBDIR}
|
|
|
|
.include <bsd.port.mk>
|