--- /dev/null	2014-11-18 03:33:07.000000000 +0000
+++ build/pkgs/python/fbsd-patch-src_Modules-_ctypes-libffi-configure	2014-11-18 03:37:12.000000000 +0000
@@ -0,0 +1,22 @@
+--- src/Modules/_ctypes/libffi/configure.orig	2010-03-19 19:59:20.000000000 +0100
++++ src/Modules/_ctypes/libffi/configure	2011-03-06 09:20:16.000000000 +0100
+@@ -6289,7 +6289,7 @@
+   rm -rf conftest*
+   ;;
+ 
+-x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
++amd64-*-freebsd*|x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
+ 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
+ 	;;
+
