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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.7 - (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.6: +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_p20099999.ebuild,v 1.6 2006/11/08 22:09:57 genstef Exp $
4
5 WANT_AUTOCONF=latest
6 inherit nsplugins autotools cvs
7
8 DESCRIPTION="Gnash is a GNU Flash movie player that supports many SWF v7 features"
9 HOMEPAGE="http://www.gnu.org/software/gnash"
10 #SRC_URI="ftp://ftp.gnu.org/pub/gnu/${PN}/${PV}/${P}.tar.bz2"
11 ECVS_SERVER="cvs.sv.gnu.org:/sources/${PN}"
12 ECVS_MODULE="${PN}"
13 [ "${PV/0.7.1_p}" != "20099999" ] && ECVS_CO_OPTS="-D ${PV/0.7.1_p}"
14 ECVS_UP_OPTS="-dP ${ECVS_CO_OPTS}"
15 S=${WORKDIR}/${PN}
16
17 LICENSE="GPL-2"
18 SLOT="0"
19 KEYWORDS="-*"
20 IUSE="agg gstreamer ffmpeg nsplugin xml video_cards_i810"
21 #dmalloc, broken see bug 142939
22 #dmalloc? ( dev-libs/dmalloc )
23 # $(use_enable dmalloc) \
24
25 RDEPEND="
26 xml? ( dev-libs/libxml2 )
27 sys-libs/zlib
28 media-libs/jpeg
29 media-libs/libogg
30 media-libs/libpng
31 net-misc/curl
32 !ffmpeg? ( media-libs/libmad )
33 ffmpeg? ( media-video/ffmpeg )
34 gstreamer? ( media-libs/gstreamer
35 || (
36 media-plugins/gst-plugins-ffmpeg
37 media-plugins/gst-plugins-mad
38 media-plugins/gst-plugins-lame
39 )
40 )
41 !gstreamer? ( media-libs/libsdl )
42 dev-libs/boost
43 || (
44 ( x11-libs/libX11
45 x11-libs/libXi
46 x11-libs/libXmu
47 x11-libs/libXt
48 x11-proto/xproto )
49 virtual/x11
50 )
51 dev-libs/atk
52 dev-libs/glib
53 >x11-libs/gtk+-2
54 x11-libs/pango
55 !agg? ( virtual/opengl x11-libs/gtkglext )
56 agg? ( x11-libs/agg )"
57 #cairo? ( x11-libs/cairo )
58
59 src_unpack() {
60 cvs_src_unpack
61 cd ${S}
62 AT_M4DIR=macros AT_NO_RECURSIVE=1 eautoreconf
63 cd libltdl
64 eautoreconf
65 }
66
67 src_compile() {
68 local myconf
69
70 use nsplugin && myconf="${myconf} --with-plugindir=/opt/netscape/plugins"
71
72 #--enable-renderer=engine Specify rendering engine:
73 # OpenGL (default)
74 # Cairo (experimental)
75 #cairo: does not work for plugins yet, offers flash for non-accelerated gfx?
76 #if use cairo; then
77 # myconf="${myconf} --enable-renderer=cairo"
78 #fi
79 if use agg; then
80 myconf="${myconf} --enable-renderer=agg"
81 fi
82 #--enable-gui=flavor Specify gui flavor:
83 # GTK
84 # SDL -> has no controls, we do not USE it
85 #$(use_enable gtk glext) with USE=-gtk, fails to detect gtkglext, bug 135010
86 #--enable-sound=gst,sdl
87 if use gstreamer; then
88 myconf="${myconf} --enable-sound=gst"
89 else
90 myconf="${myconf} --enable-sound=sdl"
91 fi
92
93 if use ffmpeg; then
94 myconf="${myconf} --with-mp3-decoder=ffmpeg"
95 fi
96
97 # klash is broken, thus we do not offer it
98 econf \
99 $(use_enable nsplugin plugin) \
100 $(use_enable xml) \
101 $(use_enable video_cards_i810 i810-lod-bias) \
102 --without-gcc-arch \
103 --disable-klash \
104 ${myconf} || die "econf failed"
105 emake -j1 || die "emake failed"
106 }
107
108 src_install() {
109 emake DESTDIR=${D} install || die "emake install failed"
110 use nsplugin && inst_plugin /opt/netscape/plugins/libgnashplugin.so \
111 || rm -rf ${D}/opt
112 dodoc AUTHORS ChangeLog NEWS README
113 }
114
115 pkg_postinst() {
116 ewarn "ALPHA"
117 ewarn "gnash is still in heavy development"
118 ewarn "please report gnash bugs upstream to the gnash devs"
119 }

  ViewVC Help
Powered by ViewVC 1.1.20