1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-24 00:45:52 +00:00
freebsd-ports/lang/tolua4/Makefile

38 lines
985 B
Makefile

# Created by: 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/
MAINTAINER= edwin@mavetju.org
COMMENT= Tool for easy access of C/C++ code from Lua
USES= gmake
USE_LUA= 4.0
WRKSRC= ${WRKDIR}/${PORTNAME}
LATEST_LINK= ${PORTNAME}${LUA_VER_STR}
NO_STAGE= yes
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
@${REINPLACE_CMD} -E 's|cd (.+); make|$$(MAKE) -C \1|' \
${WRKSRC}/Makefile
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>