diff options
author | Edwin Groothuis <edwin@FreeBSD.org> | 2004-11-21 09:32:07 +0000 |
---|---|---|
committer | Edwin Groothuis <edwin@FreeBSD.org> | 2004-11-21 09:32:07 +0000 |
commit | a83e62a434060ac52e44aec7124ba1ce317f5041 (patch) | |
tree | c17775b1446fb4347aa31d8160560c9de661c03c /lang/tolua4 | |
parent | ba0c53550f862ff7a69cbeb07c172123177dac16 (diff) | |
download | ports-a83e62a434060ac52e44aec7124ba1ce317f5041.tar.gz ports-a83e62a434060ac52e44aec7124ba1ce317f5041.zip |
Notes
Diffstat (limited to 'lang/tolua4')
-rw-r--r-- | lang/tolua4/Makefile | 30 | ||||
-rw-r--r-- | lang/tolua4/distinfo | 2 | ||||
-rw-r--r-- | lang/tolua4/files/patch-config | 26 | ||||
-rw-r--r-- | lang/tolua4/pkg-descr | 11 | ||||
-rw-r--r-- | lang/tolua4/pkg-plist | 3 |
5 files changed, 72 insertions, 0 deletions
diff --git a/lang/tolua4/Makefile b/lang/tolua4/Makefile new file mode 100644 index 000000000000..9330f0722101 --- /dev/null +++ b/lang/tolua4/Makefile @@ -0,0 +1,30 @@ +# +# New ports collection makefile for: tolua +# Date created: 21 November 2004 +# Whom: Edwin Groothuis <edwin@mavetju.org> +# +# $FreeBSD$ +# + +PORTNAME= tolua4 +PORTVERSION= 4.0a +CATEGORIES= lang +MASTER_SITES= ftp://ftp.tecgraf.puc-rio.br/pub/users/celes/tolua/ \ + http://www.tecgraf.puc-rio.br/~celes/tolua/ +DISTNAME= tolua-4.0a + +MAINTAINER= edwin@mavetju.org +COMMENT= toLua: accessing C/C++ code from Lua + +LIB_DEPENDS= lua.4:${PORTSDIR}/lang/lua4 + +WRKSRC= ${WRKDIR}/tolua +USE_GMAKE= yes +CONFLICTS= tolua-5.* + +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/tolua4/distinfo b/lang/tolua4/distinfo new file mode 100644 index 000000000000..44b014fd3098 --- /dev/null +++ b/lang/tolua4/distinfo @@ -0,0 +1,2 @@ +MD5 (tolua-4.0a.tar.gz) = 2896090b6c76ea429a118cd88caebc1a +SIZE (tolua-4.0a.tar.gz) = 84796 diff --git a/lang/tolua4/files/patch-config b/lang/tolua4/files/patch-config new file mode 100644 index 000000000000..1786f1f143e2 --- /dev/null +++ b/lang/tolua4/files/patch-config @@ -0,0 +1,26 @@ +--- config.orig Sun Nov 21 20:12:01 2004 ++++ config Sun Nov 21 20:12:39 2004 +@@ -3,7 +3,7 @@ + # == CHANGE THE SETTINGS BELOW TO SUIT YOUR ENVIRONMENT ====================== + + # you need an ANSI C compiler. gcc is a popular one. +-CC= gcc ++#CC= gcc + WARN= -ansi -Wall + + # on SGI's, cc is ANSI. +@@ -20,7 +20,7 @@ + AR= ar rcu + + # set lua path +-LUA=/usr/local/lua ++LUA=${LOCALBASE} + LUAINC=$(LUA)/include + LUALIB=$(LUA)/lib + +@@ -29,4 +29,4 @@ + INC= -I$(LUAINC) -I$(TOLUA)/include + LIB= -L$(LUALIB) + +-CFLAGS= -O2 $(WARN) $(INC) ++CFLAGS+= -O2 $(WARN) $(INC) diff --git a/lang/tolua4/pkg-descr b/lang/tolua4/pkg-descr new file mode 100644 index 000000000000..0dff71b6290c --- /dev/null +++ b/lang/tolua4/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/tolua4/pkg-plist b/lang/tolua4/pkg-plist new file mode 100644 index 000000000000..488452014d8f --- /dev/null +++ b/lang/tolua4/pkg-plist @@ -0,0 +1,3 @@ +bin/tolua +lib/libtolua.a +include/tolua.h |