diff options
author | leot <leot@pkgsrc.org> | 2018-09-06 19:07:12 +0000 |
---|---|---|
committer | leot <leot@pkgsrc.org> | 2018-09-06 19:07:12 +0000 |
commit | 76239ec0746c93f88f681c884c16afbf0224721c (patch) | |
tree | bd798782fc4d15223767903b8cf54ab27a6ea0c5 /lang/swi-prolog-lite | |
parent | a9fba191e44bd122c59e85b14b64db0c0e5d1bf8 (diff) | |
download | pkgsrc-76239ec0746c93f88f681c884c16afbf0224721c.tar.gz |
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 (limited to 'lang/swi-prolog-lite')
-rw-r--r-- | lang/swi-prolog-lite/Makefile | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lang/swi-prolog-lite/Makefile b/lang/swi-prolog-lite/Makefile index dc80cdee0c7..e08c24168c0 100644 --- a/lang/swi-prolog-lite/Makefile +++ b/lang/swi-prolog-lite/Makefile @@ -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 @@ USE_TOOLS+= gmake bash:run .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 |