| 1 |
# Copyright 1999-2012 Gentoo Foundation
|
| 2 |
# Distributed under the terms of the GNU General Public License v2
|
| 3 |
# $Header: /var/cvsroot/gentoo-x86/dev-libs/libcec/libcec-1.9.0.ebuild,v 1.1 2012/09/15 12:44:39 thev00d00 Exp $
|
| 4 |
|
| 5 |
EAPI=4
|
| 6 |
|
| 7 |
inherit autotools eutils linux-info vcs-snapshot
|
| 8 |
|
| 9 |
DESCRIPTION="Library for communicating with the Pulse-Eight USB HDMI-CEC Adaptor"
|
| 10 |
HOMEPAGE="http://libcec.pulse-eight.com"
|
| 11 |
SRC_URI="http://github.com/Pulse-Eight/${PN}/tarball/${P} -> ${P}.tar.gz"
|
| 12 |
|
| 13 |
LICENSE="GPL-2"
|
| 14 |
SLOT="0"
|
| 15 |
KEYWORDS="~amd64 ~x86"
|
| 16 |
IUSE="debug static-libs"
|
| 17 |
|
| 18 |
RDEPEND=">=sys-fs/udev-151"
|
| 19 |
DEPEND="${RDEPEND}
|
| 20 |
dev-libs/lockdev
|
| 21 |
virtual/pkgconfig"
|
| 22 |
|
| 23 |
CONFIG_CHECK="~USB_ACM"
|
| 24 |
|
| 25 |
src_prepare() {
|
| 26 |
sed -i '/^CXXFLAGS/s:-fPIC::' configure.ac || die
|
| 27 |
eautoreconf
|
| 28 |
}
|
| 29 |
|
| 30 |
src_configure() {
|
| 31 |
econf $(use_enable static-libs static) \
|
| 32 |
$(use_enable debug) \
|
| 33 |
--enable-optimisation \
|
| 34 |
--disable-rpi \
|
| 35 |
--disable-cubox
|
| 36 |
}
|
| 37 |
|
| 38 |
src_install() {
|
| 39 |
default
|
| 40 |
use static-libs || find "${ED}" -name '*.la' -delete
|
| 41 |
}
|