head	1.59;
access;
symbols
	RELEASE_8_3_0:1.48
	RELEASE_9_0_0:1.46
	RELEASE_7_4_0:1.44
	RELEASE_8_2_0:1.44
	RELEASE_6_EOL:1.44
	RELEASE_8_1_0:1.37
	RELEASE_7_3_0:1.36
	RELEASE_8_0_0:1.36
	RELEASE_7_2_0:1.36
	RELEASE_7_1_0:1.33
	RELEASE_6_4_0:1.33
	RELEASE_5_EOL:1.31
	RELEASE_7_0_0:1.29
	RELEASE_6_3_0:1.29
	PRE_XORG_7:1.29
	RELEASE_4_EOL:1.28
	RELEASE_6_2_0:1.28
	RELEASE_6_1_0:1.22
	RELEASE_5_5_0:1.22
	RELEASE_6_0_0:1.22
	RELEASE_5_4_0:1.19
	RELEASE_4_11_0:1.19
	RELEASE_5_3_0:1.19
	RELEASE_4_10_0:1.19
	RELEASE_5_2_1:1.16
	RELEASE_5_2_0:1.16
	RELEASE_4_9_0:1.15
	RELEASE_5_1_0:1.15
	RELEASE_4_8_0:1.13
	RELEASE_5_0_0:1.12
	RELEASE_4_7_0:1.12
	RELEASE_4_6_2:1.12
	RELEASE_4_6_1:1.12
	RELEASE_4_6_0:1.12
	RELEASE_5_0_DP1:1.12
	RELEASE_4_5_0:1.12
	RELEASE_4_4_0:1.11
	RELEASE_4_3_0:1.9
	RELEASE_4_2_0:1.7
	RELEASE_4_1_1:1.7
	RELEASE_4_1_0:1.7
	RELEASE_3_5_0:1.7
	RELEASE_4_0_0:1.5
	RELEASE_3_4_0:1.3
	RELEASE_3_3_0:1.3
	v_3_1:1.1.1.1
	KISS:1.1.1;
locks; strict;
comment	@# @;


1.59
date	2013.01.05.23.43.11;	author svnexp;	state Exp;
branches;
next	1.58;

1.58
date	2012.11.17.05.58.52;	author svnexp;	state Exp;
branches;
next	1.57;

1.57
date	2012.09.26.21.29.50;	author mandree;	state Exp;
branches;
next	1.56;

1.56
date	2012.04.13.18.18.54;	author mandree;	state Exp;
branches;
next	1.55;

1.55
date	2012.04.12.20.51.53;	author mandree;	state Exp;
branches;
next	1.54;

1.54
date	2012.04.11.22.26.24;	author mandree;	state Exp;
branches;
next	1.53;

1.53
date	2012.04.11.21.21.04;	author mandree;	state Exp;
branches;
next	1.52;

1.52
date	2012.04.11.21.15.16;	author mandree;	state Exp;
branches;
next	1.51;

1.51
date	2012.04.10.19.08.17;	author mandree;	state Exp;
branches;
next	1.50;

1.50
date	2012.04.06.17.50.44;	author mandree;	state Exp;
branches;
next	1.49;

1.49
date	2012.04.06.17.39.12;	author mandree;	state Exp;
branches;
next	1.48;

1.48
date	2012.03.16.18.18.01;	author mandree;	state Exp;
branches;
next	1.47;

1.47
date	2011.12.29.14.14.40;	author mandree;	state Exp;
branches;
next	1.46;

1.46
date	2011.11.04.20.01.16;	author garga;	state Exp;
branches;
next	1.45;

1.45
date	2011.07.06.00.13.41;	author garga;	state Exp;
branches;
next	1.44;

1.44
date	2010.09.30.17.23.36;	author garga;	state Exp;
branches;
next	1.43;

1.43
date	2010.09.21.15.38.18;	author garga;	state Exp;
branches;
next	1.42;

1.42
date	2010.09.20.14.08.06;	author garga;	state Exp;
branches;
next	1.41;

1.41
date	2010.09.20.12.01.53;	author garga;	state Exp;
branches;
next	1.40;

1.40
date	2010.09.16.13.54.15;	author garga;	state Exp;
branches;
next	1.39;

