2013-09-20 21:53:09 +02:00
|
|
|
# Created by: Edwin Groothuis <edwin@mavetju.org>
|
2004-11-21 09:32:23 +01:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= tolua
|
2014-01-26 00:07:49 +01:00
|
|
|
PORTVERSION= 5.2.0
|
2004-11-21 09:32:23 +01:00
|
|
|
CATEGORIES= lang
|
2014-01-26 00:07:49 +01:00
|
|
|
MASTER_SITES= http://www.tecgraf.puc-rio.br/~celes/tolua/ \
|
|
|
|
ftp://ftp.tecgraf.puc-rio.br/pub/users/celes/tolua/
|
2004-11-21 09:32:23 +01:00
|
|
|
|
2014-01-26 00:07:49 +01:00
|
|
|
MAINTAINER= lua@FreeBSD.org
|
2004-11-21 09:32:23 +01:00
|
|
|
COMMENT= toLua: accessing C/C++ code from Lua
|
|
|
|
|
2014-01-26 00:07:49 +01:00
|
|
|
USES= gmake lua
|
2008-05-05 09:04:27 +02:00
|
|
|
|
2014-01-26 00:07:49 +01:00
|
|
|
MAKE_ARGS= CC="${CC}" CCPP="${CXX}" \
|
|
|
|
LUAINC="${LUA_INCDIR}" \
|
|
|
|
LUALIB="${LUA_LIBDIR}" \
|
|
|
|
WARN="${CFLAGS}"
|
2006-09-15 10:17:11 +02:00
|
|
|
|
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} -e 's|make|$${MAKE}|' ${WRKSRC}/${MAKEFILE}
|
2014-01-26 00:07:49 +01:00
|
|
|
@${REINPLACE_CMD} -e 's|llua|llua-${LUA_VER}|' \
|
|
|
|
${WRKSRC}/src/bin/${MAKEFILE} \
|
|
|
|
${WRKSRC}/src/tests/${MAKEFILE}
|
2004-11-21 09:32:23 +01:00
|
|
|
|
|
|
|
do-install:
|
2014-01-26 00:07:49 +01:00
|
|
|
${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
|
2004-11-21 09:32:23 +01:00
|
|
|
|
2014-01-26 00:07:49 +01:00
|
|
|
.include <bsd.port.mk>
|