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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (show annotations) (download)
Fri Sep 1 12:29:13 2006 UTC (13 years, 1 month ago) by genstef
Branch: MAIN
CVS Tags: HEAD
Changes since 1.4: +1 -1 lines
FILE REMOVED
rename as per bug 143320
(Portage version: 2.1.1_rc1-r2)
 (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_p20090909.ebuild,v 1.4 2006/08/14 15:28:19 genstef Exp $
4
5 inherit nsplugins kde-functions autotools cvs
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 ECVS_SERVER="cvs.sv.gnu.org:/sources/${PN}"
11 ECVS_MODULE="${PN}"
12 ECVS_CO_OPTS="-D ${PV/0.7.1_p}"
13 ECVS_UP_OPTS="-dP ${ECVS_CO_OPTS}"
14 S=${WORKDIR}/${PN}
15
16 LICENSE="GPL-2"
17 SLOT="0"
18 KEYWORDS="-*"
19 IUSE="gstreamer mad nsplugin nptl xml kde video_cards_i810"
20 #dmalloc, broken see bug 142939
21 #dmalloc? ( dev-libs/dmalloc )
22 # $(use_enable dmalloc) \
23
24 RDEPEND="
25 xml? ( dev-libs/libxml2 )
26 kde? (
27 kde-base/kdelibs
28 x11-libs/qt
29 )
30 sys-libs/zlib
31 media-libs/jpeg
32 mad? ( media-libs/libmad )
33 media-libs/libogg
34 media-libs/libpng
35 media-libs/libsdl
36 net-misc/curl
37 virtual/opengl
38 || (
39 ( x11-libs/libX11
40 x11-libs/libXi
41 x11-libs/libXmu
42 x11-libs/libXt
43 x11-proto/xproto )
44 virtual/x11
45 )
46 gstreamer? ( media-libs/gstreamer )
47 !gstreamer? ( media-libs/sdl-mixer )
48 dev-libs/atk
49 dev-libs/glib
50 >x11-libs/gtk+-2
51 x11-libs/pango
52 x11-libs/gtkglext"
53 #cairo? ( x11-libs/cairo )
54
55 set-kdedir
56
57 src_unpack() {
58 cvs_src_unpack
59 cd ${S}
60
61 # enable sound by default
62 ssed="bool.*do_sound[ \t]*=[ \t]*"
63 grep "${ssed}" . -rl | xargs \
64 sed -i -e "s:\(${ssed}\)false:\1true:"
65
66 AT_M4DIR="macros" eautoreconf
67 }
68
69 src_compile() {
70 local myconf
71
72 use nsplugin && myconf="${myconf} --enable-plugin --with-plugindir=/opt/netscape/plugins"
73
74 #--enable-renderer=engine Specify rendering engine:
75 # OpenGL (default)
76 # Cairo (experimental)
77 #cairo: does not work for plugins yet, offers flash for non-accelerated gfx?
78 #if use cairo; then
79 # myconf="${myconf} --enable-renderer=cairo"
80 #fi
81 #--enable-gui=flavor Specify gui flavor:
82 # GTK
83 # SDL -> has no controls, we do not USE it
84 #$(use_enable gtk glext) with USE=-gtk, fails to detect gtkglext, bug 135010
85 #--enable-sound=gst,sdl
86 if use gstreamer; then
87 myconf="${myconf} --enable-sound=gst"
88 else
89 myconf="${myconf} --enable-sound=sdl"
90 fi
91
92 econf \
93 $(use_enable kde klash) \
94 $(use_enable mad mp3) \
95 $(use_enable nptl pthreads) \
96 $(use_enable xml) \
97 $(use_enable video_cards_i810 i810-lod-bias) \
98 ${myconf} || die "econf failed"
99 emake || die "emake failed"
100 }
101
102 src_install() {
103 emake DESTDIR=${D} install || die "emake install failed"
104 use nsplugin && inst_plugin /opt/netscape/plugins/libgnashplugin.so \
105 || rm -rf ${D}/opt
106 dodoc AUTHORS ChangeLog NEWS README
107 }
108
109 pkg_postinst() {
110 ewarn "ALPHA"
111 ewarn "gnash is still in heavy development"
112 ewarn "please report gnash bugs upstream to the gnash devs"
113 }

  ViewVC Help
Powered by ViewVC 1.1.20