1.39
date	2010.09.01.12.02.01;	author garga;	state Exp;
branches;
next	1.38;

1.38
date	2010.08.16.12.29.21;	author garga;	state Exp;
branches;
next	1.37;

1.37
date	2010.06.01.15.19.44;	author garga;	state Exp;
branches;
next	1.36;

1.36
date	2009.03.28.17.53.20;	author garga;	state Exp;
branches;
next	1.35;

1.35
date	2009.02.05.18.13.59;	author garga;	state Exp;
branches;
next	1.34;

1.34
date	2008.11.28.23.36.14;	author linimon;	state Exp;
branches;
next	1.33;

1.33
date	2008.08.10.19.29.43;	author alepulver;	state Exp;
branches;
next	1.32;

1.32
date	2008.07.04.00.55.59;	author araujo;	state Exp;
branches;
next	1.31;

1.31
date	2008.03.19.16.20.31;	author vanilla;	state Exp;
branches;
next	1.30;

1.30
date	2008.03.19.07.12.15;	author vanilla;	state Exp;
branches;
next	1.29;

1.29
date	2007.03.31.20.40.55;	author philip;	state Exp;
branches;
next	1.28;

1.28
date	2006.09.16.22.01.35;	author linimon;	state Exp;
branches;
next	1.27;

1.27
date	2006.09.15.08.17.08;	author linimon;	state Exp;
branches;
next	1.26;

1.26
date	2006.08.22.09.02.29;	author philip;	state Exp;
branches;
next	1.25;

1.25
date	2006.06.18.12.41.44;	author philip;	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.13.25.42;	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.59
log
@## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/309971
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ## r309971 | mandree | 2013-01-05 22:47:04 +0000 (Sat, 05 Jan 2013) | 11 lines
## SVN ##
## SVN ## Bugfix:
## SVN ## - Record liblua's dependency on libm.so explicitly. [1]
## SVN ##
## SVN ## Assorted lint removals:
## SVN ## - Convert to Options NG
## SVN ## - Reduce old-style Makefile header
## SVN ## - USE_GNOME=pkgconfig -> USE_PKGCONFIG=yes
## SVN ##
## SVN ## PR:		ports/174964
## SVN ## Submitted by:	Matthew X. Economou
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ##
@
text
@# Created by: Richard Kiss
# $FreeBSD: head/lang/lua/Makefile 309971 2013-01-05 22:47:04Z mandree $

PORTNAME=	lua
PORTVERSION=	5.1.5
PORTREVISION=	5
CATEGORIES=	lang
MASTER_SITES=	http://www.lua.org/ftp/ \
		ftp://ftp.ntua.gr/pub/lang/lua/ \
		ftp://ftp.gwdg.de/pub/languages/lua/

MAINTAINER=	lua@@FreeBSD.org
COMMENT=	Small, compilable scripting language providing easy access to C code

LICENSE=	MIT

PATCH_WRKSRC=	${WRKSRC}/src
USE_LUA=	5.1
LUA_COMPS=	# only define variables
ALL_TARGET=	freebsd
USE_PKGCONFIG=	yes
USE_LDCONFIG=	yes
MAKE_JOBS_SAFE=	yes
MAKE_ENV=	LUA_SONAME="liblua-${LUA_VER}.so.${LUA_VER_SH}"
# Overriding __MAKE_CONF makes sure that we don't re-parse
# /etc/make.conf during do-build, which would jeopardize the build
# if, for instance, the user set CFLAGS=mumble
# NOTE: /etc/make.conf is read BEFORE Makefile, so we already
# have its settings when we get here.
# See http://wiki.freebsd.org/MatthiasAndree/LuaLessonsLearnt
MAKE_ARGS=	__MAKE_CONF=${NONEXISTENT}
# liblua.so requires libm, so make sure it has an explicit dependency
# so that applications need not second-guess lua's dependencies.
LDFLAGS+=	-lm

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

LUA_BIN=	lua luac
LUA_INC=	lua.h luaconf.h lualib.h lauxlib.h ../etc/lua.hpp
LUA_MAN=	${LUA_BIN:S/$/.1/}
LUA_ETC=	Makefile README all.c lua.ico luavs.bat min.c \
		noparser.c strict.lua
