# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/media-libs/swfdec/swfdec-0.3.5.ebuild,v 1.2 2005/06/13 21:53:16 zaheerm Exp $ inherit eutils DESCRIPTION="Macromedia Flash decoding library" HOMEPAGE="http://www.schleef.org/swfdec/" SRC_URI="http://www.schleef.org/${PN}/download/${P}.tar.gz" LICENSE="LGPL-2.1" SLOT="0" KEYWORDS="~x86 ~ppc ~sparc ~amd64" IUSE="X mozilla gtk sdl mad" RDEPEND=">=dev-libs/glib-2 >=media-libs/libart_lgpl-2.0 >=dev-libs/liboil-0.3.0 gtk? ( >=x11-libs/gtk+-2.2 ) sdl? ( media-libs/libsdl ) mad? ( media-sound/madplay ) >=sys-libs/zlib-1.1.4 mozilla? ( >=www-client/mozilla-1.0.0 )" DEPEND="${RDEPEND} dev-util/pkgconfig" src_compile() { use mozilla && PATH=/usr/lib/mozilla:$PATH econf `use_with X x` `use_enable gtk pixbuf-loader` || die emake || die } src_install() { make install DESTDIR=${D} || die dodoc AUTHORS COPYING ChangeLog INSTALL README RELEASE TODO } pkg_postinst() { use gtk && gdk-pixbuf-query-loaders > /etc/gtk-2.0/gdk-pixbuf.loaders } pkg_postrm() { use gtk && gdk-pixbuf-query-loaders > /etc/gtk-2.0/gdk-pixbuf.loaders }