head	1.30;
access;
symbols
	RELEASE_8_3_0:1.29
	RELEASE_9_0_0:1.29
	RELEASE_7_4_0:1.29
	RELEASE_8_2_0:1.29
	RELEASE_6_EOL:1.29
	RELEASE_8_1_0:1.29
	RELEASE_7_3_0:1.29
	RELEASE_8_0_0:1.28
	RELEASE_7_2_0:1.28
	RELEASE_7_1_0:1.28
	RELEASE_6_4_0:1.28
	RELEASE_5_EOL:1.28
	RELEASE_7_0_0:1.28
	RELEASE_6_3_0:1.28
	PRE_XORG_7:1.28
	RELEASE_4_EOL:1.26
	RELEASE_6_2_0:1.26
	old_RELEASE_6_1_0:1.22
	old_RELEASE_5_5_0:1.22
	old_RELEASE_6_0_0:1.22
	old_RELEASE_5_4_0:1.19
	old_RELEASE_4_11_0:1.19
	old_RELEASE_5_3_0:1.19
	old_RELEASE_4_10_0:1.19
	old_RELEASE_5_2_1:1.16
	old_RELEASE_5_2_0:1.16
	old_RELEASE_4_9_0:1.15
	old_RELEASE_5_1_0:1.15
	old_RELEASE_4_8_0:1.13
	old_RELEASE_5_0_0:1.12
	old_RELEASE_4_7_0:1.12
	old_RELEASE_4_6_2:1.12
	old_RELEASE_4_6_1:1.12
	old_RELEASE_4_6_0:1.12
	old_RELEASE_5_0_DP1:1.12
	old_RELEASE_4_5_0:1.12
	old_RELEASE_4_4_0:1.11
	old_RELEASE_4_3_0:1.9
	old_RELEASE_4_2_0:1.7
	old_RELEASE_4_1_1:1.7
	old_RELEASE_4_1_0:1.7
	old_RELEASE_3_5_0:1.7
	old_RELEASE_4_0_0:1.5
	old_RELEASE_3_4_0:1.3
	old_RELEASE_3_3_0:1.3
	old_v_3_1:1.1.1.1
	old_KISS:1.1.1;
locks; strict;
comment	@# @;


1.30
date	2012.11.17.05.58.52;	author svnexp;	state Exp;
branches;
next	1.29;

1.29
date	2009.11.18.22.39.52;	author pav;	state Exp;
branches;
next	1.28;

1.28
date	2007.03.07.13.11.46;	author miwi;	state Exp;
branches;
next	1.27;

1.27
date	2007.02.02.10.10.56;	author pav;	state Exp;
branches;
next	1.26;

1.26
date	2006.09.16.22.01.36;	author linimon;	state Exp;
branches;
next	1.25;

1.25
date	2006.09.15.08.17.08;	author linimon;	state Exp;
branches;
next	1.24;

1.24
date	2006.05.03.13.30.06;	author pav;	state Exp;
branches;
next	1.23;

1.23
date	2006.05.03.12.37.03;	author pav;	state Exp;
branches;
next	1.22;

1.22
date	2005.07.05.22.16.13;	author pav;	state Exp;
branches;
next	1.21;

1.21
date	2005.04.12.03.25.51;	author obrien;	state Exp;
branches;
next	1.20;

1.20
date	2005.04.11.08.02.54;	author obrien;	state Exp;
branches;
next	1.19;

1.19
date	2004.04.01.21.49.20;	author pav;	state Exp;
branches;
next	1.18;

1.18
date	2004.02.22.18.25.19;	author arved;	state Exp;
branches;
next	1.17;

1.17
date	2004.02.01.18.28.24;	author pav;	state Exp;
branches;
next	1.16;

1.16
date	2003.11.12.04.15.43;	author ijliao;	state Exp;
branches;
next	1.15;

1.15
date	2003.05.13.09.40.34;	author perky;	state Exp;
branches;
next	1.14;

1.14
date	2003.05.10.22.29.24;	author perky;	state Exp;
branches;
next	1.13;

1.13
date	2003.02.21.12.35.04;	author knu;	state Exp;
branches;
next	1.12;

1.12
date	2001.09.23.19.50.36;	author dwcjr;	state Exp;
branches;
next	1.11;

1.11
date	2001.05.14.00.13.15;	author jeh;	state Exp;
branches;
next	1.10;

