aboutsummaryrefslogtreecommitdiffstats
path: root/lang
diff options
context:
space:
mode:
authoraaron <aaron@FreeBSD.org>2006-01-23 07:42:31 +0800
committeraaron <aaron@FreeBSD.org>2006-01-23 07:42:31 +0800
commitb987a10e303e7ad3859a4e4141064fba55632af5 (patch)
treef3a18314549b575268a2a0345e1dbb271e378d36 /lang
parentd30abd9cba20dd3aaf8342d7bd61e816437c0b06 (diff)
downloadfreebsd-ports-graphics-b987a10e303e7ad3859a4e4141064fba55632af5.tar.gz
freebsd-ports-graphics-b987a10e303e7ad3859a4e4141064fba55632af5.tar.zst
freebsd-ports-graphics-b987a10e303e7ad3859a4e4141064fba55632af5.zip
Adding port lang/tolua++, a utility for better binding between Lua and C++.
Approved by: tobez
Diffstat (limited to 'lang')
-rw-r--r--lang/Makefile1
-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
-rw-r--r--lang/tolua++50/Makefile31
-rw-r--r--lang/tolua++50/distinfo3
-rw-r--r--lang/tolua++50/files/patch-config_posix.py18
-rw-r--r--lang/tolua++50/pkg-descr19
-rw-r--r--lang/tolua++50/pkg-plist3
11 files changed, 149 insertions, 0 deletions
diff --git a/lang/Makefile b/lang/Makefile
index bb985106e76..9861fe48320 100644
--- a/lang/Makefile
+++ b/lang/Makefile
@@ -295,6 +295,7 @@
SUBDIR += tensile
SUBDIR += tinycobol
SUBDIR += tolua
+ SUBDIR += tolua++
SUBDIR += tolua4
SUBDIR += treecc
SUBDIR += tuareg-mode.el
diff --git a/lang/tolua++/Makefile b/lang/tolua++/Makefile
new file mode 100644
index 00000000000..2775f1396d7
--- /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 00000000000..828bfccb154
--- /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 00000000000..f6771d7e4d4
--- /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 00000000000..26424b72273
--- /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 00000000000..48663bb9894
--- /dev/null
+++ b/lang/tolua++/pkg-plist
@@ -0,0 +1,3 @@
+bin/tolua++
+include/tolua++.h
+lib/libtolua++.a
diff --git a/lang/tolua++50/Makefile b/lang/tolua++50/Makefile
new file mode 100644
index 00000000000..2775f1396d7
--- /dev/null
+++ b/lang/tolua++50/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++50/distinfo b/lang/tolua++50/distinfo
new file mode 100644
index 00000000000..828bfccb154
--- /dev/null
+++ b/lang/tolua++50/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++50/files/patch-config_posix.py b/lang/tolua++50/files/patch-config_posix.py
new file mode 100644
index 00000000000..f6771d7e4d4
--- /dev/null
+++ b/lang/tolua++50/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++50/pkg-descr b/lang/tolua++50/pkg-descr
new file mode 100644
index 00000000000..26424b72273
--- /dev/null
+++ b/lang/tolua++50/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++50/pkg-plist b/lang/tolua++50/pkg-plist
new file mode 100644
index 00000000000..48663bb9894
--- /dev/null
+++ b/lang/tolua++50/pkg-plist
@@ -0,0 +1,3 @@
+bin/tolua++
+include/tolua++.h
+lib/libtolua++.a