summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPieter van den Abeele <pvdabeel@gentoo.org>2004-09-16 02:08:25 +0000
committerPieter van den Abeele <pvdabeel@gentoo.org>2004-09-16 02:08:25 +0000
commit15d5aea9ec9b6967c407e6bfbc21bbe348c07b1b (patch)
tree1fc208502b33a61f02697b1936381b3e44d49864 /media-libs/libpng
parentppc-macos keywording (diff)
downloadhistorical-15d5aea9ec9b6967c407e6bfbc21bbe348c07b1b.tar.gz
historical-15d5aea9ec9b6967c407e6bfbc21bbe348c07b1b.tar.bz2
historical-15d5aea9ec9b6967c407e6bfbc21bbe348c07b1b.zip
ppc-macos keywording
Diffstat (limited to 'media-libs/libpng')
-rw-r--r--media-libs/libpng/libpng-1.2.5-r7.ebuild16
1 files changed, 14 insertions, 2 deletions
diff --git a/media-libs/libpng/libpng-1.2.5-r7.ebuild b/media-libs/libpng/libpng-1.2.5-r7.ebuild
index 933014c0e18b..6f891db51dbf 100644
--- a/media-libs/libpng/libpng-1.2.5-r7.ebuild
+++ b/media-libs/libpng/libpng-1.2.5-r7.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/media-libs/libpng/libpng-1.2.5-r7.ebuild,v 1.4 2004/07/12 08:45:56 mr_bones_ Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-libs/libpng/libpng-1.2.5-r7.ebuild,v 1.5 2004/09/16 02:06:16 pvdabeel Exp $
inherit flag-o-matic eutils gcc
@@ -10,7 +10,7 @@ SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2"
LICENSE="as-is"
SLOT="1.2"
-KEYWORDS="x86 ppc sparc mips alpha arm hppa amd64 ia64 ppc64 s390 macos"
+KEYWORDS="x86 ppc sparc mips alpha arm hppa amd64 ia64 ppc64 s390 macos ppc-macos"
IUSE=""
DEPEND="sys-libs/zlib"
@@ -23,6 +23,7 @@ src_unpack() {
epatch ${FILESDIR}/${P}-gentoo.diff
use macos && epatch ${FILESDIR}/macos.patch # implements strnlen
+ use ppc-macos && epatch ${FILESDIR}/macos.patch # implements strnlen
[ "`gcc-version`" == "3.2" ] && replace-cpu-flags i586 k6 k6-2 k6-3
[ "`gcc-version`" == "3.3" ] && replace-cpu-flags i586 k6 k6-2 k6-3
@@ -44,6 +45,17 @@ src_unpack() {
-e "s:prefix=/usr/local:prefix=/usr:" \
scripts/makefile.darwin > Makefile
fi
+
+ if use ppc-macos; then
+ einfo "Patching the source for Mac OS X / Darwin compatibility"
+ sed \
+ -e "s:ZLIBLIB=.*:ZLIBLIB=/usr/lib:" \
+ -e "s:ZLIBINC=.*:ZLIBINC=/usr/include:" \
+ -e "s:-O3:${CFLAGS}:" \
+ -e "s:prefix=/usr/local:prefix=/usr:" \
+ scripts/makefile.darwin > Makefile
+ fi
+
}
src_compile() {