aboutsummaryrefslogtreecommitdiffstats
path: root/lang
diff options
context:
space:
mode:
authorlinimon <linimon@FreeBSD.org>2011-02-25 07:50:27 +0800
committerlinimon <linimon@FreeBSD.org>2011-02-25 07:50:27 +0800
commitfc948a0da0d069a359a003de8c9274524452b2b7 (patch)
tree05893dee6e2a42190dc323b7edc3cdc8f2fbae76 /lang
parent8a2828a032715bf1d2f3d355a7d10a5c489b4931 (diff)
downloadfreebsd-ports-gnome-fc948a0da0d069a359a003de8c9274524452b2b7.tar.gz
freebsd-ports-gnome-fc948a0da0d069a359a003de8c9274524452b2b7.tar.zst
freebsd-ports-gnome-fc948a0da0d069a359a003de8c9274524452b2b7.zip
Changes to make python ports work on powerpc (32-bit mode; 64-bit not
yet tested). Tested on: powerpc, i386 Hat: portmgr PR: ports/153657 (partial) Submitted by: andreast
Diffstat (limited to 'lang')
-rw-r--r--lang/python26/Makefile5
-rw-r--r--lang/python26/files/patch-Modules-_ctypes-libffi-src-powerpc-ffitarget.h10
-rw-r--r--lang/python26/pkg-plist2
3 files changed, 16 insertions, 1 deletions
diff --git a/lang/python26/Makefile b/lang/python26/Makefile
index 8a69947b1d68..09a54b9f9e8c 100644
--- a/lang/python26/Makefile
+++ b/lang/python26/Makefile
@@ -115,6 +115,11 @@ CONFIGURE_ARGS+= --enable-unicode=ucs4
CONFIGURE_ARGS+= --without-pymalloc
.endif
+.if ${ARCH} == powerpc
+PLIST_SUB+= NOT_FOR_POWERPC="@comment "
+.else
+PLIST_SUB+= NOT_FOR_POWERPC=""
+.endif
.if ${ARCH} == amd64 || ${ARCH} == ia64 || ${ARCH} == sparc64 || ${ARCH} == alpha
PLIST_SUB+= 32BIT_ONLY="@comment "
.else
diff --git a/lang/python26/files/patch-Modules-_ctypes-libffi-src-powerpc-ffitarget.h b/lang/python26/files/patch-Modules-_ctypes-libffi-src-powerpc-ffitarget.h
new file mode 100644
index 000000000000..258c3744a42d
--- /dev/null
+++ b/lang/python26/files/patch-Modules-_ctypes-libffi-src-powerpc-ffitarget.h
@@ -0,0 +1,10 @@
+--- Modules/_ctypes/libffi/src/powerpc/ffitarget.h.orig 2009-12-28 12:29:03.000000000 +0000
++++ Modules/_ctypes/libffi/src/powerpc/ffitarget.h 2009-12-28 12:30:11.000000000 +0000
+@@ -78,6 +78,8 @@
+ FFI_SYSV,
+ FFI_GCC_SYSV,
+ FFI_LINUX64,
++ FFI_LINUX,
++ FFI_LINUX_SOFT_FLOAT,
+ FFI_DEFAULT_ABI = FFI_SYSV,
+ #endif
diff --git a/lang/python26/pkg-plist b/lang/python26/pkg-plist
index a939fd91bb9a..4044a6266f7c 100644
--- a/lang/python26/pkg-plist
+++ b/lang/python26/pkg-plist
@@ -828,7 +828,7 @@ lib/lib%%PYTHON_VERSION%%.so.1
%%PYTHON_LIBDIR%%/lib-dynload/fcntl.so
%%PYTHON_LIBDIR%%/lib-dynload/future_builtins.so
%%PYTHON_LIBDIR%%/lib-dynload/grp.so
-%%X86_ONLY%%%%PYTHON_LIBDIR%%/lib-dynload/imageop.so
+%%32BIT_ONLY%%%%PYTHON_LIBDIR%%/lib-dynload/imageop.so
%%PYTHON_LIBDIR%%/lib-dynload/itertools.so
%%PYTHON_LIBDIR%%/lib-dynload/math.so
%%PYTHON_LIBDIR%%/lib-dynload/mmap.so