blob: e9fa6752713f2c7b711c70729c2f6f19f252616f (
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
|
# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit autotools
DESCRIPTION="Open Lighting Architecture, a framework for lighting control information"
HOMEPAGE="https://www.openlighting.org/ola/"
SRC_URI="https://github.com/OpenLightingProject/${PN}/releases/download/${PV}/${P}.tar.gz"
LICENSE="GPL-2+ LGPL-2.1+"
SLOT="0"
KEYWORDS="~amd64"
IUSE="examples ftdi http osc tcmalloc test usb zeroconf"
RESTRICT="!test? ( test )"
RDEPEND="dev-libs/protobuf:=
sys-apps/util-linux
sys-libs/ncurses
ftdi? ( dev-embedded/libftdi:1 )
http? ( net-libs/libmicrohttpd:= )
osc? ( media-libs/liblo )
tcmalloc? ( dev-util/google-perftools:= )
usb? ( virtual/libusb:1 )
zeroconf? ( net-dns/avahi )"
DEPEND="${RDEPEND}
sys-kernel/linux-headers"
BDEPEND="sys-devel/bison
sys-devel/flex
virtual/pkgconfig
test? (
dev-util/cppunit
)"
src_prepare() {
default
# Upstream recommends doing this even for tarball builds
eautoreconf
}
src_configure() {
local myeconfargs=(
--disable-fatal-warnings
--with-uucp-lock="/run"
$(use_enable examples)
$(use_enable ftdi libftdi)
$(use_enable http)
$(use_enable osc)
$(use_enable tcmalloc)
$(use_enable test unittests)
$(use_enable usb libusb)
)
econf "${myeconfargs[@]}"
}
src_install() {
default
find "${ED}" -name '*.la' -delete || die
}
|