You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
57 lines
1.2 KiB
57 lines
1.2 KiB
5 years ago
|
# Copyright 1999-2019 Gentoo Authors
|
||
|
# Distributed under the terms of the GNU General Public License v2
|
||
|
|
||
|
EAPI=7
|
||
|
|
||
5 years ago
|
inherit cmake udev
|
||
5 years ago
|
|
||
|
DESCRIPTION="INDI Astronomical Control Protocol library"
|
||
|
HOMEPAGE="https://www.indilib.org/"
|
||
|
SRC_URI="https://github.com/${PN}/${PN/lib/}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||
|
|
||
|
LICENSE="BSD GPL-2+ LGPL-2+ LGPL-2.1+"
|
||
|
SLOT="0/1"
|
||
5 years ago
|
KEYWORDS="amd64 ~ppc ~ppc64 ~x86"
|
||
5 years ago
|
IUSE="ogg test websocket"
|
||
5 years ago
|
|
||
|
RDEPEND="
|
||
|
net-misc/curl
|
||
|
sci-libs/cfitsio:=
|
||
5 years ago
|
sci-libs/fftw:3.0=
|
||
5 years ago
|
sci-libs/gsl:=
|
||
|
sci-libs/libnova:=
|
||
|
sys-libs/zlib
|
||
|
virtual/jpeg:0
|
||
|
virtual/libusb:0
|
||
|
ogg? (
|
||
|
media-libs/libogg
|
||
|
media-libs/libtheora
|
||
|
)
|
||
5 years ago
|
websocket? ( dev-libs/boost:= )
|
||
5 years ago
|
"
|
||
|
DEPEND="${RDEPEND}
|
||
|
kernel_linux? ( sys-kernel/linux-headers )
|
||
|
test? ( >=dev-cpp/gtest-1.8.0 )
|
||
5 years ago
|
websocket? ( dev-cpp/websocketpp )
|
||
5 years ago
|
"
|
||
|
|
||
|
RESTRICT="!test? ( test )"
|
||
|
|
||
|
S="${WORKDIR}/${P/lib/}"
|
||
|
|
||
|
src_configure() {
|
||
|
local mycmakeargs=(
|
||
|
-DINDI_BUILD_QT5_CLIENT=OFF
|
||
|
-DINDI_BUILD_UNITTESTS=$(usex test)
|
||
5 years ago
|
-DUDEVRULES_INSTALL_DIR="$(get_udevdir)"/rules.d
|
||
5 years ago
|
$(cmake_use_find_package ogg OggTheora)
|
||
5 years ago
|
-DINDI_BUILD_WEBSOCKET=$(usex websocket)
|
||
5 years ago
|
)
|
||
|
|
||
5 years ago
|
cmake_src_configure
|
||
5 years ago
|
}
|
||
|
|
||
|
src_test() {
|
||
5 years ago
|
BUILD_DIR="${BUILD_DIR}"/test cmake_src_test
|
||
5 years ago
|
}
|