blob: 08b4ee28a0cda1f690441f19b1a6ed186153ccea (
plain) (
tree)
|
|
#
# New ports collection makefile for: tolua
# Date created: 21 November 2004
# Whom: Edwin Groothuis <edwin@mavetju.org>
#
# $FreeBSD$
#
PORTNAME= tolua
PORTVERSION= 4.0a
PORTREVISION= 1
CATEGORIES= lang
MASTER_SITES= ftp://ftp.tecgraf.puc-rio.br/pub/users/celes/tolua/ \
http://www.tecgraf.puc-rio.br/~celes/tolua/
DISTNAME= tolua-4.0a
MAINTAINER= edwin@mavetju.org
COMMENT= toLua: accessing C/C++ code from Lua
USE_GMAKE= yes
USE_LUA= 4.0
WRKSRC= ${WRKDIR}/tolua
LATEST_LINK= ${PORTNAME}${LUA_VER_STR}
post-patch:
@${REINPLACE_CMD} -Ee \
's|^(CC=).*|\1 ${CC}|; \
s|^(LUA=).*|\1 ${LOCALBASE}|; \
s|^(LUA(INC\|LIB)=.*)|\1/lua${LUA_VER_STR}|; \
s|^(CFLAGS)(=.*)|\1+\2|;' \
${WRKSRC}/config
do-install:
${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}
.include <bsd.port.mk>
|