summaryrefslogtreecommitdiff
blob: fa7f1442f822baca6b091945df5f32b719da2ee7 (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
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-libs/DirectFB-extra/DirectFB-extra-0.9.16.ebuild,v 1.1 2003/02/02 10:23:22 seemant Exp $

IUSE="quicktime flash imlib avi"

S=${WORKDIR}/${P}
DESCRIPTION="Extra image/video/font providers and graphics/input drivers for DirectFB"
HOMEPAGE="http://www.directfb.org/"
SRC_URI="http://directfb.org/download/${PN}/${P}.tar.gz"

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

DEPEND="=dev-libs/DirectFB-${PV}*
	quicktime? ( media-libs/openquicktime )
	flash? ( media-libs/libflash )
	imlib? ( media-libs/imlib2 )"
#	avi? ( media-video/avifile )"


src_compile() {

	local myconf

	use flash \
		&& myconf="${myconf} --enable-flash" \
		|| myconf="${myconf} --disable-flash"

#	use avi \
#		&& myconf="${myconf} --enable-avifile" \
#		|| myconf="${myconf} --disable-avifile"

	myconf="${myconf} --disable-avifile"

	econf ${myconf} || die
	emake || die
}

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