blob: 0bb018ebb42019033f35cc08a028ee82981c910b (
plain)
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
29
|
PORTNAME= tolua
PORTVERSION= 5.2.4
CATEGORIES= lang
MASTER_SITES= http://www.tecgraf.puc-rio.br/~celes/tolua/ \
ftp://ftp.tecgraf.puc-rio.br/pub/users/celes/tolua/
MAINTAINER= ports@FreeBSD.org
COMMENT= Tool to integrate C/C++ code with Lua
WWW= https://www.tecgraf.puc-rio.br/~celes/tolua/
USES= gmake lua
MAKE_ARGS= CC="${CC}" CCPP="${CXX}" \
LUAINC="${LUA_INCDIR}" \
LUALIB="${LUA_LIBDIR}" \
WARN="${CFLAGS}"
post-patch:
@${REINPLACE_CMD} -e 's|make|$${MAKE}|' ${WRKSRC}/${MAKEFILE}
@${REINPLACE_CMD} -e 's|llua|llua-${LUA_VER}|' \
${WRKSRC}/src/bin/${MAKEFILE} \
${WRKSRC}/src/tests/${MAKEFILE}
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/bin/tolua ${STAGEDIR}${PREFIX}/bin
${INSTALL_DATA} ${WRKSRC}/include/tolua.h ${STAGEDIR}${PREFIX}/include
${INSTALL_DATA} ${WRKSRC}/lib/libtolua.a ${STAGEDIR}${PREFIX}/lib
.include <bsd.port.mk>
|