# Copyright 1999-2006 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/net-www/gnash/gnash-0.7_alpha20060129.ebuild,v 1.2 2006/01/31 02:47:20 mr_bones_ Exp $ inherit cvs DESCRIPTION="Gnash is a GNU Flash movie player that supports many SWF v7 features" HOMEPAGE="http://www.gnu.org/software/gnash" SRC_URI="" ECVS_SERVER="cvs.sv.gnu.org:/sources/${PN}" ECVS_MODULE="${PN}" ECVS_CO_OPTS="-D ${PV/0.7_alpha}" #ECVS_CO_OPTS="" ECVS_UP_OPTS="-dP ${ECVS_CO_OPTS}" S=${WORKDIR}/${ECVS_MODULE} LICENSE="GPL-2" SLOT="0" KEYWORDS="~ppc ~x86" IUSE="" IUSE="http dmalloc ogg mp3 X opengl sdl png jpeg xml2 firefox dom xmlreader pthreads" DEPEND="virtual/opengl media-libs/jpeg media-libs/libpng sys-libs/zlib || ( ( x11-libs/libX11 x11-libs/libXt x11-proto/xproto ) virtual/x11 ) dev-libs/libxml2 media-libs/libsdl media-libs/libmad media-libs/sdl-mixer" RDEPEND="${DEPEND}" src_unpack() { cvs_src_unpack cd ${S} pwd use firefox && epatch ${FILESDIR}/firefox_plugin.patch } pkg_setup() { if use dom && use xmlreader ; then ewarn "Trying to build with dom support and with xmlreader support." ewarn "Dom support will be disabled." fi } src_compile() { # Bugs with search of firefox-config use firefox && export PATH=$PATH:/usr/lib/mozilla-firefox libtoolize --copy --force || die "libtoolize --copy --force failed" ./autogen.sh || die "autogen.sh failed" #econf --with-libxml-includes=/usr/include/libxml2 --with-x --enable-mp3 --enable-dom --enable-http --enable-plugin --enable-dmalloc --enable-jpeg --enable-png --enable-mp3 --enable-ogg --enable-pthreads --disable-docbook --with-firefox=/usr/lib/mozilla-firefox \ # || die "econf failed" econf \ $(use_with X x) \ $(use_enable mp3 ) \ $(use_enable ogg ) \ $(use_enable pthreads ) \ $(use_enable dmalloc ) \ $(use_enable firefox plugin ) \ $(use_enable xml2 xml ) \ $(useq xmlreader || use_enable dom ) \ $(use_enable xmlreader ) \ $(use_enable http ) \ $(use_enable jpeg ) \ $(use_enable png ) \ --disable-docbook \ || die "econf failed" # --with-firefox=/usr/lib/mozilla-firefox \ emake || die "emake failed" } src_install() { make DESTDIR=${D} install || die "make install failed" } pkg_postinst() { ewarn "ALPHA" ewarn "gnash is still in heavy development" ewarn "please report gnash bugs upstream to the gnash devs" }