diff options
author | Edwin Groothuis <edwin@FreeBSD.org> | 2004-11-21 08:32:23 +0000 |
---|---|---|
committer | Edwin Groothuis <edwin@FreeBSD.org> | 2004-11-21 08:32:23 +0000 |
commit | ba0c53550f862ff7a69cbeb07c172123177dac16 (patch) | |
tree | 2da1bf28f0f4ea089a0ae22ccc6ce76e9b74a703 /lang/tolua | |
parent | - Add support for FreeBSD 6. (diff) |
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/
Notes
Notes:
svn path=/head/; revision=122062
Diffstat (limited to 'lang/tolua')
-rw-r--r-- | lang/tolua/Makefile | 29 | ||||
-rw-r--r-- | lang/tolua/distinfo | 2 | ||||
-rw-r--r-- | lang/tolua/files/patch-Makefile | 22 | ||||
-rw-r--r-- | lang/tolua/files/patch-config | 30 | ||||
-rw-r--r-- | lang/tolua/files/patch-src::tests::Makefile | 27 | ||||
-rw-r--r-- | lang/tolua/pkg-descr | 11 | ||||
-rw-r--r-- | lang/tolua/pkg-plist | 3 |
7 files changed, 124 insertions, 0 deletions
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 |