summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabian Groffen <grobian@gentoo.org>2011-01-06 19:52:34 +0000
committerFabian Groffen <grobian@gentoo.org>2011-01-06 19:52:34 +0000
commite6d43a20bf16097c2d8b050c0bfbee0a5c276d9c (patch)
treec955192886333569b1647bd5a4c6c43923c865dd /dev-libs/libffi
parentold (diff)
downloadgentoo-2-e6d43a20bf16097c2d8b050c0bfbee0a5c276d9c.tar.gz
gentoo-2-e6d43a20bf16097c2d8b050c0bfbee0a5c276d9c.tar.bz2
gentoo-2-e6d43a20bf16097c2d8b050c0bfbee0a5c276d9c.zip
Add patch to allow compilation on powerpc64-*-darwin*
(Portage version: 2.2.01.17555-prefix/cvs/Darwin powerpc)
Diffstat (limited to 'dev-libs/libffi')
-rw-r--r--dev-libs/libffi/ChangeLog8
-rw-r--r--dev-libs/libffi/files/libffi-3.0.9-powerpc64-darwin.patch28
-rw-r--r--dev-libs/libffi/libffi-3.0.9-r1.ebuild5
3 files changed, 37 insertions, 4 deletions
diff --git a/dev-libs/libffi/ChangeLog b/dev-libs/libffi/ChangeLog
index ea8c0b31d0ba..2fa117f79983 100644
--- a/dev-libs/libffi/ChangeLog
+++ b/dev-libs/libffi/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for dev-libs/libffi
-# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-libs/libffi/ChangeLog,v 1.108 2010/12/18 09:10:53 ssuominen Exp $
+# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-libs/libffi/ChangeLog,v 1.109 2011/01/06 19:52:33 grobian Exp $
+
+ 06 Jan 2011; Fabian Groffen <grobian@gentoo.org> libffi-3.0.9-r1.ebuild,
+ +files/libffi-3.0.9-powerpc64-darwin.patch:
+ Add patch to allow compilation on powerpc64-*-darwin*
*libffi-3.0.9-r1 (18 Dec 2010)
diff --git a/dev-libs/libffi/files/libffi-3.0.9-powerpc64-darwin.patch b/dev-libs/libffi/files/libffi-3.0.9-powerpc64-darwin.patch
new file mode 100644
index 000000000000..514ffb7a0b3f
--- /dev/null
+++ b/dev-libs/libffi/files/libffi-3.0.9-powerpc64-darwin.patch
@@ -0,0 +1,28 @@
+Add support for powerpc64-* hosts
+
+--- configure.ac
++++ configure.ac
+@@ -154,6 +154,10 @@
+ TARGET=X86_DARWIN; TARGETDIR=x86
+ ;;
+
++ powerpc64-*-darwin*)
++ TARGET=POWERPC_DARWIN; TARGETDIR=powerpc
++ ;;
++
+ x86_64-*-cygwin* | x86_64-*-mingw*)
+ TARGET=X86_WIN64; TARGETDIR=x86
+ ;;
+--- configure
++++ configure
+@@ -12254,6 +12254,10 @@
+ TARGET=X86_DARWIN; TARGETDIR=x86
+ ;;
+
++ powerpc64-*-darwin*)
++ TARGET=POWERPC_DARWIN; TARGETDIR=powerpc
++ ;;
++
+ x86_64-*-cygwin* | x86_64-*-mingw*)
+ TARGET=X86_WIN64; TARGETDIR=x86
+ ;;
diff --git a/dev-libs/libffi/libffi-3.0.9-r1.ebuild b/dev-libs/libffi/libffi-3.0.9-r1.ebuild
index e677e8c6d33a..eebffa754c35 100644
--- a/dev-libs/libffi/libffi-3.0.9-r1.ebuild
+++ b/dev-libs/libffi/libffi-3.0.9-r1.ebuild
@@ -1,6 +1,6 @@
-# Copyright 1999-2010 Gentoo Foundation
+# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-libs/libffi/libffi-3.0.9-r1.ebuild,v 1.1 2010/12/18 09:10:53 ssuominen Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-libs/libffi/libffi-3.0.9-r1.ebuild,v 1.2 2011/01/06 19:52:33 grobian Exp $
inherit eutils libtool
@@ -21,6 +21,7 @@ src_unpack() {
cd "${S}"
epatch "${FILESDIR}"/${P}-interix.patch \
+ "${FILESDIR}"/${P}-powerpc64-darwin.patch \
"${FILESDIR}"/${P}-irix.patch \
"${FILESDIR}"/${P}-arm-oabi.patch \
"${FILESDIR}"/${P}-define-generic-symbols-carefully.patch