LUA_TEST=	README bisect.lua cf.lua echo.lua env.lua factorial.lua \
		fib.lua fibfor.lua globals.lua hello.lua life.lua luac.lua \
		printf.lua readonly.lua sieve.lua sort.lua table.lua \
		trace-calls.lua trace-globals.lua xd.lua

.include <bsd.port.pre.mk>

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

post-patch:
	@@${REINPLACE_CMD} -Ee \
		'/^INSTALL_.*=/s/INSTALL_TOP/prefix/ ; \
		 s|^(CC\|AR\|RANLIB)=|\1?=| ; \
		 /^CFLAGS=/ { s/=/+=/; s/-O2//; } ; \
		 s|/usr/local|${PREFIX}|' \
		 ${WRKSRC}/Makefile ${WRKSRC}/src/Makefile
	@@${REINPLACE_CMD} -i '' -Ee \
		's|^(prefix=).*|\1 ${PREFIX}| ; \
		s|^(libdir=).*|\1 ${LUA_LIBDIR}| ; \
		s|^(includedir=).*|\1 ${LUA_INCDIR}| ; \
		s|^(INSTALL_BIN=).*|\1 ${LUA_BINDIR}| ; \
		s|^(INSTALL_INC=).*|\1 ${LUA_INCDIR}| ; \
		s|^(INSTALL_LIB=).*|\1 ${LUA_LIBDIR}| ; \
		s|^(INSTALL_CMOD=).*|\1 ${LUA_MODLIBDIR}| ; \
		s|^(INSTALL_LMOD=).*|\1 ${LUA_MODSHAREDIR}|' \
		${WRKSRC}/etc/lua.pc
	@@${REINPLACE_CMD} -e 's,rand *(,random(,g' \
		${WRKSRC}/src/lmathlib.c
	@@${REINPLACE_CMD} -e '/LUA_ROOT/s|/usr/local|${PREFIX}|' \
		${WRKSRC}/src/luaconf.h

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

do-install:
# Programs.
	${MKDIR} ${LUA_BINDIR}
.for f in ${LUA_BIN}
	${INSTALL_PROGRAM} ${WRKSRC}/src/${f} ${LUA_BINDIR}
	${LN} -sf ${LUA_SUBDIR}/${f} ${PREFIX}/bin/${f}-${LUA_VER}
.endfor
# Include files.
	${MKDIR} ${LUA_INCDIR}
.for f in ${LUA_INC}
	${INSTALL_DATA} ${WRKSRC}/src/${f} ${LUA_INCDIR}
.endfor
# Libraries.
	${MKDIR} ${LUA_LIBDIR}
	${INSTALL_DATA} ${WRKSRC}/src/liblua.a ${LUA_LIBDIR}
	${INSTALL_PROGRAM} ${WRKSRC}/src/liblua.so \
		${LUA_LIBDIR}/liblua-${LUA_VER}.so.${LUA_VER_SH}
	@@${LN} -sf liblua-${LUA_VER}.so.${LUA_VER_SH} ${LUA_LIBDIR}/liblua.so
	@@${LN} -sf ${LUA_SUBDIR}/liblua-${LUA_VER}.so.${LUA_VER_SH} \
		${PREFIX}/lib
	@@${LN} -sf liblua-${LUA_VER}.so.${LUA_VER_SH} \
		${PREFIX}/lib/liblua-${LUA_VER}.so
