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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.7 - (show annotations) (download)
Tue Aug 8 12:00:55 2006 UTC (13 years, 2 months ago) by genstef
Branch: MAIN
CVS Tags: HEAD
Changes since 1.6: +1 -1 lines
FILE REMOVED
remove old ebuilds, remove dmalloc use flag thanks to Attila Stehr <as.gentoo@web.de> in bug 142939, add new live cvs ebuild thnaks to Markus Gothe <nietzsche@lysator.liu.se> in bug 143131 that compiles klash even without the nsplugin thanks to Simon Siemonsma <simon.gentoo@hccnet.nl> in bug 142190
(Portage version: 2.1.1_pre4-r4)
 (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_p20060528.ebuild,v 1.6 2006/06/29 23:04:00 weeve 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="http://gentooexperimental.org/~genstef/dist/${P}.tar.gz"
10
11 LICENSE="GPL-2"
12 SLOT="0"
13 KEYWORDS="~amd64 ~ppc -sparc ~x86"
14 IUSE="dmalloc mad nsplugin nptl xml kde video_cards_i810"
15
16 RDEPEND="dmalloc? ( dev-libs/dmalloc )
17 xml? ( dev-libs/libxml2 )
18 kde? (
19 kde-base/kdelibs
20 x11-libs/qt
21 )
22 sys-libs/zlib
23 media-libs/jpeg
24 mad? ( media-libs/libmad )
25 media-libs/libogg
26 media-libs/libpng
27 media-libs/libsdl
28 media-libs/sdl-mixer
29 virtual/opengl
30 || (
31 ( x11-libs/libX11
32 x11-libs/libXi
33 x11-libs/libXmu
34 x11-libs/libXt
35 x11-proto/xproto )
36 virtual/x11
37 )
38 dev-libs/atk
39 dev-libs/glib
40 x11-libs/cairo
41 >x11-libs/gtk+-2
42 x11-libs/gtkglext
43 x11-libs/pango"
44
45 S=${WORKDIR}/gnash
46
47 set-kdedir
48
49 src_unpack() {
50 unpack ${A}
51
52 #Fix a busted opengl as-needed
53 cd ${S}
54 epatch ${FILESDIR}/${P}-opengl.diff
55 epatch ${FILESDIR}/${P}-confcache-gtkglext.patch
56
57 # we want sound
58 sed -i -e "s:bool do_sound = .*:bool do_sound = true;:" backend/gnash.cpp
59
60 AT_M4DIR="macros" eautoreconf
61 }
62
63 src_compile() {
64 local myconf
65
66 if use nsplugin; then
67 myconf="${myconf} --enable-plugin --with-plugindir=/opt/netscape/plugins"
68 fi
69
70 #--enable-renderer=engine Specify rendering engine:
71 # OpenGL (default)
72 # Cairo (experimental)
73 #cairo: does not compile, offers flash for non-accelerated gfx?
74 #if use cairo; then
75 # myconf="${myconf} --enable-renderer=cairo"
76 #fi
77 #--enable-gui=flavor Specify gui flavor:
78 # GTK
79 # SDL -> has no controls, we do not USE it
80 #$(use_enable gtk glext) with USE=-gtk, fails to detect gtkglext, bug 135010
81
82 econf \
83 $(use_enable dmalloc) \
84 $(use_enable kde klash) \
85 $(use_enable mad mp3) \
86 $(use_enable nptl pthreads) \
87 $(use_enable xml) \
88 $(use_enable video_cards_i810 i810-lod-bias) \
89 ${myconf} || die "econf failed"
90 emake || die "emake failed"
91 }
92
93 src_install() {
94 sed -i -e "s:-lXmu @inst_prefix_dir:-lXmu -L../backend/.libs -L../server/.libs -L../libgeometry/.libs -L../libbase/.libs -L. @inst_prefix_dir:" server/libgnashserver.la
95 make DESTDIR=${D} install || die "make install failed"
96 use nsplugin && inst_plugin /opt/netscape/plugins/libgnashplugin.so \
97 || rm -r ${D}/opt
98 dodoc AUTHORS ChangeLog NEWS README
99 }
100
101 pkg_postinst() {
102 ewarn "ALPHA"
103 ewarn "gnash is still in heavy development"
104 ewarn "please report gnash bugs upstream to the gnash devs"
105 }

  ViewVC Help
Powered by ViewVC 1.1.20