diff options
author | edwin <edwin@FreeBSD.org> | 2004-11-21 16:32:23 +0800 |
---|---|---|
committer | edwin <edwin@FreeBSD.org> | 2004-11-21 16:32:23 +0800 |
commit | 11d6e8ca1f7f24f1b6d750d5a4798bc14cf9db21 (patch) | |
tree | b11083e3e98a97ee2564dfe2f5732fa37cad843e /lang/tolua50 | |
parent | 3d67e0c701263317f856be442330bafaa1e94a26 (diff) | |
download | freebsd-ports-gnome-11d6e8ca1f7f24f1b6d750d5a4798bc14cf9db21.tar.gz freebsd-ports-gnome-11d6e8ca1f7f24f1b6d750d5a4798bc14cf9db21.tar.zst freebsd-ports-gnome-11d6e8ca1f7f24f1b6d750d5a4798bc14cf9db21.zip |
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
WWW: http://www.tecgraf.puc-rio.br/~celes/tolua/
Diffstat (limited to 'lang/tolua50')
-rw-r--r-- | lang/tolua50/Makefile | 29 | ||||
-rw-r--r-- | lang/tolua50/distinfo | 2 | ||||
-rw-r--r-- | lang/tolua50/files/patch-Makefile | 22 | ||||
-rw-r--r-- | lang/tolua50/files/patch-config | 30 | ||||
-rw-r--r-- | lang/tolua50/files/patch-src::tests::Makefile | 27 | ||||
-rw-r--r-- | lang/tolua50/pkg-descr | 11 | ||||
-rw-r--r-- | lang/tolua50/pkg-plist | 3 |
7 files changed, 124 insertions, 0 deletions
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 |