2004-11-21 09:32:23 +01:00
|
|
|
#
|
|
|
|
# New ports collection makefile for: tolua
|
|
|
|
# Date created: 21 November 2004
|
|
|
|
# Whom: Edwin Groothuis <edwin@mavetju.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= tolua
|
2010-02-10 10:43:53 +01:00
|
|
|
PORTVERSION= 5.1.3
|
2004-11-21 09:32:23 +01:00
|
|
|
CATEGORIES= lang
|
|
|
|
MASTER_SITES= ftp://ftp.tecgraf.puc-rio.br/pub/users/celes/tolua/ \
|
|
|
|
http://www.tecgraf.puc-rio.br/~celes/tolua/
|
|
|
|
|
|
|
|
MAINTAINER= edwin@mavetju.org
|
|
|
|
COMMENT= toLua: accessing C/C++ code from Lua
|
|
|
|
|
|
|
|
USE_GMAKE= yes
|
2008-05-05 09:04:27 +02:00
|
|
|
USE_LUA= 5.1
|
2010-02-10 10:43:53 +01:00
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}-5.1.3
|
2008-05-05 09:04:27 +02:00
|
|
|
|
|
|
|
post-extract:
|
|
|
|
${RM} ${WRKSRC}/src/bin/tolua_lua.o
|
2006-09-15 10:17:11 +02:00
|
|
|
|
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} -e 's|make|$${MAKE}|' ${WRKSRC}/${MAKEFILE}
|
|
|
|
@${REINPLACE_CMD} -Ee \
|
|
|
|
's|^(CC=).*|\1 ${CC}|; \
|
|
|
|
s|^(CCPP=).*|\1 ${CXX}|; \
|
|
|
|
s|^(LUA=).*|\1 ${LOCALBASE}|; \
|
|
|
|
s|^(LUA(INC\|LIB)=).*|\1 $${LUA_\2DIR}|; \
|
|
|
|
s|^(CPPFLAGS)(=.*)|\1+\2 -lstdc++|; \
|
|
|
|
s|^(CFLAGS)(=.*)|\1+\2|;' \
|
|
|
|
${WRKSRC}/config
|
2004-11-21 09:32:23 +01:00
|
|
|
|
|
|
|
do-install:
|
2006-09-15 10:17:11 +02:00
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/bin/tolua ${LUA_BINDIR}
|
|
|
|
${LN} -sf ${LUA_SUBDIR}/tolua ${PREFIX}/bin/tolua-${LUA_VER}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/include/tolua.h ${LUA_INCDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/lib/libtolua.a ${LUA_LIBDIR}
|
2004-11-21 09:32:23 +01:00
|
|
|
|
2010-04-01 08:08:46 +02:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if ${ARCH} == "powerpc"
|
|
|
|
BROKEN= Does not compile on powerpc
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.port.post.mk>
|