summaryrefslogtreecommitdiff
blob: fce6c7e7448d53c7432ee5b09f3bc575200edcf5 (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
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

EAPI="2"

MY_P="libomxil-${P}"

DESCRIPTION="An Open Source implementation of the OpenMAX Integration Layer"
HOMEPAGE="http://omxil.sourceforge.net"
SRC_URI="mirror://sourceforge/omxil/${MY_P}.tar.gz"

LICENSE="LGPL-2.1"
SLOT="0"
KEYWORDS="~amd64 ~x86"

IUSE="alsa doc fbcon ffmpeg jpeg mad vorbis"

RDEPEND="media-libs/alsa-lib
	mad? ( media-libs/libmad )
	vorbis? ( media-libs/libvorbis )
	ffmpeg? ( media-video/ffmpeg )"
DEPEND="${RDEPEND}"

S="${WORKDIR}/${MY_P}"

src_configure() {
	econf \
		--docdir=/usr/share/doc/${PF} \
		$(use_enable alsa) \
		$(use_enable doc) \
		$(use_enable fbcon fbvideosink) \
		$(use_enable ffmpeg ffmpegcomponents) \
		$(use_enable jpeg) \
		$(use_enable mad madcomponents) \
		$(use_enable vorbis vorbiscomponents)
}

src_install() {
	emake DESTDIR="${D}" install || die "emake install failed"
	dodoc ChangeLog || die "dodoc failed"
}