diff options
author | jlam <jlam> | 2005-09-04 04:59:36 +0000 |
---|---|---|
committer | jlam <jlam> | 2005-09-04 04:59:36 +0000 |
commit | 8b4629da0c1499f84aa638d39d4180c4717d437d (patch) | |
tree | aa55c693e1af22d38f7819199d35d5ab37eb3739 /lang/lua/Makefile | |
parent | 284c689bfed4769aaae3f9a8f05c364eeabe19d9 (diff) | |
download | pkgsrc-8b4629da0c1499f84aa638d39d4180c4717d437d.tar.gz |
Libtoolize lua build. Since the shared library version has changed,
bump the PKGREVISION to 4, and set BUILDLINK_RECOMMENDED.lua appropriately
in the buildlink3.mk file.
Diffstat (limited to 'lang/lua/Makefile')
-rw-r--r-- | lang/lua/Makefile | 44 |
1 files changed, 24 insertions, 20 deletions
diff --git a/lang/lua/Makefile b/lang/lua/Makefile index f42c60dd496..3531550337a 100644 --- a/lang/lua/Makefile +++ b/lang/lua/Makefile @@ -1,7 +1,7 @@ -# $NetBSD: Makefile,v 1.24 2005/06/07 03:52:10 minskim Exp $ +# $NetBSD: Makefile,v 1.25 2005/09/04 04:59:36 jlam Exp $ DISTNAME= lua-5.0.2 -PKGREVISION= 3 +PKGREVISION= 4 CATEGORIES= lang MASTER_SITES= ftp://ftp.tecgraf.puc-rio.br/pub/lua/ \ ftp://ftp.ntua.gr/pub/lang/lua/ \ @@ -22,12 +22,14 @@ COMMENT= Powerful light-weight language for extending applications PKG_INSTALLATION_TYPES= overwrite pkgviews -BUILD_TARGET= all so -INSTALL_TARGET= install soinstall +USE_LIBTOOL= yes +DL_AUTO_VARS= yes +LUA_CFLAGS= ${CFLAGS} +LUA_LDFLAGS= ${LDFLAGS} ${LIBS} +MAKE_ENV+= MYCFLAGS=${LUA_CFLAGS:Q} MYLDFLAGS=${LUA_LDFLAGS:Q} -CFLAGS+= -fPIC -LIBS+= ${BUILDLINK_LDADD.dl} -MAKE_ENV+= LIBS="${LIBS}" +DOCDIR= ${PREFIX}/share/doc/lua +EGDIR= ${PREFIX}/share/examples/lua .include "../../mk/dlopen.buildlink3.mk" @@ -35,19 +37,21 @@ 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_DATA_DIR} ${DOCDIR} + cd ${WRKSRC}; for f in README COPYRIGHT HISTORY; do \ + ${INSTALL_DATA} $$f ${DOCDIR}; \ + done + cd ${WRKSRC}/doc; for f in *.html *.gif; do \ + ${INSTALL_DATA} $$f ${DOCDIR}; \ + done + ${INSTALL_DATA_DIR} ${EGDIR} + cd ${WRKSRC}/test; for f in README *.lua; do \ + ${INSTALL_DATA} $$f ${EGDIR}; \ + done + ${INSTALL_DATA_DIR} ${EGDIR}/etc + cd ${WRKSRC}/etc; for f in README *.c *.h *.lua lua.magic lua.xpm; do \ + ${INSTALL_DATA} $$f ${EGDIR}/etc; \ + done ${INSTALL_PROGRAM} ${WRKSRC}/etc/bin2c ${PREFIX}/bin .include "../../mk/bsd.pkg.mk" |