head	1.11;
access;
symbols
	RELEASE_8_3_0:1.10
	RELEASE_9_0_0:1.8
	RELEASE_7_4_0:1.8
	RELEASE_8_2_0:1.8
	RELEASE_6_EOL:1.8
	RELEASE_8_1_0:1.8
	RELEASE_7_3_0:1.7
	RELEASE_8_0_0:1.6
	RELEASE_7_2_0:1.6
	RELEASE_7_1_0:1.6
	RELEASE_6_4_0:1.6
	RELEASE_5_EOL:1.6
	RELEASE_7_0_0:1.5
	RELEASE_6_3_0:1.5
	PRE_XORG_7:1.5
	RELEASE_4_EOL:1.5
	RELEASE_6_2_0:1.5
	RELEASE_6_1_0:1.2
	RELEASE_5_5_0:1.2
	RELEASE_6_0_0:1.2
	RELEASE_5_4_0:1.2
	RELEASE_4_11_0:1.2;
locks; strict;
comment	@# @;


1.11
date	2012.11.17.05.58.58;	author svnexp;	state Exp;
branches;
next	1.10;

1.10
date	2012.02.08.20.10.36;	author pgollucci;	state Exp;
branches;
next	1.9;

1.9
date	2011.12.22.10.59.57;	author linimon;	state Exp;
branches;
next	1.8;

1.8
date	2010.04.01.06.08.45;	author linimon;	state Exp;
branches;
next	1.7;

1.7
date	2010.02.10.09.43.53;	author edwin;	state Exp;
branches;
next	1.6;

1.6
date	2008.05.05.07.04.26;	author edwin;	state Exp;
branches;
next	1.5;

1.5
date	2006.09.16.22.01.36;	author linimon;	state Exp;
branches;
next	1.4;

1.4
date	2006.09.15.08.17.09;	author linimon;	state Exp;
branches;
next	1.3;

1.3
date	2006.05.03.13.25.06;	author pav;	state Exp;
branches;
next	1.2;

1.2
date	2004.11.21.09.44.10;	author edwin;	state Exp;
branches;
next	1.1;

1.1
date	2004.11.21.08.32.23;	author edwin;	state Exp;
branches;
next	;


desc
@@


1.11
log
@Switch exporter over
@
text
@#
# New ports collection makefile for:	tolua
# Date created:				21 November 2004
# Whom:					Edwin Groothuis <edwin@@mavetju.org>
#
# $FreeBSD: head/lang/tolua/Makefile 300896 2012-07-14 13:54:48Z beat $
#

PORTNAME=	tolua
PORTVERSION=	5.1.3
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

USE_GMAKE=	yes
USE_LUA=	5.1
WRKSRC=		${WRKDIR}/${PORTNAME}-5.1.3

post-extract:
	${RM} ${WRKSRC}/src/bin/tolua_lua.o

post-patch:
	@@${REINPLACE_CMD} -e 's|make|$${MAKE}|' ${WRKSRC}/${MAKEFILE}
	@@${REINPLACE_CMD} -Ee \
		's|^(CC=).*|\1 ${CC}|; \
		 s|^(CCPP =).*|\1 ${CXX}|; \
		 s|^(LUA=).*|\1 ${LOCALBASE}|; \
		 s|^(LUA(INC\|LIB)=).*|\1 $${LUA_\2DIR}|; \
		 s|^(CPPFLAGS)(=.*)|\1+\2 -lstdc++|; \
		 s|^(CFLAGS)(=.*)|\1+\2|;' \
		${WRKSRC}/config

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/bin/tolua ${LUA_BINDIR}
	${LN} -sf ${LUA_SUBDIR}/tolua ${PREFIX}/bin/tolua-${LUA_VER}
	${INSTALL_DATA} ${WRKSRC}/include/tolua.h ${LUA_INCDIR}
	${INSTALL_DATA} ${WRKSRC}/lib/libtolua.a ${LUA_LIBDIR}

.include <bsd.port.pre.mk>

.if ${ARCH} == "powerpc"
BROKEN=		Does not compile on powerpc
.endif
.if ${ARCH} == "sparc64" && ${OSVERSION} > 900000
BROKEN=		Does not install on sparc64-9
.endif

.include <bsd.port.post.mk>
@


1.10
log
@- Respect CXX

PR:             ports/162529
Submitted by:   Jan Beich <jbeich@@tormail.net>
Approved by:    maintainer timeout (edwin ; 87 days)
@
text
@d6 1
a6 1
# $FreeBSD$
@


1.9
log
@Mark as broken on sparc64-9.

Hat:		portmgr
@
text
@d29 1
a29 1
		 s|^(CCPP=).*|\1 ${CXX}|; \
@


1.8
log
@Mark as broken on powerpc.

Hat:		portmgr
@
text
@d47 3
@


1.7
log
@Update to tolua 5.1.3
@
text
@d42 7
a48 1
.include <bsd.port.mk>
@


1.6
log
@Welcome tolua 5.1
@
text
@d10 1
a10 1
PORTVERSION=	5.1
d20 1
a20 1
WRKSRC=		${WRKDIR}/${PORTNAME}-5.1
@


1.5
log
@Update PORTREVISION for previous commits where plist changed.

PR:		ports/101612
Submitted by:	alepulver
Hat:		portmgr
Pointy hat to:	linimon
@
text
@d10 1
a10 2
PORTVERSION=	5.0.1
PORTREVISION=	1
d19 5
a23 2
USE_LUA=	5.0
WRKSRC=		${WRKDIR}/${PORTNAME}-5.0
@


1.4
log
@Modify these files to reflect bsd.lua.mk as tested on the cluster.

PR:		ports/101612
Submitted by:	alepulver
Hat:		portmgr
@
text
@d11 1
@


1.3
log
@- Switch lua dependency to lang/lua50
@
text
@d18 3
a20 1
LIB_DEPENDS=	lua:${PORTSDIR}/lang/lua50
d22 10
a31 3
WRKSRC=		${WRKDIR}/${PORTNAME}-5.0
USE_GMAKE=	yes
CONFLICTS=	tolua4-.*
d34 4
a37 3
	${INSTALL_PROGRAM} ${WRKSRC}/bin/tolua ${PREFIX}/bin
	${INSTALL_DATA} ${WRKSRC}/include/tolua.h ${PREFIX}/include
	${INSTALL_DATA} ${WRKSRC}/lib/libtolua.a ${PREFIX}/lib
@


1.2
log
@add conflicts with tolua4-*
@
text
@d18 1
a18 1
LIB_DEPENDS=	lua:${PORTSDIR}/lang/lua
@


1.1
log
@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/
@
text
@a20 1

d22 1
@

