diff options
author | jtb <jtb@pkgsrc.org> | 2003-04-29 23:15:35 +0000 |
---|---|---|
committer | jtb <jtb@pkgsrc.org> | 2003-04-29 23:15:35 +0000 |
commit | 0f13b54ed11a40a47da559c2f53992a3f9e23b4e (patch) | |
tree | 4658b8d8749293e140eff6ff31c3368b3a16ceec /lang/lua4 | |
parent | 97161507210d27e4dd15a0515ba8781b4354af4a (diff) | |
download | pkgsrc-0f13b54ed11a40a47da559c2f53992a3f9e23b4e.tar.gz |
Import of lua4 for packages requiring lua version 4.
Lua is a powerful, light-weight programming language designed for
extending applications. Lua is also frequently used as a
general-purpose, stand-alone language.
Diffstat (limited to 'lang/lua4')
-rw-r--r-- | lang/lua4/DESCR | 3 | ||||
-rw-r--r-- | lang/lua4/Makefile | 40 | ||||
-rw-r--r-- | lang/lua4/PLIST | 23 | ||||
-rw-r--r-- | lang/lua4/buildlink2.mk | 26 | ||||
-rw-r--r-- | lang/lua4/distinfo | 9 | ||||
-rw-r--r-- | lang/lua4/patches/patch-aa | 8 | ||||
-rw-r--r-- | lang/lua4/patches/patch-ab | 34 | ||||
-rw-r--r-- | lang/lua4/patches/patch-ac | 33 | ||||
-rw-r--r-- | lang/lua4/patches/patch-ad | 21 | ||||
-rw-r--r-- | lang/lua4/patches/patch-ae | 21 |
10 files changed, 218 insertions, 0 deletions
diff --git a/lang/lua4/DESCR b/lang/lua4/DESCR new file mode 100644 index 00000000000..17da2573af0 --- /dev/null +++ b/lang/lua4/DESCR @@ -0,0 +1,3 @@ +Lua is a powerful, light-weight programming language designed for +extending applications. Lua is also frequently used as a +general-purpose, stand-alone language. diff --git a/lang/lua4/Makefile b/lang/lua4/Makefile new file mode 100644 index 00000000000..a9cbd863ccc --- /dev/null +++ b/lang/lua4/Makefile @@ -0,0 +1,40 @@ +# $NetBSD: Makefile,v 1.1.1.1 2003/04/29 23:15:35 jtb Exp $ + +DISTNAME= lua-4.0.1 +PKGNAME= lua4-4.01 +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= packages@netbsd.org +HOMEPAGE= http://www.lua.org +COMMENT= Powerful light-weight language for extending applications + +USE_BUILDLINK2= yes + +BUILD_DIRS= ${WRKSRC}/objdir + +post-extract: + ${MKDIR} ${BUILD_DIRS} + +post-patch: + ${CP} ${WRKSRC}/doc/lua.1 ${BUILD_DIRS}/lua/lua4.1 + ${CP} ${WRKSRC}/doc/luac.1 ${BUILD_DIRS}/luac/luac4.1 + +pre-install: + for f in ${WRKSRC}/include/*.h; do \ + ${SED} -e 's:lua.h:lua4.h:g' $$f > $$f.tmp \ + && ${MV} $$f.tmp $$f; \ + done + +.include "../../mk/bsd.pkg.mk" diff --git a/lang/lua4/PLIST b/lang/lua4/PLIST new file mode 100644 index 00000000000..9610d528735 --- /dev/null +++ b/lang/lua4/PLIST @@ -0,0 +1,23 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2003/04/29 23:15:36 jtb Exp $ +bin/lua4 +bin/luac4 +include/lauxlib4.h +include/lua4.h +include/luadebug4.h +include/lualib4.h +lib/liblua4.a +lib/liblua4.so +lib/liblua4.so.0 +lib/liblua4.so.0.0 +lib/liblua4_p.a +lib/liblua4_pic.a +lib/liblualib4.a +lib/liblualib4.so +lib/liblualib4.so.0 +lib/liblualib4.so.0.0 +lib/liblualib4_p.a +lib/liblualib4_pic.a +man/cat1/lua4.0 +man/cat1/luac4.0 +man/man1/lua4.1 +man/man1/luac4.1 diff --git a/lang/lua4/buildlink2.mk b/lang/lua4/buildlink2.mk new file mode 100644 index 00000000000..96811dd03e8 --- /dev/null +++ b/lang/lua4/buildlink2.mk @@ -0,0 +1,26 @@ +# $NetBSD: buildlink2.mk,v 1.1.1.1 2003/04/29 23:15:36 jtb Exp $ +# +# This Makefile fragment is included by packages that use lua4. +# + +.if !defined(LUA4_BUILDLINK2_MK) +LUA4_BUILDLINK2_MK= # defined + +BUILDLINK_PACKAGES+= lua4 +BUILDLINK_DEPENDS.lua4?= lua4>=4.0.1 +BUILDLINK_PKGSRCDIR.lua4?= ../../lang/lua4 + +EVAL_PREFIX+= BUILDLINK_PREFIX.lua4=lua4 +BUILDLINK_PREFIX.lua4_DEFAULT= ${LOCALBASE} +BUILDLINK_FILES.lua4+= include/lauxlib4.h +BUILDLINK_FILES.lua4+= include/lua4.h +BUILDLINK_FILES.lua4+= include/luadebug4.h +BUILDLINK_FILES.lua4+= include/lualib4.h +BUILDLINK_FILES.lua4+= lib/liblua4.* +BUILDLINK_FILES.lua4+= lib/liblualib4.* + +BUILDLINK_TARGETS+= lua4-buildlink + +lua4-buildlink: _BUILDLINK_USE + +.endif # LUA4_BUILDLINK2_MK diff --git a/lang/lua4/distinfo b/lang/lua4/distinfo new file mode 100644 index 00000000000..6edc00b6110 --- /dev/null +++ b/lang/lua4/distinfo @@ -0,0 +1,9 @@ +$NetBSD: distinfo,v 1.1.1.1 2003/04/29 23:15:36 jtb Exp $ + +SHA1 (lua-4.0.1.tar.gz) = 12f1864a7ecd4b8011862a07fa3f177b2e80e7d3 +Size (lua-4.0.1.tar.gz) = 158426 bytes +SHA1 (patch-aa) = b16069ce4622b2b4b282e6ad1625f37a2c10fb78 +SHA1 (patch-ab) = a52d011edf0f66916acf8d50c2732daf4a302f44 +SHA1 (patch-ac) = 6216b3ab02f7ed01ccb1c08910add2bdaeb8535b +SHA1 (patch-ad) = 09e1c9993cdf14cc23bd1d15c0d56244d118481b +SHA1 (patch-ae) = c625f44acfc1e1e31248dd784f18523fa1c9f209 diff --git a/lang/lua4/patches/patch-aa b/lang/lua4/patches/patch-aa new file mode 100644 index 00000000000..a4c7a07bdec --- /dev/null +++ b/lang/lua4/patches/patch-aa @@ -0,0 +1,8 @@ +$NetBSD: patch-aa,v 1.1.1.1 2003/04/29 23:15:36 jtb Exp $ + +--- /dev/null ++++ objdir/Makefile +@@ -0,0 +1,3 @@ ++SUBDIR+= liblua liblualib lua luac ++ ++.include <bsd.subdir.mk> diff --git a/lang/lua4/patches/patch-ab b/lang/lua4/patches/patch-ab new file mode 100644 index 00000000000..d3a3d5d52d3 --- /dev/null +++ b/lang/lua4/patches/patch-ab @@ -0,0 +1,34 @@ +$NetBSD: patch-ab,v 1.1.1.1 2003/04/29 23:15:36 jtb Exp $ + +--- /dev/null ++++ objdir/liblua/Makefile +@@ -0,0 +1,29 @@ ++LIB= lua4 ++ ++SHLIB_MAJOR= 0 ++SHLIB_MINOR= 0 ++ ++LIBDIR= ${PREFIX}/lib ++INCDIR= ${PREFIX}/include ++ ++CPPFLAGS+= -I${.CURDIR}/../../include ++ ++LDADD+= -lm ++ ++NOLINT= 1 ++ ++.PATH: ${.CURDIR}/../../src ++ ++INCLUDES= lua.h luadebug.h lauxlib.h ++ ++SRCS= lapi.c lcode.c ldebug.c ldo.c lfunc.c lgc.c llex.c lmem.c \ ++ lobject.c lparser.c lstate.c lstring.c ltable.c ltests.c \ ++ ltm.c lundump.c lvm.c lzio.c ++ ++afterinstall: ++ for i in ${INCLUDES}; do \ ++ ${BSD_INSTALL_DATA} ${.CURDIR}/../../include/$$i \ ++ ${INCDIR}/`basename $$i .h`4.h; \ ++ done ++ ++.include <bsd.lib.mk> diff --git a/lang/lua4/patches/patch-ac b/lang/lua4/patches/patch-ac new file mode 100644 index 00000000000..926a2eaedcb --- /dev/null +++ b/lang/lua4/patches/patch-ac @@ -0,0 +1,33 @@ +$NetBSD: patch-ac,v 1.1.1.1 2003/04/29 23:15:36 jtb Exp $ + +--- /dev/null ++++ objdir/liblualib/Makefile +@@ -0,0 +1,28 @@ ++LIB= lualib4 ++ ++SHLIB_MAJOR= 0 ++SHLIB_MINOR= 0 ++ ++LIBDIR= ${PREFIX}/lib ++INCDIR= ${PREFIX}/include ++ ++CPPFLAGS+= -I${.CURDIR}/../../include ++CPPFLAGS+= -DPOPEN ++ ++LDADD+= -R${LIBDIR} -L${.CURDIR}/../liblua -llua4 -lm ++ ++NOLINT= 1 ++ ++.PATH: ${.CURDIR}/../../src/lib ++ ++INCLUDES= lualib.h ++ ++SRCS= lauxlib.c lbaselib.c ldblib.c liolib.c lmathlib.c lstrlib.c ++ ++afterinstall: ++ for i in ${INCLUDES}; do \ ++ ${BSD_INSTALL_DATA} ${.CURDIR}/../../include/$$i \ ++ ${INCDIR}/`basename $$i .h`4.h ; \ ++ done ++ ++.include <bsd.lib.mk> diff --git a/lang/lua4/patches/patch-ad b/lang/lua4/patches/patch-ad new file mode 100644 index 00000000000..0cba54e9070 --- /dev/null +++ b/lang/lua4/patches/patch-ad @@ -0,0 +1,21 @@ +$NetBSD: patch-ad,v 1.1.1.1 2003/04/29 23:15:37 jtb Exp $ + +--- /dev/null ++++ objdir/lua/Makefile +@@ -0,0 +1,16 @@ ++PROG= lua4 ++ ++SRCS= lua.c ++ ++BINDIR= ${PREFIX}/bin ++MANDIR= ${PREFIX}/man ++ ++CPPFLAGS+= -D_POSIX_SOURCE -I${.CURDIR}/../../include ++ ++LDFLAGS+= -R${PREFIX}/lib -L${.CURDIR}/../liblua -L${.CURDIR}/../liblualib ++ ++LDADD+= -llua4 -llualib4 -lm ++ ++.PATH: ${.CURDIR}/../../src/lua ++ ++.include <bsd.prog.mk> diff --git a/lang/lua4/patches/patch-ae b/lang/lua4/patches/patch-ae new file mode 100644 index 00000000000..9ebe26c5c80 --- /dev/null +++ b/lang/lua4/patches/patch-ae @@ -0,0 +1,21 @@ +$NetBSD: patch-ae,v 1.1.1.1 2003/04/29 23:15:37 jtb Exp $ + +--- /dev/null ++++ objdir/luac/Makefile +@@ -0,0 +1,16 @@ ++PROG= luac4 ++ ++SRCS= dump.c luac.c opt.c print.c stubs.c ++ ++BINDIR= ${PREFIX}/bin ++MANDIR= ${PREFIX}/man ++ ++CPPFLAGS+= -D_POSIX_SOURCE -I${.CURDIR}/../../include -I${.CURDIR}/../../src ++ ++LDFLAGS+= -R${PREFIX}/lib -L${.CURDIR}/../liblua ++ ++LDADD+= -llua4 ++ ++.PATH: ${.CURDIR}/../../src/luac ++ ++.include <bsd.prog.mk> |