pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/lang/python27 Use LP64PLATFORMS instead of a hardcoded...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/f0efe186da6f
branches:  trunk
changeset: 347611:f0efe186da6f
user:      dholland <dholland%pkgsrc.org@localhost>
date:      Thu May 26 04:07:32 2016 +0000

description:
Use LP64PLATFORMS instead of a hardcoded list. PR 51166.
Fixes mips64, aargh64, and several others.

XXX: make needs a better way to express this logic.

diffstat:

 lang/python27/Makefile |  6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)

diffs (20 lines):

diff -r 26cc3eaa7b28 -r f0efe186da6f lang/python27/Makefile
--- a/lang/python27/Makefile    Thu May 26 03:23:38 2016 +0000
+++ b/lang/python27/Makefile    Thu May 26 04:07:32 2016 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.59 2016/05/25 16:56:41 leot Exp $
+# $NetBSD: Makefile,v 1.60 2016/05/26 04:07:32 dholland Exp $
 
 .include "dist.mk"
 
@@ -82,9 +82,7 @@
 .endif
 PLIST_SUBST+=  PY_PLATNAME=${PY_PLATNAME:Q}
 
-.if (${MACHINE_ARCH} == "alpha") || (${MACHINE_ARCH} == "sparc64") || \
-    (${MACHINE_ARCH} == "x86_64") || (${MACHINE_ARCH} == "powerpc64") || \
-    (${MACHINE_ARCH} == "ia64") || \
+.if !empty(LP64PLATFORMS:@.PLAT.@${MACHINE_PLATFORM:M${.PLAT.}}@) || \
     (defined(ABI) && ${ABI} == "64")
 IS_64BIT_PLATFORM?=    yes
 .else



Home | Main Index | Thread Index | Old Index