diff options
author | Mark Linimon <linimon@FreeBSD.org> | 2011-02-24 23:50:27 +0000 |
---|---|---|
committer | Mark Linimon <linimon@FreeBSD.org> | 2011-02-24 23:50:27 +0000 |
commit | 314cb862ff2fec3179208b6484c4eb823151adf1 (patch) | |
tree | 0b3c1e00f32012a4c30c10b776782e730d3dd91f /lang/python26 | |
parent | Changes to make python ports work on powerpc (32-bit mode; 64-bit not (diff) |
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
Notes
Notes:
svn path=/head/; revision=269609
Diffstat (limited to 'lang/python26')
-rw-r--r-- | lang/python26/Makefile | 5 | ||||
-rw-r--r-- | lang/python26/files/patch-Modules-_ctypes-libffi-src-powerpc-ffitarget.h | 10 | ||||
-rw-r--r-- | lang/python26/pkg-plist | 2 |
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 |