blob: 1eed41af5ec4960221e7ae2546e050e63b86f3e1 (
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
|
# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI="8"
inherit cmake
DESCRIPTION="Helmut Dersch's panorama toolbox library"
HOMEPAGE="http://panotools.sourceforge.net/"
SRC_URI="mirror://sourceforge/panotools/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0/3"
KEYWORDS="~amd64 ~arm64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos"
IUSE="java static-libs suitesparse"
DEPEND="media-libs/libpng:=
media-libs/tiff:=
media-libs/libjpeg-turbo:=
sys-libs/zlib
java? ( >=virtual/jdk-1.8:* )
suitesparse? ( sci-libs/suitesparse )"
RDEPEND="${DEPEND}"
S="${WORKDIR}/${PN}-$(ver_cut 1-3)"
src_configure() {
local mycmakeargs=(
-DSUPPORT_JAVA_PROGRAMS=$(usex java)
-DUSE_SPARSE_LEVMAR=$(usex suitesparse)
)
cmake_src_configure
}
src_install() {
cmake_src_install
if ! use static-libs ; then
find "${D}" -name "*.a" -type f -delete || die
fi
}
|