# Copyright 1999-2006 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ # Nonofficial ebuild by Ycarus. For new version look here : http://gentoo.zugaina.org/ # This ebuild is a small modification of the official gnash ebuild inherit cvs nsplugins kde-functions flag-o-matic autotools 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/gnash" ECVS_MODULE="gnash" #ECVS_CO_OPTS="-D ${PV/0.7_alpha}" ECVS_UP_OPTS="-dP ${ECVS_CO_OPTS}" ECVS_AUTH="pserver" PATCHES="${FILESDIR}/gnash-opengl.diff" S=${WORKDIR}/${ECVS_MODULE} LICENSE="GPL-2" SLOT="0" KEYWORDS="~amd64 ~ppc -sparc ~x86" IUSE="gstreamer dmalloc mp3 nsplugin nptl xml kde gtk video_cards_i810" DEPEND="dmalloc? ( dev-libs/dmalloc ) xml? ( dev-libs/libxml2 ) kde? ( kde-base/kdelibs x11-libs/qt ) sys-libs/zlib media-libs/jpeg mp3? ( media-libs/libmad ) media-libs/libogg media-libs/libpng media-libs/libsdl media-libs/gstreamer media-libs/sdl-mixer net-misc/curl virtual/opengl || ( ( x11-libs/libX11 x11-libs/libXi x11-libs/libXmu x11-libs/libXt x11-proto/xproto ) virtual/x11 ) gtk? ( dev-libs/atk dev-libs/glib x11-libs/cairo >x11-libs/gtk+-2 x11-libs/gtkglext x11-libs/pango )" RDEPEND="${DEPEND}" set-kdedir src_compile() { strip-flags #we want sound sed -i -e "s:bool do_sound = .*:bool do_sound = true;:" backend/gnash.cpp elibtoolize || die "elibtoolize failed" AM_OPTS="--gnu" AT_M4DIR="macros" eautoreconf || die "eautoreconf failed" local myconf use gtk && myconf="${myconf} --enable-gui=gtk" use gstreamer && myconf="${myconf} --enable-sound=gst" use nsplugin && myconf="${myconf} --enable-plugin --with-plugindir=/opt/netscape/plugins" econf \ $(use_enable dmalloc) \ $(use_enable kde klash) \ $(use_enable mp3) \ $(use_enable nptl pthreads) \ $(use_enable xml) \ $(use_enable gtk glext) \ $(use_enable video_cards_i810 i810-lod-bias) \ ${myconf} || die "econf failed" emake || die "emake failed" # ugly workaround sed -i 's:exit $EXIT_FAILURE:#exit $EXIT_FAILURE:' libtool || die "failed" # the path is hardcoded sed -i s:/usr/local/bin/gnash:/usr/bin/gnash: plugin/plugin.cpp emake -j1 || die "emake failed" } src_install() { emake DESTDIR=${D} install || die "emake install failed" use nsplugin && inst_plugin /opt/netscape/plugins/libgnashplugin.so \ || rm -rf ${D}/opt dodoc AUTHORS ChangeLog NEWS README } pkg_postinst() { ewarn "ALPHA" ewarn "gnash is still in heavy development" ewarn "please report gnash bugs upstream to the gnash devs" }