1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-18 19:49:40 +00:00

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>
This commit is contained in:
Edwin Groothuis 2004-11-21 09:32:07 +00:00
parent ba0c53550f
commit a83e62a434
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=122064
6 changed files with 73 additions and 0 deletions

View File

@ -276,6 +276,7 @@
SUBDIR += tensile
SUBDIR += tinycobol
SUBDIR += tolua
SUBDIR += tolua4
SUBDIR += treecc
SUBDIR += tuareg-mode.el
SUBDIR += visualworks

30
lang/tolua4/Makefile Normal file
View File

@ -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>

2
lang/tolua4/distinfo Normal file
View File

@ -0,0 +1,2 @@
MD5 (tolua-4.0a.tar.gz) = 2896090b6c76ea429a118cd88caebc1a
SIZE (tolua-4.0a.tar.gz) = 84796

View File

@ -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)

11
lang/tolua4/pkg-descr Normal file
View File

@ -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>

3
lang/tolua4/pkg-plist Normal file
View File

@ -0,0 +1,3 @@
bin/tolua
lib/libtolua.a
include/tolua.h