51 lines
1.6 KiB
Makefile
51 lines
1.6 KiB
Makefile
# $NetBSD: Makefile,v 1.23 2005/06/07 03:47:24 minskim Exp $
|
|
|
|
DISTNAME= lua-5.0.2
|
|
PKGREVISION= 2
|
|
CATEGORIES= lang
|
|
MASTER_SITES= ftp://ftp.tecgraf.puc-rio.br/pub/lua/ \
|
|
ftp://ftp.ntua.gr/pub/lang/lua/ \
|
|
ftp://ftp.gwdg.de/pub/languages/lua/ \
|
|
ftp://ftp.u-aizu.ac.jp/pub/lang/lua/ \
|
|
ftp://ftp.ucore.com/lua/dist/ \
|
|
ftp://sunsite.dk/pub/languages/lua/ \
|
|
ftp://ftp.chg.ru/pub/lang/lua/ \
|
|
http://www.lua.org/ftp/ \
|
|
http://www.tecgraf.puc-rio.br/lua/ftp/ \
|
|
http://ftp.gwdg.de/pub/languages/lua/ \
|
|
http://mirrors.sunsite.dk/lua/ \
|
|
http://ftp.chg.ru/pub/lang/lua/
|
|
|
|
MAINTAINER= pkgsrc@bjan.freeshell.org
|
|
HOMEPAGE= http://www.lua.org/
|
|
COMMENT= Powerful light-weight language for extending applications
|
|
|
|
PKG_INSTALLATION_TYPES= overwrite pkgviews
|
|
|
|
BUILD_TARGET= all so
|
|
INSTALL_TARGET= install soinstall
|
|
|
|
CFLAGS+= -fPIC
|
|
LIBS+= ${BUILDLINK_LDADD.dl}
|
|
MAKE_ENV+= LIBS="${LIBS}"
|
|
|
|
post-build:
|
|
cd ${WRKSRC}/etc && ${SETENV} ${MAKE_ENV} ${MAKE} bin2c
|
|
|
|
post-install:
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/lua
|
|
cd ${WRKSRC}; ${INSTALL_DATA} README COPYRIGHT \
|
|
HISTORY ${PREFIX}/share/doc/lua
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/html/lua
|
|
cd ${WRKSRC}/doc; ${INSTALL_DATA} *.html *.gif \
|
|
${PREFIX}/share/doc/html/lua
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/lua
|
|
cd ${WRKSRC}/test && ${INSTALL_DATA} README *.lua \
|
|
${PREFIX}/share/examples/lua
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/lua/etc
|
|
cd ${WRKSRC}/etc && ${INSTALL_DATA} README *.c *.h \
|
|
*.lua lua.magic lua.xpm \
|
|
${PREFIX}/share/examples/lua/etc
|
|
${INSTALL_PROGRAM} ${WRKSRC}/etc/bin2c ${PREFIX}/bin
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|