blob: 043c7cf425e8aadcaee8bbeaf14bd80d1dc81395 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
|
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $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 $
inherit nsplugins kde-functions autotools
DESCRIPTION="Gnash is a GNU Flash movie player that supports many SWF v7 features"
HOMEPAGE="http://www.gnu.org/software/gnash"
SRC_URI="http://gentooexperimental.org/~genstef/dist/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~ppc -sparc ~x86"
IUSE="dmalloc mad nsplugin nptl xml kde video_cards_i810"
RDEPEND="dmalloc? ( dev-libs/dmalloc )
xml? ( dev-libs/libxml2 )
kde? (
kde-base/kdelibs
x11-libs/qt
)
sys-libs/zlib
media-libs/jpeg
mad? ( media-libs/libmad )
media-libs/libogg
media-libs/libpng
media-libs/libsdl
media-libs/sdl-mixer
virtual/opengl
|| (
( x11-libs/libX11
x11-libs/libXi
x11-libs/libXmu
x11-libs/libXt
x11-proto/xproto )
virtual/x11
)
dev-libs/atk
dev-libs/glib
x11-libs/cairo
>x11-libs/gtk+-2
x11-libs/gtkglext
x11-libs/pango"
S=${WORKDIR}/gnash
set-kdedir
src_unpack() {
unpack ${A}
#Fix a busted opengl as-needed
cd ${S}
epatch ${FILESDIR}/${P}-opengl.diff
epatch ${FILESDIR}/${P}-confcache-gtkglext.patch
# we want sound
sed -i -e "s:bool do_sound = .*:bool do_sound = true;:" backend/gnash.cpp
AT_M4DIR="macros" eautoreconf
}
src_compile() {
local myconf
if use nsplugin; then
myconf="${myconf} --enable-plugin --with-plugindir=/opt/netscape/plugins"
fi
#--enable-renderer=engine Specify rendering engine:
# OpenGL (default)
# Cairo (experimental)
#cairo: does not compile, offers flash for non-accelerated gfx?
#if use cairo; then
# myconf="${myconf} --enable-renderer=cairo"
#fi
#--enable-gui=flavor Specify gui flavor:
# GTK
# SDL -> has no controls, we do not USE it
#$(use_enable gtk glext) with USE=-gtk, fails to detect gtkglext, bug 135010
econf \
$(use_enable dmalloc) \
$(use_enable kde klash) \
$(use_enable mad mp3) \
$(use_enable nptl pthreads) \
$(use_enable xml) \
$(use_enable video_cards_i810 i810-lod-bias) \
${myconf} || die "econf failed"
emake || die "emake failed"
}
src_install() {
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
make DESTDIR=${D} install || die "make install failed"
use nsplugin && inst_plugin /opt/netscape/plugins/libgnashplugin.so \
|| rm -r ${D}/opt
dodoc AUTHORS ChangeLog NEWS README
}
pkg_postinst() {
ewarn "ALPHA"
ewarn "gnash is still in heavy development"
ewarn "please report gnash bugs upstream to the gnash devs"
}
|