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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (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.4: +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_p20060704.ebuild,v 1.4 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="http://gentooexperimental.org/~genstef/dist/${P}.tar.bz2"
10 S=${WORKDIR}/${PN}
11
12 LICENSE="GPL-2"
13 SLOT="0"
14 KEYWORDS="~amd64 ~ppc -sparc ~x86"
15 IUSE="mad nsplugin nptl xml kde video_cards_i810"
16
17 RDEPEND="
18 xml? ( dev-libs/libxml2 )
19 kde? (
20 kde-base/kdelibs
21 x11-libs/qt
22 )
23 sys-libs/zlib
24 media-libs/jpeg
25 mad? ( media-libs/libmad )
26 media-libs/libogg
27 media-libs/libpng
28 media-libs/libsdl
29 media-libs/sdl-mixer
30 net-misc/curl
31 virtual/opengl
32 || (
33 ( x11-libs/libX11
34 x11-libs/libXi
35 x11-libs/libXmu
36 x11-libs/libXt
37 x11-proto/xproto )
38 virtual/x11
39 )
40 dev-libs/atk
41 dev-libs/glib
42 x11-libs/cairo
43 >x11-libs/gtk+-2
44 x11-libs/gtkglext
45 x11-libs/pango"
46
47 set-kdedir
48
49 src_unpack() {
50 unpack ${A}
51 cd ${S}
52
53 # as-needed patch
54 # http://savannah.gnu.org/bugs/?func=detailitem&item_id=16684
55 epatch ${FILESDIR}/${P}-opengl.diff
56 # CXXFLAGS should be ussed for cpp code and libtool for installation
57 # http://savannah.gnu.org/bugs/?func=detailitem&item_id=17049
58 epatch ${FILESDIR}/gnash-fix-cxxflags-rpath.patch
59
60
61 # we want sound
62 sed -i -e "s:bool do_sound = .*:bool do_sound = true;:" backend/gnash.cpp
63
64 AT_M4DIR="macros" eautoreconf
65 }
66
67 src_compile() {
68 local myconf
69
70 use nsplugin && myconf="${myconf} --enable-plugin --with-plugindir=/opt/netscape/plugins"
71
72 #--enable-renderer=engine Specify rendering engine:
73 # OpenGL (default)
74 # Cairo (experimental)
75 #cairo: does not compile, offers flash for non-accelerated gfx?
76 #if use cairo; then
77 # myconf="${myconf} --enable-renderer=cairo"
78 #fi
79 #--enable-gui=flavor Specify gui flavor:
80 # GTK
81 # SDL -> has no controls, we do not USE it
82 #$(use_enable gtk glext) with USE=-gtk, fails to detect gtkglext, bug 135010
83
84 econf \
85 $(use_enable kde klash) \
86 $(use_enable mad mp3) \
87 $(use_enable nptl pthreads) \
88 $(use_enable xml) \
89 $(use_enable video_cards_i810 i810-lod-bias) \
90 ${myconf} || die "econf failed"
91 emake || die "emake failed"
92 }
93
94 src_install() {
95 emake DESTDIR=${D} install || die "emake install failed"
96 use nsplugin && inst_plugin /opt/netscape/plugins/libgnashplugin.so \
97 || rm -rf ${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