/[gentoo-x86]/net-www/gnash/gnash-0.7.1.ebuild
Gentoo

Contents of /net-www/gnash/gnash-0.7.1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (show annotations) (download)
Tue Aug 8 12:00:55 2006 UTC (13 years, 2 months ago) by genstef
Branch: MAIN
CVS Tags: HEAD
Changes since 1.4: +1 -1 lines
FILE REMOVED
remove old ebuilds, remove dmalloc use flag thanks to Attila Stehr <as.gentoo@web.de> in bug 142939, add new live cvs ebuild thnaks to Markus Gothe <nietzsche@lysator.liu.se> in bug 143131 that compiles klash even without the nsplugin thanks to Simon Siemonsma <simon.gentoo@hccnet.nl> in bug 142190
(Portage version: 2.1.1_pre4-r4)
 (Unsigned Manifest commit)

1 # Copyright 1999-2006 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/net-www/gnash/gnash-0.7.1.ebuild,v 1.4 2006/05/11 17:09:54 genstef Exp $
4
5 inherit nsplugins kde-functions autotools
6
7 DESCRIPTION="Gnash is a GNU Flash movie player that supports many SWF v7 features"
8 HOMEPAGE="http://www.gnu.org/software/gnash"
9 SRC_URI="ftp://ftp.gnu.org/pub/gnu/${PN}/${PV}/${P}.tar.bz2"
10
11 LICENSE="GPL-2"
12 SLOT="0"
13 KEYWORDS="~ppc ~x86"
14 IUSE="dmalloc mad nsplugin nptl xml kde gtk video_cards_i810"
15
16 RDEPEND="dmalloc? ( dev-libs/dmalloc )
17 xml? ( dev-libs/libxml2 )
18 kde? (
19 kde-base/kdelibs
20 x11-libs/qt
21 )
22 sys-libs/zlib
23 media-libs/jpeg
24 mad? ( media-libs/libmad )
25 media-libs/libogg
26 media-libs/libpng
27 media-libs/libsdl
28 media-libs/sdl-mixer
29 virtual/opengl
30 || (
31 ( x11-libs/libX11
32 x11-libs/libXi
33 x11-libs/libXmu
34 x11-libs/libXt
35 x11-proto/xproto )
36 virtual/x11
37 )
38 gtk? (
39 dev-libs/atk
40 dev-libs/glib
41 x11-libs/cairo
42 >x11-libs/gtk+-2
43 x11-libs/gtkglext
44 x11-libs/pango
45 )"
46 set-kdedir
47
48 src_compile() {
49 epatch ${FILESDIR}/gnash-as-needed.diff
50 # we want sound
51 sed -i -e "s:bool do_sound = .*:bool do_sound = true;:" backend/gnash.cpp
52
53 AT_M4DIR="macros" eautoreconf
54 econf \
55 $(use_enable dmalloc) \
56 $(use_enable kde klash) \
57 $(use_enable mad mp3) \
58 $(use_enable nptl pthreads) \
59 $(use_enable xml) \
60 $(use_enable gtk glext) \
61 $(use_enable video_cards_i810 i810-lod-bias) \
62 --with-plugindir=/opt/netscape/plugins \
63 || die "econf failed"
64 emake || die "emake failed"
65 # fails when disabled
66 #$(use_enable nsplugin plugin) \
67 #$(use_with nsplugin plugindir /opt/netscape/plugins) \
68 }
69
70 src_install() {
71 sed -i -e "s:-lXmu @inst_prefix_dir:-lXmu -L../backend/.libs -L../server/.libs -L../libgeometry/.libs -L../libbase/.libs -L. @inst_prefix_dir:" server/libgnashserver.la
72 make DESTDIR=${D} install || die "make install failed"
73 use nsplugin && inst_plugin /opt/netscape/plugins/libgnashplugin.so \
74 || rm ${D}/opt/netscape/plugins/libgnashplugin.so
75 dodoc AUTHORS ChangeLog NEWS README
76 }
77
78 pkg_postinst() {
79 ewarn "ALPHA"
80 ewarn "gnash is still in heavy development"
81 ewarn "please report gnash bugs upstream to the gnash devs"
82 }

  ViewVC Help
Powered by ViewVC 1.1.20