summaryrefslogtreecommitdiff
blob: ebf62c0a98b84d11f41c418d424b525ea6e5dc89 (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
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-libs/libflash/libflash-0.4.10-r1.ebuild,v 1.19 2010/01/22 13:47:11 cla Exp $

inherit eutils

DESCRIPTION="A library for flash animations"
HOMEPAGE="http://www.swift-tools.com/Flash/"
SRC_URI="http://www.directfb.org/downloads/Misc/${P}.tar.gz"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="x86 ppc sparc alpha amd64"
IUSE=""

DEPEND="media-libs/jpeg
	sys-libs/zlib"

src_unpack() {
	unpack ${A}
	cd "${S}"

	# patch to fix the sqrt not defined problem in gcc3.1
	# It should be ok with gcc2.95 thanks to Doug Goldstein
	# <dougg@ufl.edu> (Cardoe)
	epatch "${FILESDIR}"/${P}-sqrt.patch
	epatch "${FILESDIR}"/${P}-gcc41.patch
	sed -r -e /^CXXFLAGS/s:=.*:="${CXXFLAGS}": -i lib/Makefile.in
}

src_install() {
	emake DESTDIR="${D}" install || die "Install failed"
	dodoc AUTHORS COPYING README
}