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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.11 - (show annotations) (download)
Tue Jul 10 07:20:47 2007 UTC (12 years, 3 months ago) by genstef
Branch: MAIN
CVS Tags: HEAD
Changes since 1.10: +1 -1 lines
FILE REMOVED
Fix flawed media and sound setting logic thanks to Harley Peters <harley@thepetersclan.com> in bug 184105 also attempt to fix as-needed bug 183714
(Portage version: 2.1.3_rc6)

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

  ViewVC Help
Powered by ViewVC 1.1.20