summaryrefslogtreecommitdiff
blob: bfe0aa5dd4e2473a4821311bcc3db9de4b3474f5 (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
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-video/sswf/sswf-1.7.1.ebuild,v 1.4 2007/11/27 12:01:26 zzam Exp $

inherit eutils

DESCRIPTION="A C++ Library and a script language tool to create Flash (SWF) movies up to version 6."
HOMEPAGE="http://sswf.sourceforge.net"
SRC_URI="mirror://sourceforge/${PN}/${P}-src.tar.bz2
	doc? ( mirror://sourceforge/${PN}/${P}-doc.tar.bz2 )"

LICENSE="as-is"
SLOT="0"
KEYWORDS="~x86 ~ppc ~amd64"
IUSE="doc debug"
DEPEND="sys-libs/zlib
	media-libs/jpeg
	media-libs/freetype
	sys-devel/flex
	sys-devel/bison"

src_unpack() {
	unpack ${A}
	cd "${S}"
	epatch "${FILESDIR}"/bitsize.patch
	epatch "${FILESDIR}"/sound_wave_t.patch
}

src_compile() {
	econf \
		$(use_enable debug) \
		|| die "Configuration Failed!"

	emake || die "Make Failed"
}

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