# Manual pages.
.for f in ${LUA_MAN}
	${INSTALL_MAN} ${WRKSRC}/doc/${f} \
		${PREFIX}/man/man1/${f:C/.1$//}-${LUA_VER}.1
.endfor
# Documentation.
.if ${PORT_OPTIONS:MDOCS}
	${MKDIR} ${DOCSDIR}
	${MKDIR} ${DOCSDIR}/etc
	${MKDIR} ${DOCSDIR}/test
	${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
	cd ${WRKSRC}/doc && ${INSTALL_DATA} *.html *.gif ${DOCSDIR}
.for f in ${LUA_ETC}
	${INSTALL_DATA} ${WRKSRC}/etc/${f} ${DOCSDIR}/etc
.endfor
.for f in ${LUA_TEST}
	${INSTALL_DATA} ${WRKSRC}/test/${f} ${DOCSDIR}/test
.endfor
.endif
# lua.pc
	${INSTALL_DATA} ${WRKSRC}/etc/lua.pc ${PREFIX}/libdata/pkgconfig/lua-${LUA_VER}.pc
# Module directories.
	${MKDIR} ${LUA_MODLIBDIR}
	${MKDIR} ${LUA_MODSHAREDIR}

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


1.58
log
@Switch exporter over
@
text
@d1 2
a2 6
# New ports collection makefile for: 	lua
# Date created:				27 June 1999
# Whom:					Richard Kiss
#
# $FreeBSD: head/lang/lua/Makefile 304932 2012-09-26 21:29:50Z mandree $
#
d6 1
a6 1
PORTREVISION=	4
d21 1
a21 1
USE_GNOME=	pkgconfig
d32 3
d110 1
a110 1
.if !defined(NOPORTDOCS)
@


1.57
log
@SVN rev 304932 on 2012-09-26 21:29:50Z by mandree

Set LICENSE=MIT per <http://www.lua.org/license.html>
@
text
@d5 1
a5 1
# $FreeBSD$
@


1.56
log
@Clarify effect of __MAKE_CONF change, and point to Wiki URL (in a comment).
@
text
@d19 2
@


1.55
log
@Remove CFLAGS=${CFLAGS} regression from MAKE_ARGS again (leftover from
testing).

Reported by:        Valentin Zahariev
Brown paper bag to: mandree@@
@
text
@d30 3
@


1.54
log
@Forced commit to mention that ohauer@@ has joined lua@@.
@
text
@d10 1
a10 1
PORTREVISION=	3
d30 1
a30 1
MAKE_ARGS=	__MAKE_CONF=${NONEXISTENT} CFLAGS="${CFLAGS}"
@


1.53
log
@Add explanatory comment about butchering __MAKE_CONF.
@
text
@d30 1
a30 1
MAKE_ARGS=	__MAKE_CONF=${NONEXISTENT}
@


1.52
log
@Support builds that set CFLAGS=... in /etc/make.conf (discouraged).
@
text
@d27 3
@


1.51
log
@Fix regressions, reinstating io.popen support.

Reported by:  Pierre Guinoiseau
PR:           ports/166753
Reported by:  Vrachnis Ilias-Dimitrios
PR:           ports/166804
Fixed by:     Olli Hauer (ports/166753)
Feature safe: yes
@
text
@d10 1
a10 1
PORTREVISION=	2
d27 1
a27 1
MAKE_ARGS=	MYCFLAGS="${CFLAGS}"
@


1.50
log
@Bring in additional changes by ohauer to preserve LUA_LDIR/LUA_CDIR.

Submitted by: ohauer
PR:           ports/166540
Feature safe: yes
@
text
@d10 1
a10 1
PORTREVISION=	1
d27 1
a27 1
MAKE_ARGS=	CFLAGS="${CFLAGS}"
@


1.49
log
@Update to bug-fix release 5.1.5.

Submitted by: ohauer
Feature safe: yes
PR:           ports/166540
@
text
@d10 1
@


1.48
log
@Be sure to pass CFLAGS properly if set in /etc/make.conf.

Reported by:  mezz
Feature safe: yes
@
text
@d9 1
a9 2
PORTVERSION=	5.1.4
PORTREVISION=	6
a14 3
PATCH_SITES=	http://www.lua.org/ftp/
PATCHFILES=	patch-lua-5.1.4-3

@


1.47
log
@Hand over mantainership to a newly-formed lua team,
currently consisting of Matthias Andree (mandree@@) and Niclas Zeising.

Approved by: garga@@ (maintainer)
@
text
@d30 1
@


1.46
log
@- Remove gmake as a dependency, it's not necessary

PR:		ports/162279
Submitted by:	Lyndon Nerenberg <lyndon@@orthanc.ca>
@
text
@d19 1
a19 1
MAINTAINER=	garga@@FreeBSD.org
@


1.45
log
@Update patch to 5.1.4-3
@
text
@a29 1
USE_GMAKE=	yes
@


1.44
log
@Cleanup MASTER_SITES
@
text
@d10 1
a10 1
PORTREVISION=	5
d17 1
a17 1
PATCHFILES=	patch-lua-5.1.4-2
@


1.43
log
@After some mistakes i made on this port last days, i hop^W believe this is the
last commit.

The original problem is port was broken on amd64 when you have CFLAGS= defined
on make.conf. On last commit i thought it was fixed, but no, i don't know why
but it was building without define LUA_USE_LINUX and the binary generated was
wrong.

I figured out just using GMAKE fixes everything, it respect CFLAGS= when you
have, add -fPIC for amd64 and use correct defines for building, so, lets use
gmake to build this port for now.

Pointyhats to:	garga@@
@
text
@a12 2
		ftp://ftp.tecgraf.puc-rio.br/pub/lua/ \
		ftp://csg.uwaterloo.ca/pub/lhf/lua/ \
a13 1
		ftp://ftp.uni-trier.de/pub/languages/lua/ \
@


1.42
log
@- Make lua respect CFLAGS= defined on /etc/make.conf and still plus -fPIC on
  necessary archs.
- Remove unecessary dependency gmake
- Bump PORTREVISION because of gmake removal

Thanks to:	johans@@
@
text
@d10 1
a10 1
PORTREVISION=	4
d33 1
a33 1
MAKE_ARGS=	CFLAGS="${CFLAGS}"
@


1.41
log
@- Fix build on amd64
- Bump PORTREVISION

Reported by:	Eduardo Schoedler <eschoedler@@viavale.com.br> and
		Robert Huff <roberthuff@@rcn.com>
@
text
@d10 1
a10 1
PORTREVISION=	3
d33 1
a33 1
USE_GMAKE=	yes
@


1.40
log
@- Add upstream patches for version 1.5.4
- Bump PORTREVISION
@
text
@d10 1
a10 1
PORTREVISION=	2
d33 1
d50 6
d128 1
a128 5
.if ${MACHINE_ARCH:L} == "amd64" || ${MACHINE_ARCH:L} == "powerpc"
CFLAGS+=	-fPIC
.endif

.include <bsd.port.mk>
@


1.39
log
@- Make the port respect -O from make.conf and deal fine with WITH_DEBUG

PR:		ports/150173
Submitted by:	Anonymous <swell.k@@gmail.com>
@
text
@d10 1
a10 1
PORTREVISION=	1
d19 3
d25 1
@


1.38
log
@- Make LUA_ROOT respect PREFIX
- Bump PORTREVISION

PR:		ports/149706
Submitted by:	Anonymous <swell.k@@gmail.com>
@
text
@d48 2
a49 2
		 s|^(CC=).*|\1 ${CC}| ; \
		 s|^(CFLAGS=)|\1 ${CFLAGS}| ; \
@


1.37
log
@Fix build on powerpc

Submitted by:	lx@@
@
text
@d10 1
d64 2
@


1.36
log
@Mark all my ports as MAKE_JOBS_SAFE and MAKE_JOBS_UNSAFE
@
text
@d114 1
a114 1
.if ${MACHINE_ARCH:L} == "amd64"
@


1.35
log
@- Update to 5.1.4
- Use PORTDOCS facility
- Remove a simple patch and use REINPLACE_CMD instead
- Take maintainership
@
text
@d26 1
@


1.34
log
@Reset andrew+ports@@fubar.geek.nz due to maintainer-timeouts and no response
to email.

Hat:	portmgr
@
text
@d9 1
a9 2
PORTVERSION=	5.1.3
PORTREVISION=	3
d18 1
a18 1
MAINTAINER=	ports@@FreeBSD.org
d30 1
d60 2
@


1.33
log
@- Merge patch-Makefile into patch-src-Makefile (both actually patch same file).
- Patch lang/lua to behave as expected by the framework.
- Add missing library dependency (only run before) when using lua 5.1.
- Add notes in bsd.lua.mk for updating lang/lua* ports describing how they are
  integrated into the ports tree.

PR:		ports/126207
Submitted by:	Daniel Roethlisberger <daniel@@roe.ch>
@
text
@d19 1
a19 1
MAINTAINER=	andrew+ports@@fubar.geek.nz
@


1.32
log
@- liblua.so is required in building mod_security, wireshark and possibly others with lua support, now create a shared lib is needed.
- Bump PORTREVISION.

PR:		ports/124297
Submitted by:	Tomoyuki Sakurai <cherry@@trombik.org>
Approved by:	maintainer timeout ( > 2 weeks)
@
text
@d10 1
a10 1
PORTREVISION=	2
d26 2
a27 1
USE_LDCONFIG=	${LUA_LIBDIR}
d50 1
a50 1
	@@${REINPLACE_CMD} -Ee \
d59 1
a59 1
		${WRKSRC}/etc/lua.pc && ${RM} ${WRKSRC}/etc/lua.pc.bak
d79 7
a85 2
	${INSTALL_PROGRAM} ${WRKSRC}/src/liblua.so ${LUA_LIBDIR}/liblua.so.1
	cd ${LUA_LIBDIR} && ${LN} -s liblua.so.1 liblua.so
a105 1
	${MKDIR} ${LOCALBASE}/libdata/pkgconfig
@


1.31
log
@Integrate with maintainer's patch.
@
text
@d10 1
a10 1
PORTREVISION=	1
d26 1
d78 2
d101 1
a101 1
	${INSTALL_DATA} ${WRKSRC}/etc/lua.pc ${LOCALBASE}/libdata/pkgconfig/lua-${LUA_VER}.pc
@


1.30
log
@Upgrade to 5.1.3.

PR:		ports/120542
Submitted by:	Hirohisa Yamaguchi <umq at ueo dot co dot jp>
Approved by:	maintainer
@
text
@d10 1
d34 6
d85 2
d89 6
a94 1
	${CP} -r ${WRKSRC}/etc ${WRKSRC}/test ${DOCSDIR}
d96 3
a101 2
# pkg-config file.
	${INSTALL_DATA} ${WRKSRC}/etc/lua.pc ${PREFIX}/libdata/pkgconfig
@


1.29
log
@Change maintainer at previous maintainer's request.

PR:		ports/111047
Submitted by:	Richard Kiss <him -at- richardkiss.com> (maintainer)
@
text
@d9 1
a9 2
PORTVERSION=	5.1.1
PORTREVISION=	2
d23 2
a24 1
ALL_TARGET=	bsd
d36 2
a37 1
		 's|^(CC=).*|\1 ${CC}| ; \
d41 10
d85 2
@


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

PR:		ports/101612
Submitted by:	alepulver
Hat:		portmgr
Pointy hat to:	linimon
@
text
@d3 1
a3 1
# Whom:					Richard Kiss <him@@richardkiss.com>
d19 1
a19 1
MAINTAINER=	him@@richardkiss.com
@


1.27
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.26
log
@Update lua to 5.1.1

PR:		ports/102364
Submitted by:	Richard Kiss <kiss -at- gizzywump.com> (maintainer)
@
text
@d22 11
a32 5
MAN1=		lua.1 luac.1

MAKE_ARGS=	bsd

CONFLICTS=	lua-4* lua-5.0*
d35 30
a64 3
	@@${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|' ${WRKSRC}/Makefile

post-install:
d66 4
a69 2
	@@${MKDIR} ${DOCSDIR}
	@@cd ${WRKSRC}/doc && ${INSTALL_DATA} *.html *.css *.gif ${DOCSDIR}
d71 3
@


1.25
log
@Make lua always respect ${LOCALBASE}.

PR:		ports/98998
Submitted by:	Dmitry Marakasov <amdmi3 -at- mail.ru>
Approved by:	Richard Kiss <him -at- richardkiss.com> (maintainer)
@
text
@d9 1
a9 1
PORTVERSION=	5.1
@


1.24
log
@- Make the lua ports conflict each another
@
text
@d10 1
d28 3
@


1.23
log
@- Update to 5.1

PR:		ports/96449
Submitted by:	Richard Kiss <him@@richardkiss.com> (maintainer)
@
text
@d25 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
@d9 1
a9 2
PORTVERSION=	5.0.2
PORTREVISION=	1
a20 1
USE_REINPLACE=	yes
d22 2
a23 17
ALL_TARGET=	all so
INSTALL_TARGET=	install soinstall
INSTALLS_SHLIB=	YES

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|' \
		${WRKSRC}/config
d28 1
a28 1
	@@cd ${WRKSRC}/doc && ${INSTALL_DATA} *.html *.gif ${DOCSDIR}
@


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