-# Copyright 1999-2017 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
-EAPI=5
-inherit cmake-utils eutils versionator
+EAPI=6
+
+inherit cmake-utils
DESCRIPTION="SIFT algorithm for automatic panorama creation in C"
HOMEPAGE="http://hugin.sourceforge.net/ http://user.cs.tu-berlin.de/~nowozin/autopano-sift/"
KEYWORDS="amd64 x86"
IUSE=""
-S=${WORKDIR}/${PN}-"$(get_version_component_range 1-3)"
-
-RDEPEND="!media-gfx/autopano-sift
+DEPEND="
dev-libs/libxml2
media-libs/libpano13:0=
media-libs/libpng:0=
media-libs/tiff:0=
sys-libs/zlib
virtual/jpeg:0"
-DEPEND="${RDEPEND}"
+RDEPEND="${DEPEND}
+ !media-gfx/autopano-sift
+"
PATCHES=( "${FILESDIR}"/${P}-lm.patch )
Link against -lm (mathlib) because ScaleSpace.c (which is part of the internal libsift.a)
is using the exp() function, see http://bugs.gentoo.org/472150
---- CMakeLists.txt
-+++ CMakeLists.txt
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
@@ -121,7 +121,7 @@
ADD_LIBRARY(libsift STATIC ${LIBSIFT_SOURCES})