aboutsummaryrefslogtreecommitdiffstats
path: root/lang/python27
diff options
context:
space:
mode:
authorlinimon <linimon@FreeBSD.org>2011-03-11 13:38:57 +0800
committerlinimon <linimon@FreeBSD.org>2011-03-11 13:38:57 +0800
commit3f21914f17b6c1aec9649ccfbe75cb6fc9194577 (patch)
tree6abfb364fd7ab2394326dbcadef226381344fa6e /lang/python27
parent399d0e45825d1de39ffd180aaa0a1d8593008c76 (diff)
downloadfreebsd-ports-gnome-3f21914f17b6c1aec9649ccfbe75cb6fc9194577.tar.gz
freebsd-ports-gnome-3f21914f17b6c1aec9649ccfbe75cb6fc9194577.tar.zst
freebsd-ports-gnome-3f21914f17b6c1aec9649ccfbe75cb6fc9194577.zip
Enable build on powerpc64. Tested on i386, no regression.
PR: ports/155310 Submitted by: andreast Approved by: lwhsu (python team)
Diffstat (limited to 'lang/python27')
-rw-r--r--lang/python27/Makefile5
-rw-r--r--lang/python27/files/patch-Modules-_ctypes-libffi-configure15
2 files changed, 17 insertions, 3 deletions
diff --git a/lang/python27/Makefile b/lang/python27/Makefile
index c14d405fde8f..edbd84407845 100644
--- a/lang/python27/Makefile
+++ b/lang/python27/Makefile
@@ -121,11 +121,14 @@ PLIST_SUB+= X86_ONLY=""
.else
PLIST_SUB+= X86_ONLY="@comment "
.endif
-.if ${ARCH} == amd64 || ${ARCH} == ia64 || ${ARCH} == sparc64 || ${ARCH} == alpha
+.if ${ARCH} == amd64 || ${ARCH} == ia64 || ${ARCH} == sparc64 || ${ARCH} == alpha || ${ARCH} == powerpc64
PLIST_SUB+= 32BIT_ONLY="@comment "
.else
PLIST_SUB+= 32BIT_ONLY=""
.endif
+.if ${ARCH} == powerpc64
+MAKE_ENV+= UNAME_m="powerpc64"
+.endif
.if ${ARCH} == sparc64
CFLAGS+= -DPYTHON_DEFAULT_RECURSION_LIMIT=900
.endif
diff --git a/lang/python27/files/patch-Modules-_ctypes-libffi-configure b/lang/python27/files/patch-Modules-_ctypes-libffi-configure
index 2b93f8297f96..096e58002326 100644
--- a/lang/python27/files/patch-Modules-_ctypes-libffi-configure
+++ b/lang/python27/files/patch-Modules-_ctypes-libffi-configure
@@ -1,5 +1,5 @@
---- Modules/_ctypes/libffi/configure.orig 2010-03-20 02:59:20.000000000 +0800
-+++ Modules/_ctypes/libffi/configure 2010-06-04 10:04:38.000000000 +0800
+--- Modules/_ctypes/libffi/configure.orig 2010-03-19 19:59:20.000000000 +0100
++++ Modules/_ctypes/libffi/configure 2011-03-06 09:20:16.000000000 +0100
@@ -6289,7 +6289,7 @@
rm -rf conftest*
;;
@@ -9,3 +9,14 @@
s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
# Find out which ABI we are using.
echo 'int i;' > conftest.$ac_ext
+@@ -11275,6 +11275,9 @@
+ powerpc-*-freebsd*)
+ TARGET=POWERPC_FREEBSD; TARGETDIR=powerpc
+ ;;
++ powerpc64-*-freebsd*)
++ TARGET=POWERPC; TARGETDIR=powerpc
++ ;;
+ powerpc*-*-rtems*)
+ TARGET=POWERPC; TARGETDIR=powerpc
+ ;;
+