aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lang/Makefile1
-rw-r--r--lang/tolua/Makefile29
-rw-r--r--lang/tolua/distinfo2
-rw-r--r--lang/tolua/files/patch-Makefile22
-rw-r--r--lang/tolua/files/patch-config30
-rw-r--r--lang/tolua/files/patch-src::tests::Makefile27
-rw-r--r--lang/tolua/pkg-descr11
-rw-r--r--lang/tolua/pkg-plist3
-rw-r--r--lang/tolua50/Makefile29
-rw-r--r--lang/tolua50/distinfo2
-rw-r--r--lang/tolua50/files/patch-Makefile22
-rw-r--r--lang/tolua50/files/patch-config30
-rw-r--r--lang/tolua50/files/patch-src::tests::Makefile27
-rw-r--r--lang/tolua50/pkg-descr11
-rw-r--r--lang/tolua50/pkg-plist3
15 files changed, 249 insertions, 0 deletions
diff --git a/lang/Makefile b/lang/Makefile
index 4e748d8d39fe..757387cb35f5 100644
--- a/lang/Makefile
+++ b/lang/Makefile
@@ -275,6 +275,7 @@
SUBDIR += tcltutor
SUBDIR += tensile
SUBDIR += tinycobol
+ SUBDIR += tolua
SUBDIR += treecc
SUBDIR += tuareg-mode.el
SUBDIR += visualworks
diff --git a/lang/tolua/Makefile b/lang/tolua/Makefile
new file mode 100644
index 000000000000..d71e9b2d129b
--- /dev/null
+++ b/lang/tolua/Makefile
@@ -0,0 +1,29 @@
+#
+# New ports collection makefile for: tolua
+# Date created: 21 November 2004
+# Whom: Edwin Groothuis <edwin@mavetju.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= tolua
+PORTVERSION= 5.0.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= toLua: accessing C/C++ code from Lua
+
+LIB_DEPENDS= lua:${PORTSDIR}/lang/lua
+
+WRKSRC= ${WRKDIR}/${PORTNAME}-5.0
+
+USE_GMAKE= yes
+
+do-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/bin/tolua ${PREFIX}/bin
+ ${INSTALL_DATA} ${WRKSRC}/include/tolua.h ${PREFIX}/include
+ ${INSTALL_DATA} ${WRKSRC}/lib/libtolua.a ${PREFIX}/lib
+
+.include <bsd.port.mk>
diff --git a/lang/tolua/distinfo b/lang/tolua/distinfo
new file mode 100644
index 000000000000..ee5e8e94a8a3
--- /dev/null
+++ b/lang/tolua/distinfo
@@ -0,0 +1,2 @@
+MD5 (tolua-5.0.1.tar.gz) = da18137d4583880ae474f1e632fcbdc2
+SIZE (tolua-5.0.1.tar.gz) = 88676
diff --git a/lang/tolua/files/patch-Makefile b/lang/tolua/files/patch-Makefile
new file mode 100644
index 000000000000..ea3d00107550
--- /dev/null
+++ b/lang/tolua/files/patch-Makefile
@@ -0,0 +1,22 @@
+--- Makefile.orig Thu Jul 31 23:27:52 2003
++++ Makefile Sun Nov 21 18:50:08 2004
+@@ -1,13 +1,13 @@
+ # makefile for tolua hierarchy
+
+ tolua:
+- cd src/lib; make all
+- cd src/bin; make all
++ cd src/lib; ${MAKE} all
++ cd src/bin; ${MAKE} all
+
+ tests:
+- cd src/tests; make all
++ cd src/tests; ${MAKE} all
+
+ all clean klean:
+- cd src/lib; make $@
+- cd src/bin; make $@
+- cd src/tests; make $@
++ cd src/lib; ${MAKE} $@
++ cd src/bin; ${MAKE} $@
++ cd src/tests; ${MAKE} $@
diff --git a/lang/tolua/files/patch-config b/lang/tolua/files/patch-config
new file mode 100644
index 000000000000..1bd699de6573
--- /dev/null
+++ b/lang/tolua/files/patch-config
@@ -0,0 +1,30 @@
+--- config.orig Tue Jun 8 06:09:19 2004
++++ config Sun Nov 21 19:24:24 2004
+@@ -3,8 +3,9 @@
+ # == CHANGE THE SETTINGS BELOW TO SUIT YOUR ENVIRONMENT ======================
+
+ # you need an ANSI C compiler. gcc is a popular one.
+-CC= gcc
+-CCPP = g++
++#CC= ${CC}
++CC = cc
++CCPP = c++
+ WARN= -ansi -Wall
+
+ # on SGI's, cc is ANSI.
+@@ -22,6 +23,7 @@
+
+ # set lua path
+ LUA=/usr/local/lua-5.0
++LUA=${LOCALBASE}
+ LUAINC=$(LUA)/include
+ LUALIB=$(LUA)/lib
+
+@@ -30,5 +32,5 @@
+ INC= -I$(TOLUA)/include -I$(LUAINC)
+ LIB= -L$(TOLUA)/lib -L$(LUALIB)
+
+-CFLAGS= -O2 $(WARN) $(INC)
+-CPPFLAGS= -O2 $(WARN) $(INC)
++CFLAGS+= -O2 $(WARN) $(INC)
++CPPFLAGS+= -O2 $(WARN) $(INC) -lstdc++
diff --git a/lang/tolua/files/patch-src::tests::Makefile b/lang/tolua/files/patch-src::tests::Makefile
new file mode 100644
index 000000000000..a2aa53e7018d
--- /dev/null
+++ b/lang/tolua/files/patch-src::tests::Makefile
@@ -0,0 +1,27 @@
+--- src/tests/Makefile.orig Wed Feb 11 23:01:58 2004
++++ src/tests/Makefile Sun Nov 21 19:17:49 2004
+@@ -4,7 +4,7 @@
+
+ include $(TOLUA)/config
+
+-LIBS = -ltolua -llua -llualib
++LIBS = -ltolua -llua -llualib -lm
+
+ all: tmodule tnamespace tclass tconstant tvariable tfunction tarray tdirective
+ ./tmodule; ./tnamespace; ./tclass; ./tconstant; ./tvariable; ./tfunction; ./tarray; ./tdirective;
+@@ -25,7 +25,7 @@
+ $(TOLUA)/bin/tolua -o $@ $<
+
+ tnamespace: tnamespace.o tnamespacebind.o
+- $(CC) $(CPPFLAGS) -o $@ tnamespace.o tnamespacebind.o $(TLIB) $(LIB) $(LIBS)
++ $(CC) $(CPPFLAGS) -Iedwin -o $@ tnamespace.o tnamespacebind.o $(TLIB) $(LIB) $(LIBS)
+ tnamespacebind.cpp: tnamespace.pkg
+ $(TOLUA)/bin/tolua -o $@ $<
+
+@@ -61,6 +61,3 @@
+
+ klean:
+ rm -f tmodule tnamespace tclass tconstant tvariable tfunction tarray tdirective
+-
+-
+-
diff --git a/lang/tolua/pkg-descr b/lang/tolua/pkg-descr
new file mode 100644
index 000000000000..0dff71b6290c
--- /dev/null
+++ b/lang/tolua/pkg-descr
@@ -0,0 +1,11 @@
+toLua is a tool that greatly simplifies the integration of C/C++
+code with Lua. Based on a "cleaned" header file, toLua automatically
+generates the binding code to access C/C++ features from Lua. Using
+Lua-5.0 API and tag method facilities, the current version automatically
+maps C/C++ constants, external variables, functions, namespace,
+classes, and methods to Lua. It also provides facilities to create
+Lua modules.
+
+WWW: http://www.tecgraf.puc-rio.br/~celes/tolua/
+
+Author: Waldemar Celes <celes@tecgraf.puc-rio.br>
diff --git a/lang/tolua/pkg-plist b/lang/tolua/pkg-plist
new file mode 100644
index 000000000000..488452014d8f
--- /dev/null
+++ b/lang/tolua/pkg-plist
@@ -0,0 +1,3 @@
+bin/tolua
+lib/libtolua.a
+include/tolua.h
diff --git a/lang/tolua50/Makefile b/lang/tolua50/Makefile
new file mode 100644
index 000000000000..d71e9b2d129b
--- /dev/null
+++ b/lang/tolua50/Makefile
@@ -0,0 +1,29 @@
+#
+# New ports collection makefile for: tolua
+# Date created: 21 November 2004
+# Whom: Edwin Groothuis <edwin@mavetju.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= tolua
+PORTVERSION= 5.0.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= toLua: accessing C/C++ code from Lua
+
+LIB_DEPENDS= lua:${PORTSDIR}/lang/lua
+
+WRKSRC= ${WRKDIR}/${PORTNAME}-5.0
+
+USE_GMAKE= yes
+
+do-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/bin/tolua ${PREFIX}/bin
+ ${INSTALL_DATA} ${WRKSRC}/include/tolua.h ${PREFIX}/include
+ ${INSTALL_DATA} ${WRKSRC}/lib/libtolua.a ${PREFIX}/lib
+
+.include <bsd.port.mk>
diff --git a/lang/tolua50/distinfo b/lang/tolua50/distinfo
new file mode 100644
index 000000000000..ee5e8e94a8a3
--- /dev/null
+++ b/lang/tolua50/distinfo
@@ -0,0 +1,2 @@
+MD5 (tolua-5.0.1.tar.gz) = da18137d4583880ae474f1e632fcbdc2
+SIZE (tolua-5.0.1.tar.gz) = 88676
diff --git a/lang/tolua50/files/patch-Makefile b/lang/tolua50/files/patch-Makefile
new file mode 100644
index 000000000000..ea3d00107550
--- /dev/null
+++ b/lang/tolua50/files/patch-Makefile
@@ -0,0 +1,22 @@
+--- Makefile.orig Thu Jul 31 23:27:52 2003
++++ Makefile Sun Nov 21 18:50:08 2004
+@@ -1,13 +1,13 @@
+ # makefile for tolua hierarchy
+
+ tolua:
+- cd src/lib; make all
+- cd src/bin; make all
++ cd src/lib; ${MAKE} all
++ cd src/bin; ${MAKE} all
+
+ tests:
+- cd src/tests; make all
++ cd src/tests; ${MAKE} all
+
+ all clean klean:
+- cd src/lib; make $@
+- cd src/bin; make $@
+- cd src/tests; make $@
++ cd src/lib; ${MAKE} $@
++ cd src/bin; ${MAKE} $@
++ cd src/tests; ${MAKE} $@
diff --git a/lang/tolua50/files/patch-config b/lang/tolua50/files/patch-config
new file mode 100644
index 000000000000..1bd699de6573
--- /dev/null
+++ b/lang/tolua50/files/patch-config
@@ -0,0 +1,30 @@
+--- config.orig Tue Jun 8 06:09:19 2004
++++ config Sun Nov 21 19:24:24 2004
+@@ -3,8 +3,9 @@
+ # == CHANGE THE SETTINGS BELOW TO SUIT YOUR ENVIRONMENT ======================
+
+ # you need an ANSI C compiler. gcc is a popular one.
+-CC= gcc
+-CCPP = g++
++#CC= ${CC}
++CC = cc
++CCPP = c++
+ WARN= -ansi -Wall
+
+ # on SGI's, cc is ANSI.
+@@ -22,6 +23,7 @@
+
+ # set lua path
+ LUA=/usr/local/lua-5.0
++LUA=${LOCALBASE}
+ LUAINC=$(LUA)/include
+ LUALIB=$(LUA)/lib
+
+@@ -30,5 +32,5 @@
+ INC= -I$(TOLUA)/include -I$(LUAINC)
+ LIB= -L$(TOLUA)/lib -L$(LUALIB)
+
+-CFLAGS= -O2 $(WARN) $(INC)
+-CPPFLAGS= -O2 $(WARN) $(INC)
++CFLAGS+= -O2 $(WARN) $(INC)
++CPPFLAGS+= -O2 $(WARN) $(INC) -lstdc++
diff --git a/lang/tolua50/files/patch-src::tests::Makefile b/lang/tolua50/files/patch-src::tests::Makefile
new file mode 100644
index 000000000000..a2aa53e7018d
--- /dev/null
+++ b/lang/tolua50/files/patch-src::tests::Makefile
@@ -0,0 +1,27 @@
+--- src/tests/Makefile.orig Wed Feb 11 23:01:58 2004
++++ src/tests/Makefile Sun Nov 21 19:17:49 2004
+@@ -4,7 +4,7 @@
+
+ include $(TOLUA)/config
+
+-LIBS = -ltolua -llua -llualib
++LIBS = -ltolua -llua -llualib -lm
+
+ all: tmodule tnamespace tclass tconstant tvariable tfunction tarray tdirective
+ ./tmodule; ./tnamespace; ./tclass; ./tconstant; ./tvariable; ./tfunction; ./tarray; ./tdirective;
+@@ -25,7 +25,7 @@
+ $(TOLUA)/bin/tolua -o $@ $<
+
+ tnamespace: tnamespace.o tnamespacebind.o
+- $(CC) $(CPPFLAGS) -o $@ tnamespace.o tnamespacebind.o $(TLIB) $(LIB) $(LIBS)
++ $(CC) $(CPPFLAGS) -Iedwin -o $@ tnamespace.o tnamespacebind.o $(TLIB) $(LIB) $(LIBS)
+ tnamespacebind.cpp: tnamespace.pkg
+ $(TOLUA)/bin/tolua -o $@ $<
+
+@@ -61,6 +61,3 @@
+
+ klean:
+ rm -f tmodule tnamespace tclass tconstant tvariable tfunction tarray tdirective
+-
+-
+-
diff --git a/lang/tolua50/pkg-descr b/lang/tolua50/pkg-descr
new file mode 100644
index 000000000000..0dff71b6290c
--- /dev/null
+++ b/lang/tolua50/pkg-descr
@@ -0,0 +1,11 @@
+toLua is a tool that greatly simplifies the integration of C/C++
+code with Lua. Based on a "cleaned" header file, toLua automatically
+generates the binding code to access C/C++ features from Lua. Using
+Lua-5.0 API and tag method facilities, the current version automatically
+maps C/C++ constants, external variables, functions, namespace,
+classes, and methods to Lua. It also provides facilities to create
+Lua modules.
+
+WWW: http://www.tecgraf.puc-rio.br/~celes/tolua/
+
+Author: Waldemar Celes <celes@tecgraf.puc-rio.br>
diff --git a/lang/tolua50/pkg-plist b/lang/tolua50/pkg-plist
new file mode 100644
index 000000000000..488452014d8f
--- /dev/null
+++ b/lang/tolua50/pkg-plist
@@ -0,0 +1,3 @@
+bin/tolua
+lib/libtolua.a
+include/tolua.h