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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.7 - (show annotations) (download)
Sat Jan 19 17:20:15 2008 UTC (11 years, 8 months ago) by genstef
Branch: MAIN
CVS Tags: HEAD
Changes since 1.6: +1 -1 lines
FILE REMOVED
remove old, dont offer fltk because we do not have fltk2, bug 205408
(Portage version: 2.1.4)

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

  ViewVC Help
Powered by ViewVC 1.1.20