diff options
author | Markus Meier <maekke@gentoo.org> | 2022-12-19 20:31:31 +0100 |
---|---|---|
committer | Markus Meier <maekke@gentoo.org> | 2022-12-19 20:31:31 +0100 |
commit | 7360ecacf629a727e22c132a5dbfc5383041f751 (patch) | |
tree | 36eeed70736b2418f4d5488a0a50c957e2636757 /media-libs/libpano13 | |
parent | dev-libs/xalan-c: Fix threads test (diff) | |
download | gentoo-7360ecacf629a727e22c132a5dbfc5383041f751.tar.gz gentoo-7360ecacf629a727e22c132a5dbfc5383041f751.tar.bz2 gentoo-7360ecacf629a727e22c132a5dbfc5383041f751.zip |
media-libs/libpano13: add static-libs flag for bug #829960
Signed-off-by: Markus Meier <maekke@gentoo.org>
Diffstat (limited to 'media-libs/libpano13')
-rw-r--r-- | media-libs/libpano13/libpano13-2.9.21-r2.ebuild | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/media-libs/libpano13/libpano13-2.9.21-r2.ebuild b/media-libs/libpano13/libpano13-2.9.21-r2.ebuild new file mode 100644 index 000000000000..1eed41af5ec4 --- /dev/null +++ b/media-libs/libpano13/libpano13-2.9.21-r2.ebuild @@ -0,0 +1,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 +} |