summaryrefslogtreecommitdiff
path: root/lang/tolua++
diff options
context:
space:
mode:
authorAaron Dalton <aaron@FreeBSD.org>2006-01-22 23:42:31 +0000
committerAaron Dalton <aaron@FreeBSD.org>2006-01-22 23:42:31 +0000
commitc3eab14300fe68ff98aa891519a6952076f24dce (patch)
tree96d8b3053d73ec63570d227739cd3d5deacb1210 /lang/tolua++
parentBROKEN when WITHOUT_X11: Does not build without X support (diff)
Adding port lang/tolua++, a utility for better binding between Lua and C++.
Approved by: tobez
Notes
Notes: svn path=/head/; revision=154200
Diffstat (limited to 'lang/tolua++')
-rw-r--r--lang/tolua++/Makefile31
-rw-r--r--lang/tolua++/distinfo3
-rw-r--r--lang/tolua++/files/patch-config_posix.py18
-rw-r--r--lang/tolua++/pkg-descr19
-rw-r--r--lang/tolua++/pkg-plist3
5 files changed, 74 insertions, 0 deletions
diff --git a/lang/tolua++/Makefile b/lang/tolua++/Makefile
new file mode 100644
index 000000000000..2775f1396d7e
--- /dev/null
+++ b/lang/tolua++/Makefile
@@ -0,0 +1,31 @@
+# New ports collection makefile for: tolua++
+# Date created: 18 Jan 2006
+# Whom: aaron@FreeBSD.org
+#
+# $FreeBSD$
+#
+
+PORTNAME= tolua++
+PORTVERSION= 1.0.4
+CATEGORIES= lang devel
+MASTER_SITES= http://www.codenix.com/~tolua/
+DISTNAME= tolua++-current
+
+MAINTAINER= aaron@FreeBSD.org
+COMMENT= An extended version of tolua, a tool to integrate C/C++ code with Lua
+
+BUILD_DEPENDS= ${LOCALBASE}/bin/scons:${PORTSDIR}/devel/scons
+LIB_DEPENDS= lua:${PORTSDIR}/lang/lua
+
+WRKSRC= ${WRKDIR}/tolua++-${PORTVERSION}
+USE_BZIP2= yes
+INSTALLS_SHLIB= yes
+NO_BUILD= yes
+
+do-build:
+ @cd ${WRKSRC} && scons
+
+do-install:
+ @cd ${WRKSRC} && scons prefix=${PREFIX} install
+
+.include <bsd.port.mk>
diff --git a/lang/tolua++/distinfo b/lang/tolua++/distinfo
new file mode 100644
index 000000000000..828bfccb1542
--- /dev/null
+++ b/lang/tolua++/distinfo
@@ -0,0 +1,3 @@
+MD5 (tolua++-current.tar.bz2) = 8785100f7c9d9253cb47b530d97a32f6
+SHA256 (tolua++-current.tar.bz2) = 557d8efd248ca3a9bdb3ed221abd4be2b71010d9463983ec804e20b4b888638c
+SIZE (tolua++-current.tar.bz2) = 171870
diff --git a/lang/tolua++/files/patch-config_posix.py b/lang/tolua++/files/patch-config_posix.py
new file mode 100644
index 000000000000..f6771d7e4d4c
--- /dev/null
+++ b/lang/tolua++/files/patch-config_posix.py
@@ -0,0 +1,18 @@
+--- config_posix.py.orig Thu Jan 20 20:01:08 2005
++++ config_posix.py Wed Jan 18 11:05:32 2006
+@@ -5,7 +5,7 @@
+
+ # flags for the compiler
+ #CCFLAGS = []
+-CCFLAGS = ['-O2', '-ansi', '-Wall']
++CCFLAGS = ['-O2', '-ansi', '-Wall', '-I/usr/local/include']
+
+ # this is the default directory for installation. Files will be installed on
+ # <prefix>/bin, <prefix>/lib and <prefix>/include when you run 'scons install'
+@@ -17,5 +17,5 @@
+
+ # libraries
+ LIBS = ['lua', 'lualib', 'm']
+-
++LINKFLAGS = ['-L/usr/local/lib']
+
diff --git a/lang/tolua++/pkg-descr b/lang/tolua++/pkg-descr
new file mode 100644
index 000000000000..26424b722738
--- /dev/null
+++ b/lang/tolua++/pkg-descr
@@ -0,0 +1,19 @@
+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
+
+As well as other features and bugfixes.
+
+tolua is a tool that greatly simplifies the integration of C/C++ code with
+Lua. Based on a cleaned header file (or extracts from real header files),
+tolua automatically generates the binding code to access C/C++ features
+from Lua. Using Lua API and tag method facilities, tolua maps C/C++
+constants, external variables, functions, classes, and methods to Lua.
+
+WWW: http://www.codenix.com/~tolua/
+
+- Aaron Dalton
+aaron@FreeBSD.org
diff --git a/lang/tolua++/pkg-plist b/lang/tolua++/pkg-plist
new file mode 100644
index 000000000000..48663bb9894c
--- /dev/null
+++ b/lang/tolua++/pkg-plist
@@ -0,0 +1,3 @@
+bin/tolua++
+include/tolua++.h
+lib/libtolua++.a