aboutsummaryrefslogtreecommitdiffstats
path: root/devel/lua-bitop/Makefile
blob: f7c2ed257b2ecf88a81d99dd33ac99f7d6503adc (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# Created by: Sunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>
# $FreeBSD$

PORTNAME=   bitop
PORTVERSION=    1.0.2
CATEGORIES= devel
MASTER_SITES=   http://bitop.luajit.org/download/ \
        LOCAL/sunpoet
DISTNAME=   LuaBitOp-${PORTVERSION}
PKGNAMEPREFIX=  ${LUA_PKGNAMEPREFIX}

MAINTAINER= sunpoet@FreeBSD.org
COMMENT=    Bitwise operations on numbers

LICENSE=    MIT

CFLAGS+=    -DLUA_NUMBER_LONG_LONG -I${LUA_INCDIR}
MAKE_ARGS=  CC=${CC} LUA=${LUA_CMD}
TEST_TARGET=    test
USES?=      gmake lua

PLIST_FILES=    %%LUA_MODLIBDIR%%/bit.so

do-install:
    ${MKDIR} ${STAGEDIR}${LUA_MODLIBDIR}/
    ${INSTALL_LIB} ${WRKSRC}/bit.so ${STAGEDIR}${LUA_MODLIBDIR}/

.include <bsd.port.mk>