blob: b72cb407f8d9222ca345c57bc52966e6a236bcd9 (
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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
|
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit cmake
DESCRIPTION="Image Blending with Multiresolution Splines"
HOMEPAGE="http://enblend.sourceforge.net/"
SRC_URI="https://dev.gentoo.org/~soap/distfiles/${P}.tar.xz"
LICENSE="GPL-2+ FDL-1.2+"
SLOT="0"
KEYWORDS="amd64 arm64 x86"
IUSE="cpu_flags_x86_sse2 debug doc openmp tcmalloc"
REQUIRED_USE="tcmalloc? ( !debug )"
BDEPEND="
sys-apps/help2man
virtual/pkgconfig
doc? (
dev-lang/perl
dev-perl/Readonly
dev-tex/hevea
gnome-base/librsvg
media-gfx/graphviz
media-gfx/transfig
sci-visualization/gnuplot[gd]
virtual/imagemagick-tools
virtual/latex-base
)
"
RDEPEND="
media-libs/lcms:2
media-libs/openexr:=
media-libs/tiff:0
media-libs/vigra[openexr]
sci-libs/gsl:=
debug? ( dev-libs/dmalloc )
tcmalloc? ( dev-util/google-perftools )
"
DEPEND="${RDEPEND}
>=dev-libs/boost-1.62.0
media-libs/libpng:0
virtual/jpeg:0
"
PATCHES=(
"${FILESDIR}"/${PN}-4.2-doc-install-dir-fix.patch
"${FILESDIR}"/${P}-cmake.patch
"${FILESDIR}"/${P}-gcc-10.patch
)
src_prepare() {
cmake_src_prepare
sed -i -e "s:share/doc/enblend:share/doc/${PF}:" doc/CMakeLists.txt || die
}
src_configure() {
local mycmakeargs=(
-DENABLE_SSE2=$(usex cpu_flags_x86_sse2)
-DENABLE_DMALLOC=$(usex debug)
-DDOC=$(usex doc)
-DENABLE_OPENMP=$(usex openmp)
-DENABLE_TCMALLOC=$(usex tcmalloc)
)
if use doc; then
-DINSTALL_HTML_DOC=ON
-DINSTALL_PDF_DOC=ON
fi
cmake_src_configure
}
src_compile() {
# To allow icon resizing with renderers (no way to disable)
addpredict /dev/dri
# To compile fonts in the temp directory
export VARTEXFONTS="${T}/fonts"
# forcing -j1 as every parallel compilation process needs about 1 GB RAM.
cmake_src_compile -j1
}
|