pkgsrc-WIP-changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Initial import of wip/LuaJIT21, version 2.1.0-beta3.
Module Name: pkgsrc-wip
Committed By: Alexander Nasonov <alnsn%yandex.ru@localhost>
Pushed By: alnsn
Date: Fri Jun 1 23:04:53 2018 +0100
Changeset: ecda4141d4902add424623662fb16344dd2c8d6b
Added Files:
LuaJIT21/DESCR
LuaJIT21/Makefile
LuaJIT21/PLIST
LuaJIT21/buildlink3.mk
LuaJIT21/distinfo
LuaJIT21/patches/patch-Makefile
LuaJIT21/patches/patch-src_Makefile
Log Message:
Initial import of wip/LuaJIT21, version 2.1.0-beta3.
To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=ecda4141d4902add424623662fb16344dd2c8d6b
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
diffstat:
LuaJIT21/DESCR | 5 ++++
LuaJIT21/Makefile | 35 +++++++++++++++++++++++
LuaJIT21/PLIST | 34 ++++++++++++++++++++++
LuaJIT21/buildlink3.mk | 12 ++++++++
LuaJIT21/distinfo | 8 ++++++
LuaJIT21/patches/patch-Makefile | 56 +++++++++++++++++++++++++++++++++++++
LuaJIT21/patches/patch-src_Makefile | 16 +++++++++++
7 files changed, 166 insertions(+)
diffs:
diff --git a/LuaJIT21/DESCR b/LuaJIT21/DESCR
new file mode 100644
index 0000000000..2f8f3f91a5
--- /dev/null
+++ b/LuaJIT21/DESCR
@@ -0,0 +1,5 @@
+LuaJIT is a Just-In-Time Compiler (JIT) for the Lua programming language.
+Lua is a powerful, dynamic and light-weight programming language. It may
+be embedded or used as a general-purpose, stand-alone language.
+
+LuaJIT 2.1 is compatible with Lua 5.1.
diff --git a/LuaJIT21/Makefile b/LuaJIT21/Makefile
new file mode 100644
index 0000000000..c148721c95
--- /dev/null
+++ b/LuaJIT21/Makefile
@@ -0,0 +1,35 @@
+# $NetBSD: Makefile,v 1.11 2017/09/16 19:53:51 alnsn Exp $
+#
+
+DISTNAME= LuaJIT-2.1.0-beta3
+PKGNAME= ${DISTNAME:S/LuaJIT/LuaJIT21/:S/-beta/beta/}
+CATEGORIES= lang
+MASTER_SITES= http://luajit.org/download/
+
+MAINTAINER= alnsn%NetBSD.org@localhost
+HOMEPAGE= http://luajit.org/
+COMMENT= Just-In-Time Compiler for the Lua programming language
+LICENSE= mit
+
+CONFLICTS+= LuaJIT2-[0-9]*
+
+USE_TOOLS+= gmake
+
+NOT_PAX_MPROTECT_SAFE+= bin/luajit-${PKGVERSION}
+
+# Address pkg/47587 lua not linked to pthread causes issues with modules
+PTHREAD_OPTS+= native
+PTHREAD_AUTO_VARS= yes
+
+.include "../../mk/bsd.prefs.mk"
+
+# Upstream doesn't support building shared libs on SunOS
+# http://www.freelists.org/post/luajit/LuaJIT-on-solaris-64
+PLIST_VARS+= shared
+.if ${OPSYS} != "SunOS"
+PLIST.shared= yes
+.endif
+PRINT_PLIST_AWK+= {if ($$0 ~ /\.so/) {$$0 = "$${PLIST.shared}" $$0;}}
+
+.include "../../mk/pthread.buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/LuaJIT21/PLIST b/LuaJIT21/PLIST
new file mode 100644
index 0000000000..3617bd4e90
--- /dev/null
+++ b/LuaJIT21/PLIST
@@ -0,0 +1,34 @@
+@comment $NetBSD$
+bin/luajit
+bin/luajit-${PKGVERSION}
+include/luajit-2.1/lauxlib.h
+include/luajit-2.1/lua.h
+include/luajit-2.1/lua.hpp
+include/luajit-2.1/luaconf.h
+include/luajit-2.1/luajit.h
+include/luajit-2.1/lualib.h
+lib/libluajit-5.1.a
+${PLIST.shared}lib/libluajit-5.1.so
+${PLIST.shared}lib/libluajit-5.1.so.2
+${PLIST.shared}lib/libluajit-5.1.so.2.1.0
+lib/pkgconfig/luajit.pc
+share/luajit-${PKGVERSION}/jit/bc.lua
+share/luajit-${PKGVERSION}/jit/bcsave.lua
+share/luajit-${PKGVERSION}/jit/dis_arm.lua
+share/luajit-${PKGVERSION}/jit/dis_arm64.lua
+share/luajit-${PKGVERSION}/jit/dis_arm64be.lua
+share/luajit-${PKGVERSION}/jit/dis_mips.lua
+share/luajit-${PKGVERSION}/jit/dis_mips64.lua
+share/luajit-${PKGVERSION}/jit/dis_mips64el.lua
+share/luajit-${PKGVERSION}/jit/dis_mipsel.lua
+share/luajit-${PKGVERSION}/jit/dis_ppc.lua
+share/luajit-${PKGVERSION}/jit/dis_x64.lua
+share/luajit-${PKGVERSION}/jit/dis_x86.lua
+share/luajit-${PKGVERSION}/jit/dump.lua
+share/luajit-${PKGVERSION}/jit/p.lua
+share/luajit-${PKGVERSION}/jit/v.lua
+share/luajit-${PKGVERSION}/jit/vmdef.lua
+share/luajit-${PKGVERSION}/jit/zone.lua
+man/man1/luajit.1
+@pkgdir share/lua/5.1
+@pkgdir lib/lua/5.1
diff --git a/LuaJIT21/buildlink3.mk b/LuaJIT21/buildlink3.mk
new file mode 100644
index 0000000000..9839c1dfce
--- /dev/null
+++ b/LuaJIT21/buildlink3.mk
@@ -0,0 +1,12 @@
+# $NetBSD: buildlink3.mk,v 1.1 2014/03/26 13:29:53 imil Exp $
+
+BUILDLINK_TREE+= LuaJIT21
+
+.if !defined(LUAJIT21_BUILDLINK3_MK)
+LUAJIT21_BUILDLINK3_MK:=
+
+BUILDLINK_API_DEPENDS.LuaJIT21+= LuaJIT21>=2.1.0
+BUILDLINK_PKGSRCDIR.LuaJIT21?= ../../wip/LuaJIT21
+.endif # LUAJIT21_BUILDLINK3_MK
+
+BUILDLINK_TREE+= -LuaJIT21
diff --git a/LuaJIT21/distinfo b/LuaJIT21/distinfo
new file mode 100644
index 0000000000..7849cc7f57
--- /dev/null
+++ b/LuaJIT21/distinfo
@@ -0,0 +1,8 @@
+$NetBSD: distinfo,v 1.9 2017/05/29 21:47:31 alnsn Exp $
+
+SHA1 (LuaJIT-2.1.0-beta3.tar.gz) = e945cee354484db45576c3760a5cfd70e7a314bf
+RMD160 (LuaJIT-2.1.0-beta3.tar.gz) = 5f41b0b6e3bfe1f1e033f7464171d474ca497235
+SHA512 (LuaJIT-2.1.0-beta3.tar.gz) = c44e967a0f671ed32b55aee810bc8b3b63737a2d7363b8984ae1949b24f98dbb3f9be7c1e10239fdeb96a3e3c836f606342cbd61838cf9bcadb077443eb5bc12
+Size (LuaJIT-2.1.0-beta3.tar.gz) = 1025180 bytes
+SHA1 (patch-Makefile) = 63f9c3c2848b1570c4f8f30d377ae567fc5cf6b5
+SHA1 (patch-src_Makefile) = d7236260dc17f470d7d6e41a57a22dcd3a501c28
diff --git a/LuaJIT21/patches/patch-Makefile b/LuaJIT21/patches/patch-Makefile
new file mode 100644
index 0000000000..7e49bdc09c
--- /dev/null
+++ b/LuaJIT21/patches/patch-Makefile
@@ -0,0 +1,56 @@
+$NetBSD: patch-Makefile,v 1.6 2017/05/29 21:47:31 alnsn Exp $
+
+Fix installation.
+
+--- Makefile.orig 2017-05-01 19:05:00.000000000 +0000
++++ Makefile
+@@ -16,7 +16,7 @@
+ MAJVER= 2
+ MINVER= 1
+ RELVER= 0
+-PREREL= -beta3
++PREREL= beta3
+ VERSION= $(MAJVER).$(MINVER).$(RELVER)$(PREREL)
+ ABIVER= 5.1
+
+@@ -25,7 +25,6 @@ ABIVER= 5.1
+ # Change the installation path as needed. This automatically adjusts
+ # the paths in src/luaconf.h, too. Note: PREFIX must be an absolute path!
+ #
+-export PREFIX= /usr/local
+ export MULTILIB= lib
+ ##############################################################################
+
+@@ -41,7 +40,7 @@ INSTALL_LMODD= $(INSTALL_SHARE)/lua
+ INSTALL_LMOD= $(INSTALL_LMODD)/$(ABIVER)
+ INSTALL_CMODD= $(INSTALL_LIB)/lua
+ INSTALL_CMOD= $(INSTALL_CMODD)/$(ABIVER)
+-INSTALL_MAN= $(INSTALL_SHARE)/man/man1
++INSTALL_MAN= $(DPREFIX)/${PKGMANDIR}/man1
+ INSTALL_PKGCONFIG= $(INSTALL_LIB)/pkgconfig
+
+ INSTALL_TNAME= luajit-$(VERSION)
+@@ -75,7 +74,7 @@ SYMLINK= ln -sf
+ INSTALL_X= install -m 0755
+ INSTALL_F= install -m 0644
+ UNINSTALL= $(RM)
+-LDCONFIG= ldconfig -n
++LDCONFIG= true
+ SED_PC= sed -e "s|^prefix=.*|prefix=$(PREFIX)|" \
+ -e "s|^multilib=.*|multilib=$(MULTILIB)|"
+
+@@ -130,13 +129,8 @@ install: $(INSTALL_DEP)
+ $(RM) $(FILE_PC).tmp
+ cd src && $(INSTALL_F) $(FILES_INC) $(INSTALL_INC)
+ cd src/jit && $(INSTALL_F) $(FILES_JITLIB) $(INSTALL_JITLIB)
++ $(SYMLINK) $(INSTALL_TNAME) $(INSTALL_TSYM)
+ @echo "==== Successfully installed LuaJIT $(VERSION) to $(PREFIX) ===="
+- @echo ""
+- @echo "Note: the development releases deliberately do NOT install a symlink for luajit"
+- @echo "You can do this now by running this command (with sudo):"
+- @echo ""
+- @echo " $(SYMLINK) $(INSTALL_TNAME) $(INSTALL_TSYM)"
+- @echo ""
+
+
+ uninstall:
diff --git a/LuaJIT21/patches/patch-src_Makefile b/LuaJIT21/patches/patch-src_Makefile
new file mode 100644
index 0000000000..85dfba636c
--- /dev/null
+++ b/LuaJIT21/patches/patch-src_Makefile
@@ -0,0 +1,16 @@
+$NetBSD: patch-src_Makefile,v 1.2 2017/05/29 21:47:31 alnsn Exp $
+
+Fix building on OS X.
+
+--- src/Makefile.orig 2017-05-01 18:11:00.000000000 +0000
++++ src/Makefile
+@@ -297,9 +297,6 @@ ifeq (,$(shell $(TARGET_CC) -o /dev/null
+ TARGET_XCFLAGS+= -fno-stack-protector
+ endif
+ ifeq (Darwin,$(TARGET_SYS))
+- ifeq (,$(MACOSX_DEPLOYMENT_TARGET))
+- export MACOSX_DEPLOYMENT_TARGET=10.4
+- endif
+ TARGET_STRIP+= -x
+ TARGET_XSHLDFLAGS= -dynamiclib -single_module -undefined dynamic_lookup -fPIC
+ TARGET_DYNXLDOPTS=
Home |
Main Index |
Thread Index |
Old Index