summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabian Groffen <grobian@gentoo.org>2012-05-03 20:20:30 +0000
committerFabian Groffen <grobian@gentoo.org>2012-05-03 20:20:30 +0000
commit9c26cb9a85bb220c73ada0f62094db7bff2b47e2 (patch)
tree7074045eea44bb09469b4c2165ecd2e3f2146e7e
parentfix bug #414509 (diff)
downloadgentoo-2-9c26cb9a85bb220c73ada0f62094db7bff2b47e2.tar.gz
gentoo-2-9c26cb9a85bb220c73ada0f62094db7bff2b47e2.tar.bz2
gentoo-2-9c26cb9a85bb220c73ada0f62094db7bff2b47e2.zip
Fix compilation on OSX Leopard
(Portage version: 2.2.01.20430-prefix/cvs/Darwin i386)
-rw-r--r--media-libs/gegl/ChangeLog5
-rw-r--r--media-libs/gegl/gegl-0.2.0.ebuild6
2 files changed, 9 insertions, 2 deletions
diff --git a/media-libs/gegl/ChangeLog b/media-libs/gegl/ChangeLog
index 05e5f6ac855b..fa892ad1fb03 100644
--- a/media-libs/gegl/ChangeLog
+++ b/media-libs/gegl/ChangeLog
@@ -1,6 +1,9 @@
# ChangeLog for media-libs/gegl
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/media-libs/gegl/ChangeLog,v 1.68 2012/04/14 00:46:10 sping Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-libs/gegl/ChangeLog,v 1.69 2012/05/03 20:20:30 grobian Exp $
+
+ 03 May 2012; Fabian Groffen <grobian@gentoo.org> gegl-0.2.0.ebuild:
+ Fix compilation on OSX Leopard
14 Apr 2012; Sebastian Pipping <sping@gentoo.org> gegl-0.1.6.ebuild,
gegl-0.1.8.ebuild:
diff --git a/media-libs/gegl/gegl-0.2.0.ebuild b/media-libs/gegl/gegl-0.2.0.ebuild
index 524e5d25541e..7cf7c669011c 100644
--- a/media-libs/gegl/gegl-0.2.0.ebuild
+++ b/media-libs/gegl/gegl-0.2.0.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/media-libs/gegl/gegl-0.2.0.ebuild,v 1.1 2012/04/11 23:34:40 sping Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-libs/gegl/gegl-0.2.0.ebuild,v 1.2 2012/05/03 20:20:30 grobian Exp $
EAPI=4
@@ -56,6 +56,10 @@ DOCS=( ChangeLog INSTALL README NEWS )
src_prepare() {
# fix OSX loadable module filename extension
sed -i -e 's/\.dylib/.bundle/' configure.ac || die
+ # don't require Apple's OpenCL on versions of OSX that don't have it
+ if [[ ${CHOST} == *-darwin* && ${CHOST#*-darwin} -le 9 ]] ; then
+ sed -i -e 's/#ifdef __APPLE__/#if 0/' gegl/opencl/* || die
+ fi
eautoreconf
}