pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

LuaJIT-git: Add platform restrictions



Module Name:	pkgsrc-wip
Committed By:	Malte Dehling <mdehling%gmail.com@localhost>
Pushed By:	mdehling
Date:		Tue Apr 2 16:06:03 2024 -0700
Changeset:	d6572c224111ee20a2b00078f825eddc1017d2ab

Modified Files:
	LuaJIT-git/Makefile
Added Files:
	LuaJIT-git/platform.mk

Log Message:
LuaJIT-git: Add platform restrictions

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=d6572c224111ee20a2b00078f825eddc1017d2ab

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 LuaJIT-git/Makefile    |  7 +++++++
 LuaJIT-git/platform.mk | 18 ++++++++++++++++++
 2 files changed, 25 insertions(+)

diffs:
diff --git a/LuaJIT-git/Makefile b/LuaJIT-git/Makefile
index 082ad41148..a3e0743c39 100644
--- a/LuaJIT-git/Makefile
+++ b/LuaJIT-git/Makefile
@@ -15,6 +15,13 @@ CONFLICTS+=	LuaJIT2-[0-9]* LuaJIT21-[0-9]*
 
 USE_TOOLS+=	gmake
 
+ONLY_FOR_PLATFORM+=	*-*-aarch64*
+ONLY_FOR_PLATFORM+=	*-*-*arm*	# ARMv5+, ARM9E+
+ONLY_FOR_PLATFORM+=	*-*-i386	# req SSE2
+ONLY_FOR_PLATFORM+=	*-*-mips*
+ONLY_FOR_PLATFORM+=	*-*-powerpc
+ONLY_FOR_PLATFORM+=	*-*-x86_64
+
 # pkg/47587: lua not linked to pthread causes issues with modules
 PTHREAD_OPTS+=		native
 PTHREAD_AUTO_VARS=	yes
diff --git a/LuaJIT-git/platform.mk b/LuaJIT-git/platform.mk
new file mode 100644
index 0000000000..3bf5277e60
--- /dev/null
+++ b/LuaJIT-git/platform.mk
@@ -0,0 +1,18 @@
+# $NetBSD$
+
+.include "../../mk/bsd.fast.prefs.mk"
+
+.if !defined(PLATFORM_SUPPORTS_LUAJIT)
+
+.  for _luajit_arch in aarch64* *arm* i386 mips* powerpc x86_64
+LUAJIT_PLATFORMS+=		*-*-${_luajit_arch}
+.  endfor
+
+.  for _luajit_platform in ${LUAJIT_PLATFORMS}
+.    if !empty(MACHINE_PLATFORM:M${_luajit_platform})
+PLATFORM_SUPPORTS_LUAJIT=	yes
+.    endif
+.  endfor
+PLATFORM_SUPPORTS_LUAJIT?=	no
+
+.endif	# PLATFORM_SUPPORTS_LUAJIT


Home | Main Index | Thread Index | Old Index