1.10
date	2001.04.30.06.54.55;	author kris;	state Exp;
branches;
next	1.9;

1.9
date	2001.01.16.17.31.12;	author sobomax;	state Exp;
branches;
next	1.8;

1.8
date	2001.01.03.08.45.12;	author kevlo;	state Exp;
branches;
next	1.7;

1.7
date	2000.05.14.05.40.49;	author billf;	state Exp;
branches;
next	1.6;

1.6
date	2000.04.12.06.19.17;	author obrien;	state Exp;
branches;
next	1.5;

1.5
date	2000.02.27.07.54.33;	author kris;	state Exp;
branches;
next	1.4;

1.4
date	2000.02.01.00.11.53;	author jedgar;	state Exp;
branches;
next	1.3;

1.3
date	99.08.25.06.34.53;	author obrien;	state Exp;
branches;
next	1.2;

1.2
date	99.07.08.06.02.52;	author cpiazza;	state Exp;
branches;
next	1.1;

1.1
date	99.07.06.01.28.27;	author cpiazza;	state Exp;
branches
	1.1.1.1;
next	;

1.1.1.1
date	99.07.06.01.28.27;	author cpiazza;	state Exp;
branches;
next	;


desc
@@


1.30
log
@Switch exporter over
@
text
@# New ports collection makefile for: 	lua
# Date created:				27 June 1999
# Whom:					Richard Kiss <him@@richardkiss.com>
#
# $FreeBSD: head/lang/lua50/Makefile 300896 2012-07-14 13:54:48Z beat $
#

PORTNAME=	lua
PORTVERSION=	5.0.3
CATEGORIES=	lang
MASTER_SITES=	http://www.lua.org/ftp/ \
		ftp://ftp.tecgraf.puc-rio.br/pub/lua/ \
		ftp://csg.uwaterloo.ca/pub/lhf/lua/ \
		ftp://ftp.ntua.gr/pub/lang/lua/ \
		ftp://ftp.uni-trier.de/pub/languages/lua/ \
		ftp://ftp.gwdg.de/pub/languages/lua/

MAINTAINER=	him@@richardkiss.com
COMMENT=	Small, compilable scripting language providing easy access to C code

USE_LDCONFIG=	yes
USE_LUA=	5.0
LUA_COMPS=	# only define variables
ALL_TARGET=	all so

MAN1=		lua-${LUA_VER}.1 luac-${LUA_VER}.1
DOCSDIR=	${PREFIX}/share/doc/${LUA_SUBDIR}
LATEST_LINK=	${LUA_SUBDIR}

LUA_BIN=	lua luac
LUA_LIB=	lua lualib
LUA_MAN=	${LUA_BIN:S/$/.1/}

MAKE_JOBS_UNSAFE=	yes

.include <bsd.port.pre.mk>

.if ${ARCH} == "amd64"
CFLAGS+=	-fPIC
.endif

post-patch:
	@@${REINPLACE_CMD} -Ee \
		's|^(MYCFLAGS=).*|\1 ${CFLAGS}|; \
		 s|^(LOADLIB=).*|\1 -DUSE_DLOPEN=1|; \
		 s|^(CC=).*|\1 ${CC}|; \
		 s|^#(USERCONF.*READLINE.*)|\1|; \
		 s|^(EXTRA_LIBS=).*|\1 -lm -lreadline -lhistory -lncurses|; \
		 s|^(V=[[:digit:]])\.0|\1|' \
		${WRKSRC}/config
	@@${REINPLACE_CMD} -Ee 's|(ld -o lib/(liblua(lib)?)\.so\.\$$V)|\1 -soname=\2-${LUA_VER}.so.${LUA_VER_SH}|' \
		${WRKSRC}/${MAKEFILE}

post-build:
	@@${RM} -f ${WRKSRC}/test/lua ${WRKSRC}/test/luac

do-install:
# Programs.
	${MKDIR} ${LUA_BINDIR}
.for f in ${LUA_BIN}
	${INSTALL_PROGRAM} ${WRKSRC}/bin/${f} ${LUA_BINDIR}
	${LN} -sf ${LUA_SUBDIR}/${f} ${PREFIX}/bin/${f}-${LUA_VER}
