2004-12-16 08:04:07 -05:00
|
|
|
# $OpenBSD: Makefile,v 1.14 2004/12/16 13:04:07 pedro Exp $
|
2001-05-05 21:27:52 -04:00
|
|
|
|
|
|
|
COMMENT= "powerful, light-weight programming language"
|
2000-08-15 23:15:41 -04:00
|
|
|
|
2004-04-07 21:44:41 -04:00
|
|
|
DISTNAME= lua-5.0.2
|
2004-12-16 08:04:07 -05:00
|
|
|
PKGNAME= ${DISTNAME}p0
|
2000-08-15 23:15:41 -04:00
|
|
|
CATEGORIES= lang
|
2002-10-27 09:12:47 -05:00
|
|
|
|
2003-12-02 19:56:43 -05:00
|
|
|
MASTER_SITES= http://www.lua.org/ftp/ \
|
2004-04-07 21:44:41 -04:00
|
|
|
http://www.tecgraf.puc-rio.br/lua/ftp/ \
|
2003-12-02 19:56:43 -05:00
|
|
|
http://ftp.gwdg.de/pub/languages/lua/ \
|
|
|
|
http://mirrors.sunsite.dk/lua/ \
|
2004-04-07 21:44:41 -04:00
|
|
|
http://ftp.ntua.gr/pub/lang/lua/ \
|
2003-12-02 19:56:43 -05:00
|
|
|
http://ftp.chg.ru/pub/lang/lua/
|
2000-08-15 23:15:41 -04:00
|
|
|
|
2003-12-02 19:56:43 -05:00
|
|
|
HOMEPAGE= http://www.lua.org/
|
2000-08-15 23:15:41 -04:00
|
|
|
|
2004-07-03 10:23:32 -04:00
|
|
|
MAINTAINER= Pedro Martelletto <pedro@openbsd.org>
|
2000-08-15 23:15:41 -04:00
|
|
|
|
2003-12-02 19:56:43 -05:00
|
|
|
# MIT
|
2000-08-15 23:15:41 -04:00
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
|
|
|
2004-12-16 08:04:07 -05:00
|
|
|
WANTLIB= c m
|
2003-12-02 19:56:43 -05:00
|
|
|
NO_REGRESS= Yes
|
2000-08-15 23:15:41 -04:00
|
|
|
|
2004-07-04 19:34:36 -04:00
|
|
|
.if ${MACHINE_ARCH} != "m88k" && ${MACHINE_ARCH} != "vax"
|
2004-05-25 08:14:30 -04:00
|
|
|
CFLAGS+= -fPIC
|
|
|
|
ALL_TARGET+= all so sobin
|
|
|
|
.endif
|
|
|
|
|
2004-12-16 08:04:07 -05:00
|
|
|
post-extract:
|
|
|
|
.for f in init luapkg packages
|
|
|
|
@sed -e "s:@pkgconf@:${SYSCONFDIR}/lua/packages.lua:g" \
|
|
|
|
${FILESDIR}/${f}.lua > ${WRKSRC}/$f.lua
|
|
|
|
.endfor
|
|
|
|
|
|
|
|
post-patch:
|
|
|
|
@perl -pi -e 's:\@initconf@:${SYSCONFDIR}/lua/init.lua:g;' \
|
|
|
|
${WRKSRC}/src/lua/lua.c
|
|
|
|
|
2000-08-15 23:15:41 -04:00
|
|
|
post-build:
|
2001-03-26 03:49:09 -05:00
|
|
|
cd ${WRKDIST} && ${CC} ${CFLAGS} -o bin/bin2c etc/bin2c.c
|
2000-10-22 18:56:05 -04:00
|
|
|
|
2000-08-15 23:15:41 -04:00
|
|
|
do-install:
|
2000-12-19 01:49:59 -05:00
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/include
|
2000-08-15 23:15:41 -04:00
|
|
|
${INSTALL_DATA} ${WRKDIST}/include/*.h ${PREFIX}/include
|
|
|
|
${INSTALL_DATA} ${WRKDIST}/lib/* ${PREFIX}/lib
|
|
|
|
${INSTALL_PROGRAM} ${WRKDIST}/bin/lua ${PREFIX}/bin
|
|
|
|
${INSTALL_PROGRAM} ${WRKDIST}/bin/luac ${PREFIX}/bin
|
|
|
|
${INSTALL_PROGRAM} ${WRKDIST}/bin/bin2c ${PREFIX}/bin
|
2001-01-18 20:16:51 -05:00
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/lua
|
2004-12-16 08:04:07 -05:00
|
|
|
${INSTALL_DATA} ${WRKDIST}/doc/*.html ${WRKDIST}/doc/*.gif \
|
|
|
|
${PREFIX}/share/doc/lua
|
|
|
|
${INSTALL_MAN_DIR} ${PREFIX}/man/man1
|
|
|
|
${INSTALL_MAN} ${WRKDIST}/doc/*.1 ${PREFIX}/man/man1
|
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/lua
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/init.lua ${PREFIX}/share/examples/lua
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/luapkg.lua ${PREFIX}/share/examples/lua
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/packages.lua \
|
|
|
|
${PREFIX}/share/examples/lua/packages.lua
|
2000-08-15 23:15:41 -04:00
|
|
|
|
2003-12-02 19:56:43 -05:00
|
|
|
.include <bsd.port.mk>
|