blob: 6aa7c2eaac3bed5b1beee723f62ef9b6ee082b44 (
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
62
|
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=5
inherit cmake-utils toolchain-funcs
DESCRIPTION="A powerful cross-platform raw image processing program"
HOMEPAGE="http://www.rawtherapee.com/"
SRC_URI="http://rawtherapee.com/shared/source/${P}.tar.xz"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="bzip2 openmp"
RDEPEND="bzip2? ( app-arch/bzip2 )
>=x11-libs/gtk+-2.24.18:2
>=dev-cpp/gtkmm-2.12:2.4
>=dev-cpp/glibmm-2.16:2
dev-libs/expat
dev-libs/libsigc++:2
media-libs/libcanberra[gtk]
media-libs/tiff
media-libs/libpng
media-libs/libiptcdata
media-libs/lcms:2
sci-libs/fftw:3.0
sys-libs/zlib
virtual/jpeg"
DEPEND="${RDEPEND}
app-arch/xz-utils
virtual/pkgconfig"
PATCHES=(
# Upstream patches for fixing build with current libstdc++
# A newer snapshot/version will make this unneeded
"${FILESDIR}"/${P}-cxx11.patch
"${FILESDIR}"/${P}-CVE-2015-3885.patch
"${FILESDIR}"/${P}-build-cxx11.patch
"${FILESDIR}"/${P}-build-cxx11-2.patch
"${FILESDIR}"/${P}-sigc26.patch
)
pkg_pretend() {
if use openmp ; then
tc-has-openmp || die "Please switch to an openmp compatible compiler"
fi
}
src_configure() {
local mycmakeargs=(
$(cmake-utils_use openmp OPTION_OMP)
$(cmake-utils_use_with bzip2 BZIP)
-DDOCDIR=/usr/share/doc/${PF}
-DCREDITSDIR=/usr/share/${PN}
-DLICENCEDIR=/usr/share/${PN}
-DCACHE_NAME_SUFFIX=""
)
cmake-utils_src_configure
}
|