1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-12 03:00:28 +00:00
freebsd-ports/lang/tolua/Makefile
Baptiste Daroussin 860620e08b Update to 5.2.0
Bring under lua@ maintainership [1]
Support stage
Use MAKE_ARGS instead of patching config
Convert to USES=lua

Approved by:	edwin@ [1]
2014-01-25 23:07:49 +00:00

32 lines
869 B
Makefile

# Created by: Edwin Groothuis <edwin@mavetju.org>
# $FreeBSD$
PORTNAME= tolua
PORTVERSION= 5.2.0
CATEGORIES= lang
MASTER_SITES= http://www.tecgraf.puc-rio.br/~celes/tolua/ \
ftp://ftp.tecgraf.puc-rio.br/pub/users/celes/tolua/
MAINTAINER= lua@FreeBSD.org
COMMENT= toLua: accessing C/C++ code from Lua
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>