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

EAPI=5
XORG_MULTILIB=yes
XORG_EAUTORECONF=yes

inherit xorg-2

DESCRIPTION="An Open Source implementation of the OpenMAX Integration Layer"
HOMEPAGE="http://omxil.sourceforge.net/"
SRC_URI="mirror://sourceforge/${PN:3:5}/${P}.tar.gz mirror://ubuntu/pool/universe/${PN:0:4}/${PN}/${PN}_${PV}-1ubuntu2.debian.tar.gz"

LICENSE="LGPL-2.1"
SLOT="0"
KEYWORDS="amd64 x86"
IUSE="+audioeffects +clocksrc debug doc +videoscheduler"

RDEPEND=""
DEPEND="doc? ( app-doc/doxygen )
	${RDEPEND}"

src_prepare() {
	PATCHES=(
		"${WORKDIR}"/debian/patches/*.patch
		"${FILESDIR}"/${P}-dynamicloader-linking.patch
		"${FILESDIR}"/${P}-parallel-build.patch
		"${FILESDIR}"/${P}-version.patch
	)
	xorg-2_src_prepare
}

src_configure() {
	XORG_CONFIGURE_OPTIONS="
		--docdir="${EPREFIX}"/usr/share/doc/${PF} \
		$(use_enable audioeffects) \
		$(use_enable clocksrc) \
		$(use_enable debug) \
		$(use_enable doc) \
		$(use_enable videoscheduler)
	"
	xorg-2_src_configure
}