summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornigoro <nigoro@0x100.com>2009-06-08 21:49:29 +0800
committerSteven Newbury <steve@snewbury.org.uk>2009-06-10 08:45:57 +0800
commit86308bb6771c77c38f52d7631efba510b2408727 (patch)
tree5393d4ca66d84fe76000f6a1f27aa409ebd5582e /media-libs
parentsynced x11-libs/qt-xmlpatterns with portage tree (diff)
downloadmultilib-portage-86308bb6771c77c38f52d7631efba510b2408727.tar.gz
multilib-portage-86308bb6771c77c38f52d7631efba510b2408727.tar.bz2
multilib-portage-86308bb6771c77c38f52d7631efba510b2408727.zip
Add support for ppc64 architecture.
Signed-off-by: Steven Newbury <steve@snewbury.org.uk>
Diffstat (limited to 'media-libs')
-rw-r--r--media-libs/freeglut/files/freeglut-2.4.0-multilib-fix.patch4
-rw-r--r--media-libs/freeglut/freeglut-2.4.0-r1.ebuild3
2 files changed, 4 insertions, 3 deletions
diff --git a/media-libs/freeglut/files/freeglut-2.4.0-multilib-fix.patch b/media-libs/freeglut/files/freeglut-2.4.0-multilib-fix.patch
index 3f4ac5652..ddb257adc 100644
--- a/media-libs/freeglut/files/freeglut-2.4.0-multilib-fix.patch
+++ b/media-libs/freeglut/files/freeglut-2.4.0-multilib-fix.patch
@@ -1,11 +1,11 @@
--- configure.old 2008-10-31 16:25:39.000000000 -0430
+++ configure 2008-10-31 16:24:39.000000000 -0430
@@ -6526,7 +6526,7 @@
- # Find out which ABI we are using (multilib Linux x86_64 hack).
+ # Find out which ABI we are using (multilib Linux x86_64 + ppc64 hack).
libsuff=
case "$host_cpu" in
- x86_64*)
-+ x86_64* | i*86)
++ x86_64* | i*86 | ppc* | powerpc*)
echo '#line 6525 "configure"' > conftest.$ac_ext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>&5
diff --git a/media-libs/freeglut/freeglut-2.4.0-r1.ebuild b/media-libs/freeglut/freeglut-2.4.0-r1.ebuild
index df75c4902..d90795101 100644
--- a/media-libs/freeglut/freeglut-2.4.0-r1.ebuild
+++ b/media-libs/freeglut/freeglut-2.4.0-r1.ebuild
@@ -51,7 +51,8 @@ src_unpack() {
replace-flags -O3 -O2
# fixes compilation in multilib environment
- epatch "${FILESDIR}"/${P}-multilib-fix.patch
+ # Perhaps, this patch causes the problem on 32ul on ppc64, please don't drop has_multilib_profile
+ has_multilib_profile && epatch "${FILESDIR}"/${P}-multilib-fix.patch
# Needed for sane .so versionning on bsd, please don't drop
elibtoolize