.endfor
# Include files.
	${MKDIR} ${LUA_INCDIR}
	${INSTALL_DATA} ${WRKSRC}/include/*.h ${LUA_INCDIR}
# Libraries.
	${MKDIR} ${LUA_LIBDIR}
.for f in ${LUA_LIB}
	${INSTALL_DATA} ${WRKSRC}/lib/lib${f}.a ${LUA_LIBDIR}
	${INSTALL_DATA} ${WRKSRC}/lib/lib${f}.so \
		${LUA_LIBDIR}/lib${f}-${LUA_VER}.so.${LUA_VER_SH}
	@@${LN} -sf lib${f}-${LUA_VER}.so.${LUA_VER_SH} ${LUA_LIBDIR}/lib${f}.so
	@@${LN} -sf ${LUA_SUBDIR}/lib${f}-${LUA_VER}.so.${LUA_VER_SH} \
		${PREFIX}/lib
	@@${LN} -sf lib${f}-${LUA_VER}.so.${LUA_VER_SH} \
		${PREFIX}/lib/lib${f}-${LUA_VER}.so
.endfor
# Manual pages.
.for f in ${LUA_MAN}
	${INSTALL_MAN} ${WRKSRC}/doc/${f} \
		${PREFIX}/man/man1/${f:C/.1$//}-${LUA_VER}.1
.endfor
# Documentation.
.if !defined(NOPORTDOCS)
	${MKDIR} ${DOCSDIR}
	${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
	cd ${WRKSRC}/doc && ${INSTALL_DATA} *.html *.gif ${DOCSDIR}
	${CP} -r ${WRKSRC}/etc ${WRKSRC}/test ${DOCSDIR}
.endif
# Module directories.
	${MKDIR} ${LUA_MODLIBDIR}
	${MKDIR} ${LUA_MODSHAREDIR}

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


1.29
log
@- Mark MAKE_JOBS_UNSAFE

Reported by:	pointyhat
@
text
@d5 1
a5 1
# $FreeBSD$
@


1.28
log
@- Update to 5.0.3

PR:             109892
Submitted by:   Marcelo Araujo <araujo@@bsdmail.org>
Approved by:    maintainer
@
text
@d34 2
@


1.27
log
@- Don't strip installed libraries

PR:		ports/108560
Submitted by:	Richard S. Conto <rsc@@umich.edu>
Approved by:	Richard Kiss <him@@richardkiss.com> (maintainer)
@
text
@d9 1
a9 2
PORTVERSION=	5.0.2
PORTREVISION=	3
@


1.26
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 1
PORTREVISION=	2
d69 2
a70 2
	${INSTALL_PROGRAM} ${WRKSRC}/lib/lib${f}.a ${LUA_LIBDIR}
	${INSTALL_PROGRAM} ${WRKSRC}/lib/lib${f}.so \
@


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

PR:		ports/101612
Submitted by:	alepulver
Hat:		portmgr
@
text
@d10 1
a10 1
PORTREVISION=	1
@


1.24
log
@- Make the lua ports conflict each another
@
text
@d22 3
a24 2
LATEST_LINK=	lua50
MAN1=		lua.1 luac.1
a25 2
INSTALL_TARGET=	install soinstall
INSTALLS_SHLIB=	YES
d27 3
a29 1
CONFLICTS=	lua-4* lua-5.1*
d31 18
a48 12
do-configure:
	${REINPLACE_CMD} \
		-e 's|^\(MYCFLAGS=\).*$$|\1 ${CFLAGS}|' \
		-e 's|^\(LOADLIB=\).*$$|\1 -DUSE_DLOPEN=1|' \
		-e 's|^\(CC=\).*$$|\1 ${CC}|' \
		-e 's|^\(STRIP=\).*$$|\1 ${STRIP_CMD}|' \
		-e 's|^\(INSTALL_ROOT=\).*$$|\1 ${PREFIX}|' \
		-e 's|^\(INSTALL_EXEC=\).*$$|\1 ${INSTALL_PROGRAM}|' \
		-e 's|^\(INSTALL_DATA=\).*$$|\1 ${INSTALL_DATA}|' \
		-e 's|^#\(USERCONF.*READLINE.*\)$$|\1|' \
		-e 's|^\(EXTRA_LIBS=\).*$$|\1 -lm -lreadline -lhistory -lncurses|' \
		-e 's|V=5.0|V=5|' \
d50 2
d53 31
a83 1
post-install:
d85 4
a88 6
	@@${MKDIR} ${DOCSDIR}
	@@cd ${WRKSRC}/doc && ${INSTALL_DATA} *.html *.gif ${DOCSDIR}
.endif

.if ${MACHINE_ARCH:L} == "amd64"
CFLAGS+=	-fPIC
d90 3
d94 1
a94 1
.include <bsd.port.mk>
@


1.23
log
@- Connect lang/lua50 after repocopy from lang/lua

Repocopy by:	marcus
@
text
@d28 2
@


1.22
log
@- Enable popen(3) support

PR:		ports/82959
Submitted by:	Ed Schouten <ed@@fxq.nl>
Approved by:	Richard Kiss <him@@richardkiss.com> (maintainer)
@
text
@d22 1
a22 1
USE_REINPLACE=	yes
@


1.21
log
@At Kris's request, back out the MACHINE_ARCH spelling correction until
after 5.4-RELEASE.
@
text
@d10 1
@


1.20
log
@Assist getting more ports working on AMD64 by obeying the
Ports Collection documentation and use 'ARCH' rather than 'MACHINE_ARCH'.
@
text
@d47 1
a47 1
.if ${ARCH:L} == "amd64"
@


1.19
log
@- Update to 5.0.2

PR:		ports/65046
Requested by:	Stephane Lentz <milter@@free.fr>
Approved by:	maintainer
@
text
@d47 1
a47 1
.if ${MACHINE_ARCH:L} == "amd64"
@


1.18
log
@Fix build on AMD64

PR:		63203
Submitted by:	Hendrik Scholz <hendrik@@scholz.net>
@
text
@d9 1
a9 1
PORTVERSION=	5.0.1
@


1.17
log
@- Update to 5.0.1

PR:		ports/62224
Submitted by:	Richard Kiss <him@@richardkiss.com> (maintainer)
@
text
@d47 4
@


1.16
log
@add .so support
utilize DOCSDIR

PR:		59199
Submitted by:	maintainer
@
text
@d9 1
a9 2
PORTVERSION=	5.0
PORTREVISION=	1
@


1.15
log
@Update maintainer's email address

Submitted by:	maintainer
@
text
@d10 1
d24 3
d39 1
@


1.14
log
@Upgrade to 5.0 and keep 4.0 as lang/lua4
@
text
@d3 1
a3 1
# Whom:					Richard Kiss <richard@@homemail.com>
d18 1
a18 1
MAINTAINER=	richard@@homemail.com
@


1.13
log
@De-pkg-comment.
@
text
@d9 1
a9 2
PORTVERSION=	4.0
PORTREVISION=	1
d11 2
a12 1
MASTER_SITES=	ftp://ftp.tecgraf.puc-rio.br/pub/lua/ \
d21 2
a22 2
MAN1=		luac.1
WRKSRC=		${WRKDIR}/lua
d24 12
a35 15
do-install:
	@@ ${MKDIR} ${PREFIX}/share/doc/lua
	@@ ${INSTALL_PROGRAM} ${WRKSRC}/bin/lua ${PREFIX}/bin
	@@ ${INSTALL_PROGRAM} ${WRKSRC}/bin/luac ${PREFIX}/bin
	@@ ${INSTALL_MAN} ${WRKSRC}/doc/luac.1 ${PREFIX}/man/man1/luac.1
	@@ ${INSTALL_DATA} ${WRKSRC}/doc/idx.html ${PREFIX}/share/doc/lua
	@@ ${INSTALL_DATA} ${WRKSRC}/doc/index.html ${PREFIX}/share/doc/lua
	@@ ${INSTALL_DATA} ${WRKSRC}/doc/luac.html ${PREFIX}/share/doc/lua
	@@ ${INSTALL_DATA} ${WRKSRC}/doc/manual.html ${PREFIX}/share/doc/lua
	@@ ${INSTALL_DATA} ${WRKSRC}/include/lua.h ${PREFIX}/include
	@@ ${INSTALL_DATA} ${WRKSRC}/include/luadebug.h ${PREFIX}/include
	@@ ${INSTALL_DATA} ${WRKSRC}/include/lualib.h ${PREFIX}/include
	@@ ${INSTALL_DATA} ${WRKSRC}/include/lauxlib.h ${PREFIX}/include
	@@ ${INSTALL_DATA} ${WRKSRC}/lib/liblua.a ${PREFIX}/lib
	@@ ${INSTALL_DATA} ${WRKSRC}/lib/liblualib.a ${PREFIX}/lib
d38 4
a41 2
	@@strip ${PREFIX}/bin/lua
	@@strip ${PREFIX}/bin/luac
@


1.12
log
@Remove ftp.freesoftware.com from MASTER_SITES of ports since it no longer exists.

PR:		30497
Submitted by:	Dan Larsson
Approved by:	will
@
text
@d5 1
a5 1
# $FreeBSD: ports/lang/lua/Makefile,v 1.11 2001/05/14 00:13:15 jeh Exp $
d19 1
@


1.11
log
@Added WWW URL.
Minor portlint cleanup in Makefile

PR:		27304
Submitted by:	Richard Kiss <kiss@@kalamalka.gizzywump.com> MAINTAINER
@
text
@d5 1
a5 1
# $FreeBSD: ports/lang/lua/Makefile,v 1.10 2001/04/30 06:54:55 kris Exp $
a13 1
		ftp://ftp.freesoftware.com/pub/languages/lua/ \
@


1.10
log
@Use random()/srandom() for better PRNG properties than rand()/srand().
Bump PORTREVISION.

Approved by:	maintainer
@
text
@d5 1
a5 1
# $FreeBSD: ports/lang/lua/Makefile,v 1.9 2001/01/16 17:31:12 sobomax Exp $
a17 1
DISTNAME=	lua-4.0
@


1.9
log
@Massive style enforcement - use ^I instead of spaces for variables identation.
@
text
@d5 1
a5 1
# $FreeBSD: ports/lang/lua/Makefile,v 1.8 2001/01/03 08:45:12 kevlo Exp $
d10 1
@


1.8
log
@Update to 4.0

PR: 24036
Submitted by: MAINTAINER
@
text
@d5 1
a5 1
# $FreeBSD: ports/lang/lua/Makefile,v 1.7 2000/05/14 05:40:49 billf Exp $
d22 1
a22 1
WRKSRC=         ${WRKDIR}/lua
@


1.7
log
@ftp.cdrom.com -> ftp.freesoftware.com, adjusting paths as I go.
@
text
@d5 1
a5 1
# $FreeBSD: ports/lang/lua/Makefile,v 1.6 2000/04/12 06:19:17 obrien Exp $
d9 1
a9 1
PORTVERSION=	3.2.2
d17 1
a17 1
DISTNAME=	lua-3.2
d28 1
a28 1
	@@ ${INSTALL_MAN} ${WRKSRC}/doc/luac.man ${PREFIX}/man/man1/luac.1
@


1.6
log
@Convert to the PORTNAME - PORTVERSION syntax.
@
text
@d5 1
a5 1
# $FreeBSD: ports/lang/lua/Makefile,v 1.5 2000/02/27 07:54:33 kris Exp $
d13 1
a13 1
		ftp://ftp.cdrom.com/pub/languages/lua/ \
@


1.5
log
@Lunchboxify by upgrading to lua 3.2.2 (distfile had the same name), and
respect CFLAGS

Noticed by:	bento
@
text
@a1 1
# Version required: 			3.2.2
d5 1
a5 1
# $FreeBSD: ports/lang/lua/Makefile,v 1.4 2000/02/01 00:11:53 jedgar Exp $
d8 2
a9 2
DISTNAME=	lua-3.2
PKGNAME=	lua-3.2.2
d17 1
@


1.4
log
@Update port to 3.2

PR:		16469
Submitted by:	Maintainer
@
text
@d2 1
a2 1
# Version required: 			3.1
d6 1
a6 1
# $FreeBSD: ports/lang/lua/Makefile,v 1.3 1999/08/25 06:34:53 obrien Exp $
d10 1
@


1.3
log
@Change Id->FreeBSD.
@
text
@d6 1
a6 1
# $FreeBSD$
d9 1
a9 1
DISTNAME=	lua-3.1
@


1.2
log
@Install a few missing libraries and headers.

PR:		12544
Submitted by:	maintainer
@
text
@d6 1
a6 1
# $Id: Makefile,v 1.1.1.1 1999/07/06 01:28:27 cpiazza Exp $
@


1.1
log
@Initial revision
@
text
@d6 1
a6 1
# $Id$
d32 10
@


1.1.1.1
log
@Lua:
A programming language originally designed for extending applications,
but also frequently used as a general-purpose, stand-alone language. Lua
combines simple procedural syntax (similar to Pascal) with powerful data
description constructs based on associative arrays and extensible semantics.

PR:		12459
Submitted by:	Richard Kiss <richard@@homemail.com>
@
text
@@
