head	1.26;
access;
symbols
	RELEASE_8_3_0:1.25
	RELEASE_9_0_0:1.25
	RELEASE_7_4_0:1.25
	RELEASE_8_2_0:1.25
	RELEASE_6_EOL:1.25
	RELEASE_8_1_0:1.25
	RELEASE_7_3_0:1.25
	RELEASE_8_0_0:1.24
	RELEASE_7_2_0:1.24
	RELEASE_7_1_0:1.24
	RELEASE_6_4_0:1.24
	RELEASE_5_EOL:1.24
	RELEASE_7_0_0:1.24
	RELEASE_6_3_0:1.24
	PRE_XORG_7:1.24
	RELEASE_4_EOL:1.24
	RELEASE_6_2_0:1.24
	RELEASE_6_1_0:1.20
	RELEASE_5_5_0:1.20
	RELEASE_6_0_0:1.20
	RELEASE_5_4_0:1.18
	RELEASE_4_11_0:1.18
	RELEASE_5_3_0:1.18
	RELEASE_4_10_0:1.18
	RELEASE_5_2_1:1.17
	RELEASE_5_2_0:1.17
	RELEASE_4_9_0:1.16
	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.26
date	2012.11.17.05.58.52;	author svnexp;	state Exp;
branches;
next	1.25;

1.25
date	2009.11.18.22.39.51;	author pav;	state Exp;
branches;
next	1.24;

1.24
date	2006.09.16.22.01.35;	author linimon;	state Exp;
branches;
next	1.23;

1.23
date	2006.09.15.08.17.08;	author linimon;	state Exp;
branches;
next	1.22;

1.22
date	2006.06.04.12.12.33;	author philip;	state Exp;
branches;
next	1.21;

1.21
date	2006.05.03.13.30.06;	author pav;	state Exp;
branches;
next	1.20;

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

1.19
date	2005.04.11.08.02.59;	author obrien;	state Exp;
branches;
next	1.18;

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

1.17
date	2003.09.24.09.36.54;	author osa;	state Exp;
branches;
next	1.16;

1.16
date	2003.07.23.17.50.50;	author arved;	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.36.13;	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.26
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/lua4/Makefile 300896 2012-07-14 13:54:48Z beat $
#

PORTNAME=	lua
PORTVERSION=	4.0.1
PORTREVISION=	1
CATEGORIES=	lang
MASTER_SITES=	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=	4.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|^#(POPEN=.*)|\1|; \
		 s|^(CC=).*|\1 ${CC}|; \
		 s|^(CFLAGS=) -O2 (.*)|\1 ${CFLAGS} \2|; \
		 s|^(V=)[[:digit:]]\.0|\1 ${LUA_VER}|' \
		${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_PROGRAM} ${WRKSRC}/lib/lib${f}.a ${LUA_LIBDIR}
	${INSTALL_PROGRAM} ${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_MODSHAREDIR}
	${MKDIR} ${LUA_MODLIBDIR}

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


1.25
log
@- Mark MAKE_JOBS_UNSAFE

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


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

PR:		ports/101612
Submitted by:	alepulver
Hat:		portmgr
Pointy hat to:	linimon
@
text
@d34 2
@


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


1.22
log
@Update to 4.0.1.

PR:		98423
Submitted by:	Martin Wilke <freebsd -at- unixfreunde.de>
Approved by:	Richard Kiss <him -at- richardkiss.com> (maintainer)
@
text
@d20 3
a22 3
LATEST_LINK=	lua4
MAN1=		luac.1
WRKSRC=		${WRKDIR}/${PORTNAME}-${PORTVERSION}
a23 1
INSTALLS_SHLIB=	YES
d25 3
a27 1
CONFLICTS=	lua-5*
d29 5
a33 23
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/liblua.so.4.0 ${PREFIX}/lib/liblua.so.4
	@@ ${LN} -s ${PREFIX}/lib/liblua.so.4 ${PREFIX}/lib/liblua.so
	@@ ${INSTALL_DATA} ${WRKSRC}/lib/liblualib.a ${PREFIX}/lib
	@@ ${INSTALL_DATA} ${WRKSRC}/lib/liblualib.so.4.0 ${PREFIX}/lib/liblualib.so.4
	@@ ${LN} -s ${PREFIX}/lib/liblualib.so.4 ${PREFIX}/lib/liblualib.so

post-install:
	@@${STRIP_CMD} ${PREFIX}/bin/lua
	@@${STRIP_CMD} ${PREFIX}/bin/luac
d35 1
a35 1
.if ${MACHINE_ARCH:L} == "amd64"
d39 52
a90 1
.include <bsd.port.mk>
@


1.21
log
@- Make the lua ports conflict each another
@
text
@d9 1
a9 2
PORTVERSION=	4.0
PORTREVISION=	2
d22 1
a22 1
WRKSRC=		${WRKDIR}/lua
d53 1
a53 1
CFLAGS+=    -fPIC
@


1.20
log
@At Kris's request, back out the MACHINE_ARCH spelling correction until
after 5.4-RELEASE.
@
text
@d27 2
@


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


1.18
log
@Fix build on AMD64

PR:		63202
Submitted by:	Hendrik Scholz <hendrik@@scholz.net>
@
text
@d51 1
a51 1
.if ${MACHINE_ARCH:L} == "amd64"
@


1.17
log
@Make portlint(1) happy by changing strip to ${STRIP_CMD}

Submitted by:	Oleg Karachevtsev <ok@@etrust.ru>
PR:		56998
@
text
@d51 4
@


1.16
log
@Install shared library.
Bump PORTREVISION.

PR:		54007
Submitted by:	Volker Stolz <stolz@@i2.informatik.rwth-aachen.de>
@
text
@d48 2
a49 2
	@@strip ${PREFIX}/bin/lua
	@@strip ${PREFIX}/bin/luac
@


1.15
log
@Update maintainer's email address

Submitted by:	maintainer
@
text
@d10 1
a10 1
PORTREVISION=	1
d24 2
d41 2
d44 2
@


1.14
log
@- Remove the obsolete WWW url. [1]
- Set LATEST_LINK to lua4 in favor of lang/lua.

PR:		50654 [1]
Submitted by:	Pierre-Paul Lavoie <ppl@@nbnet.nb.ca> [1]
@
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
@d21 1
@


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