Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 505430
Collapse All | Expand All

(-)/usr/portage/dev-libs/libcec/libcec-2.1.4.ebuild (-5 / +22 lines)
Lines 4-21 Link Here
4
4
5
EAPI=5
5
EAPI=5
6
6
7
inherit autotools eutils linux-info
7
inherit autotools eutils flag-o-matic linux-info
8
8
9
DESCRIPTION="Library for communicating with the Pulse-Eight USB HDMI-CEC Adaptor"
9
DESCRIPTION="Library for communicating with the Pulse-Eight USB HDMI-CEC Adaptor"
10
HOMEPAGE="http://libcec.pulse-eight.com"
10
HOMEPAGE="http://libcec.pulse-eight.com"
11
SRC_URI="http://github.com/Pulse-Eight/${PN}/archive/${P}.tar.gz"
11
SRC_URI="http://github.com/Pulse-Eight/${PN}/archive/${P}.tar.gz"
12
LICENSE="GPL-2"
12
LICENSE="GPL-2"
13
SLOT="0"
13
SLOT="0"
14
KEYWORDS="~amd64 ~x86"
14
KEYWORDS="~amd64 ~arm ~x86"
15
IUSE="debug static-libs"
15
IUSE="debug static-libs video_cards_raspberrypi"
16
16
17
RDEPEND="virtual/udev
17
RDEPEND="virtual/udev
18
	dev-libs/lockdev"
18
	dev-libs/lockdev
19
	video_cards_raspberrypi? ( media-libs/raspberypi-userland  )"
19
DEPEND="${RDEPEND}
20
DEPEND="${RDEPEND}
20
	virtual/pkgconfig"
21
	virtual/pkgconfig"
21
22
Lines 26-39 Link Here
26
src_prepare() {
27
src_prepare() {
27
	sed -i '/^CXXFLAGS/s:-fPIC::' configure.ac || die
28
	sed -i '/^CXXFLAGS/s:-fPIC::' configure.ac || die
28
	sed -i '/^CXXFLAGS/s:-Werror::' configure.ac || die
29
	sed -i '/^CXXFLAGS/s:-Werror::' configure.ac || die
30
	if use video_cards_raspberrypi ;then
31
		# I disable those tests because they fail without changing the success/results of compilation
32
		# When I do at hand the test done by configure it works
33
		sed -i 's,.*vchi_initialise.*,,' configure.ac || die
34
		sed -i 's,.*vchiq_initialise.*,,' configure.ac || die
35
		sed -i 's,.*vchi_create_connection.*,,' configure.ac || die
36
	fi
29
	eautoreconf
37
	eautoreconf
30
}
38
}
31
39
32
src_configure() {
40
src_configure() {
41
	local rpi_conf
42
	rpi_conf='--disable-rpi'
43
	if use video_cards_raspberrypi; then
44
			einfo "Enabling raspberry pi options"
45
			append-cppflags -I/opt/vc/include/
46
			append-ldflags -L/opt/vc/lib/
47
			rpi_conf='--enable-rpi -with-rpi-include-path=/opt/vc/include/ --with-rpi-lib-path=/opt/vc/lib/'
48
	fi
49
	#TODO the same thing could be do for the cubox
33
	econf $(use_enable static-libs static) \
50
	econf $(use_enable static-libs static) \
34
	$(use_enable debug) \
51
	$(use_enable debug) \
52
	${rpi_conf} \
35
	--enable-optimisation \
53
	--enable-optimisation \
36
	--disable-rpi \
37
	--disable-cubox
54
	--disable-cubox
38
}
55
}
39
56

Return to bug 505430