summaryrefslogtreecommitdiff
blob: 5bf6a8e424794987dc4fc3d897c929b2bd1dbebb (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
# 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_alpha20060129.ebuild,v 1.1 2006/01/29 20:28:49 genstef Exp $

inherit cvs

DESCRIPTION="Gnash is a GNU Flash movie player that supports many SWF v7 features"
HOMEPAGE="http://www.gnu.org/software/gnash"
SRC_URI=""
ECVS_SERVER="cvs.sv.gnu.org:/sources/${PN}"
ECVS_MODULE="${PN}"
ECVS_CO_OPTS="-D ${PV/0.7_alpha}"
ECVS_UP_OPTS="-dP ${ECVS_CO_OPTS}"
S=${WORKDIR}/${ECVS_MODULE}

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~ppc ~x86"
IUSE=""

DEPEND="virtual/opengl
	media-libs/jpeg
	media-libs/libpng
	sys-libs/zlib
	|| ( 
		( x11-libs/libX11
		x11-libs/libXt
		x11-proto/xproto )
		virtual/x11
	)
	dev-libs/libxml2
	media-libs/libsdl
	media-libs/libmad
	media-libs/libcaca
	sys-libs/gpm
	sys-libs/ncurses
	sys-libs/slang
	media-libs/sdl-mixer"
RDEPEND="${DEPEND}"

src_compile() {
	libtoolize --copy --force || die "libtoolize --copy --force failed"
	./autogen.sh || die "autogen.sh failed"
	econf \
		--with-libxml-includes=/usr/include/libxml2 \
		--with-x \
		--enable-mp3 \
		--disable-plugin \
		|| die "econf failed"
# plugin disabled, because gnash does not work perfectly yet ..
#  --with-firefox=PFX   Prefix where firefox is installed (optional)
#  --with-firefox-libraries=DIR   Directory where firefox library is installed (optional)
#  --with-firefox-includes=DIR   Directory where firefox header files are installed (optional)
	emake || die "emake failed"

}

src_install() {
	make DESTDIR=${D} install || die "make install failed"
}

pkg_postinst() {
	ewarn "ALPHA"
	ewarn "gnash is still in heavy development"
	ewarn "please report gnash bugs upstream to the gnash devs"
}