# Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/media-libs/gdk-pixbuf/gdk-pixbuf-0.22.0-r3.ebuild,v 1.2 2004/09/20 01:09:34 vapier Exp $ inherit virtualx libtool gnome.org gnuconfig eutils DESCRIPTION="GNOME Image Library" HOMEPAGE="http://www.gtk.org/" LICENSE="GPL-2 LGPL-2" SLOT="0" KEYWORDS="x86 ~ppc ~sparc ~alpha ~hppa amd64 ~ia64 ~mips ~ppc64" IUSE="doc mmx" RDEPEND="media-libs/jpeg media-libs/tiff =x11-libs/gtk+-1.2* >=media-libs/libpng-1.2.1 amd64? ( sys-libs/db ) !amd64? ( =gnome-base/gnome-libs-1.4.1.2-r1" # We need gnome-libs here, else gnome support do not get compiled into # gdk-pixbuf (the GnomeCanvasPixbuf library ) DEPEND="${RDEPEND} doc? ( dev-util/gtk-doc )" src_unpack() { unpack ${A} cd ${S} # security fix (#64230) epatch ${FILESDIR}/${P}-bmp_secure.patch epatch ${FILESDIR}/${P}-loaders.patch } src_compile() { #allow to build on mipslinux systems gnuconfig_update local myconf #update libtool, else we get the "relink bug" elibtoolize use doc && myconf="--enable-gtk-doc" \ || myconf="--disable-gtk-doc" use mmx || myconf="${myconf} --disable-mmx" econf --sysconfdir=/etc/X11/gdk-pixbuf ${myconf} || die #build needs to be able to #connect to an X display. Xemake || die } src_install() { einstall \ sysconfdir=${D}/etc/X11/gdk-pixbuf || die dosed -e "s:${D}::g" /usr/bin/gdk-pixbuf-config #fix permissions on the loaders chmod a+rx ${D}/usr/lib/gdk-pixbuf/loaders chmod a+r ${D}/usr/lib/gdk-pixbuf/loaders/* dodoc AUTHORS COPYING* ChangeLog INSTALL README NEWS TODO }