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

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

Parent Directory Parent Directory | Revision Log Revision Log


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

  ViewVC Help
Powered by ViewVC 1.1.20