--- /Volumes/localhorst/usr/portage/sci-libs/libgeotiff/libgeotiff-1.2.4.ebuild 2007-09-02 00:38:52 +0400 +++ sci-libs/libgeotiff/libgeotiff-1.2.4.ebuild 2007-10-11 12:07:41 +0400 @@ -2,6 +2,8 @@ # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/sci-libs/libgeotiff/libgeotiff-1.2.4.ebuild,v 1.2 2007/09/01 20:10:31 nerdboy Exp $ +EAPI="prefix" + inherit autotools eutils flag-o-matic DESCRIPTION="Library for reading TIFF files with embedded tags for geographic (cartographic) information" @@ -10,7 +12,7 @@ LICENSE="GPL-2" SLOT="0" -KEYWORDS="~alpha ~amd64 ~mips ~ppc ~ppc64 ~sparc ~x86" +KEYWORDS="~alpha ~amd64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~x86-macos" IUSE="doc python" DEPEND="virtual/libc @@ -21,7 +23,11 @@ WANT_AUTOCONF="latest" src_compile() { + if use x86-macos; then + epatch ${FILESDIR}/${P}-soname-macos.patch || die "epatch failed" + else epatch ${FILESDIR}/${P}-soname.patch || die "epatch failed" + fi filter-ldflags "-Wl,-O1" eautoconf