pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/lang/swi-prolog-lite swi-prolog-lite: Avoid to hardcod...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/a3bd1ddbd52f
branches:  trunk
changeset: 312573:a3bd1ddbd52f
user:      leot <leot%pkgsrc.org@localhost>
date:      Thu Sep 06 19:07:12 2018 +0000

description:
swi-prolog-lite: Avoid to hardcode 64bit platforms, use LP64PLATFORMS and ABI

Instead of hardcoding the check of 64bit platforms just reuse LP64PLATFORMS and
ABI (shamelessy stolen from lang/python27/Makefile).

This fixes the build of swi-prolog-lite on aarch64 and probably
other 64bit platforms too previously not listed.

diffstat:

 lang/swi-prolog-lite/Makefile |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (20 lines):

diff -r 58aaadf5778f -r a3bd1ddbd52f lang/swi-prolog-lite/Makefile
--- a/lang/swi-prolog-lite/Makefile     Thu Sep 06 15:27:21 2018 +0000
+++ b/lang/swi-prolog-lite/Makefile     Thu Sep 06 19:07:12 2018 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.26 2018/04/17 20:57:19 leot Exp $
+# $NetBSD: Makefile,v 1.27 2018/09/06 19:07:12 leot Exp $
 
 PKGREVISION= 2
 .include "Makefile.common"
@@ -17,8 +17,8 @@
 
 .include "../../mk/bsd.prefs.mk"
 
-.if ${MACHINE_ARCH} == alpha || ${MACHINE_ARCH} == sparc64 || \
-       ${MACHINE_ARCH} == x86_64
+.if !empty(LP64PLATFORMS:@.PLAT.@${MACHINE_PLATFORM:M${.PLAT.}}@) || \
+    (defined(ABI) && ${ABI} == "64")
 PLIST_SUBST+=          BITS=64
 .else
 PLIST_SUBST+=          BITS=32



Home | Main Index | Thread Index | Old Index