| 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.6.2.ebuild,v 1.2 2012/05/14 15:57:17 ago Exp $
|
| 4 |
|
| 5 |
EAPI="4"
|
| 6 |
|
| 7 |
inherit autotools 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="static-libs"
|
| 17 |
|
| 18 |
RDEPEND=">=sys-fs/udev-151"
|
| 19 |
DEPEND="${RDEPEND}
|
| 20 |
virtual/pkgconfig"
|
| 21 |
|
| 22 |
CONFIG_CHECK="~USB_ACM"
|
| 23 |
|
| 24 |
src_prepare() {
|
| 25 |
sed -i '/^CXXFLAGS/s:-fPIC::' configure.ac || die
|
| 26 |
eautoreconf
|
| 27 |
}
|
| 28 |
|
| 29 |
src_configure() {
|
| 30 |
econf $(use_enable static-libs static)
|
| 31 |
}
|
| 32 |
|
| 33 |
src_install() {
|
| 34 |
default
|
| 35 |
use static-libs || find "${ED}" -name '*.la' -delete
|
| 36 |
}
|