summaryrefslogtreecommitdiff
blob: 26ec38f742c340a937a14b0b3b9238036d482392 (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
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-libs/swfdec/swfdec-0.2.2.ebuild,v 1.7 2004/07/14 20:30:26 agriffis Exp $

inherit eutils

DESCRIPTION="Macromedia Flash decoding library"
HOMEPAGE="http://swfdec.sourceforge.net"
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"

LICENSE="LGPL-2.1"
SLOT="0"
KEYWORDS="~x86 ppc ~sparc ~alpha"

IUSE="X mozilla"

DEPEND=">=x11-libs/gtk+-2.0
		gnome-base/gnome-libs
		>=sys-libs/zlib-1.1.4
		media-sound/madplay
		mozilla? ( >=net-www/mozilla-1.0.0 )"
#RDEPEND=""

src_unpack() {
	unpack ${P}.tar.gz
	cd ${P}
	use mozilla && {
		epatch ${FILESDIR}/swfdec-mozilla.patch
	}
}

src_compile() {
	local myconf

	use X && myconf="$myconf --with-x"

	use mozilla && {
		PATH=/usr/lib/mozilla:$PATH
	}
	econf $myconf || die "econfig failed"
	emake || die "emake failed"
}

src_install() {
	einstall || die
}