aboutsummaryrefslogtreecommitdiff
path: root/lang/tolua++
diff options
context:
space:
mode:
authorDmitry Marakasov <amdmi3@FreeBSD.org>2008-08-10 22:42:41 +0000
committerDmitry Marakasov <amdmi3@FreeBSD.org>2008-08-10 22:42:41 +0000
commitc11f62c3bca31bf591254c93f81b646a7a06c8ea (patch)
treec8572a0a8ccc0485550fe4695129326f7df8830c /lang/tolua++
parent50b6466111e93d8c32681d278380f553d9aecaac (diff)
downloadports-c11f62c3bca31bf591254c93f81b646a7a06c8ea.tar.gz
ports-c11f62c3bca31bf591254c93f81b646a7a06c8ea.zip
Notes
Diffstat (limited to 'lang/tolua++')
-rw-r--r--lang/tolua++/Makefile23
-rw-r--r--lang/tolua++/pkg-descr6
-rw-r--r--lang/tolua++/pkg-plist7
3 files changed, 23 insertions, 13 deletions
diff --git a/lang/tolua++/Makefile b/lang/tolua++/Makefile
index 997a9927ef60..4281ba890016 100644
--- a/lang/tolua++/Makefile
+++ b/lang/tolua++/Makefile
@@ -7,20 +7,29 @@
PORTNAME= tolua++
PORTVERSION= 1.0.92
+PORTREVISION= 1
CATEGORIES= lang devel
-MASTER_SITES= http://www.codenix.com/~tolua/
+MASTER_SITES= http://www.codenix.com/~tolua/ \
+ http://www.amdmi3.ru/distfiles/
-MAINTAINER= ports@FreeBSD.org
+MAINTAINER= amdmi3@FreeBSD.org
COMMENT= An extended version of tolua, a tool to integrate C/C++ code with Lua
-LIB_DEPENDS= lua:${PORTSDIR}/lang/lua50
-
USE_BZIP2= yes
-USE_LDCONFIG= yes
+USE_LUA= 5.1
USE_SCONS= yes
SCONS_ARGS= prefix=${PREFIX}
-CFLAGS+= -I/usr/local/include/lua50
-LDFLAGS+= -L/usr/local/lib/lua50
+CFLAGS+= -I${LUA_INCDIR}
+LDFLAGS+= -L${LUA_LIBDIR}
+
+post-patch:
+ @${REINPLACE_CMD} -e "s|'lualib',||" ${WRKSRC}/config_posix.py
+
+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>
diff --git a/lang/tolua++/pkg-descr b/lang/tolua++/pkg-descr
index 26424b722738..42228072fcb6 100644
--- a/lang/tolua++/pkg-descr
+++ b/lang/tolua++/pkg-descr
@@ -1,9 +1,9 @@
tolua++ is an extended version of tolua, a tool to integrate C/C++ code
with Lua. tolua++ includes new features oriented to c++ such as:
- * Support for std::string as a basic type (this can be turned off by a
-command line option).
- * Support for class templates
+* Support for std::string as a basic type (this can be turned off by a
+ command line option).
+* Support for class templates
As well as other features and bugfixes.
diff --git a/lang/tolua++/pkg-plist b/lang/tolua++/pkg-plist
index 48663bb9894c..ae3137aa5652 100644
--- a/lang/tolua++/pkg-plist
+++ b/lang/tolua++/pkg-plist
@@ -1,3 +1,4 @@
-bin/tolua++
-include/tolua++.h
-lib/libtolua++.a
+%%LUA_BINDIR%%/tolua++
+bin/tolua++-%%LUA_VER%%
+%%LUA_LIBDIR%%/libtolua++.a
+%%LUA_INCDIR%%/tolua++.h