summaryrefslogtreecommitdiff
blob: 09a729d2272b09cac3fa7f48fd8552097f16b5b8 (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
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-www/gplflash/gplflash-0.4.13-r1.ebuild,v 1.2 2006/01/26 21:03:47 genstef Exp $

inherit nsplugins eutils flag-o-matic autotools

DESCRIPTION="free, portable, and useable alternative to the flash-decoder by Macromedia"
HOMEPAGE="http://gplflash.sourceforge.net/"
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~ppc -ppc64 ~sparc ~x86"
IUSE="nosound"

DEPEND="media-libs/libmad
	media-libs/jpeg
	sys-libs/zlib
	|| ( ( x11-libs/libX11
	x11-libs/libXext
	x11-libs/libXt
	x11-proto/xextproto
	x11-proto/xproto )
	virtual/x11 )
	!net-www/netscape-flash
	!media-libs/libflash"


PLUGDIR="/opt/netscape/plugins"

src_unpack() {
	unpack ${A}
	cd "${S}"
	epatch "${FILESDIR}"/${P}-build.patch
	eautoreconf
}

src_compile() {
	use nosound && append-flags -DNOSOUND

	# configure -- includes and libraries won't be found correctly.
	# temporal solution is pointing configure to the exaclt location
	# until a better solution is found. bug #79270
	econf \
		--with-plugin-dir=${PLUGDIR} \
		--x-includes=/usr/include/X11/ --x-libraries=/usr/lib/ \
		|| die "configure failed"
	emake || die "make failed"
}

src_install() {
	make DESTDIR="${D}" install || die
	dodoc AUTHORS ChangeLog INSTALL NEWS README TODO
	inst_plugin ${PLUGDIR}/libnpflash.so
}