blob: 42857d827fdc330609804447ebeaf7887568e7eb (
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
|
# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=6
inherit autotools flag-o-matic toolchain-funcs multilib-minimal
DESCRIPTION="ILM's OpenEXR high dynamic-range image file format libraries"
HOMEPAGE="http://openexr.com/"
SRC_URI="https://github.com/openexr/openexr/releases/download/v${PV}/${P}.tar.gz"
LICENSE="BSD"
SLOT="0/24" # based on SONAME
KEYWORDS="amd64 -arm arm64 ~hppa ~ia64 ~ppc ~ppc64 sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~x64-macos ~x86-solaris"
IUSE="cpu_flags_x86_avx examples static-libs"
RDEPEND="
>=media-libs/ilmbase-${PV}:=[${MULTILIB_USEDEP}]
sys-libs/zlib[${MULTILIB_USEDEP}]
"
DEPEND="${RDEPEND}
>=sys-devel/autoconf-archive-2016.09.16
virtual/pkgconfig[${MULTILIB_USEDEP}]
"
RESTRICT="test" # Tests broken upstream doesn't really care about them, bug #656680
DOCS=( AUTHORS ChangeLog NEWS README.md )
MULTILIB_WRAPPED_HEADERS=( /usr/include/OpenEXR/OpenEXRConfig.h )
PATCHES=(
"${FILESDIR}/${PN}-2.2.0-fix-cpuid-on-abi_x86_32.patch"
"${FILESDIR}/${PN}-2.2.0-fix-config.h-collision.patch"
"${FILESDIR}/${PN}-2.2.0-Install-missing-header-files.patch"
"${FILESDIR}/${P}-fix-build-system.patch"
# From Debian
"${FILESDIR}/${PN}-2.3.0-tests-32bits.patch"
"${FILESDIR}/${PN}-2.3.0-skip-bogus-tests.patch"
"${FILESDIR}/${PN}-2.3.0-bigendian.patch"
"${FILESDIR}/${PN}-2.3.0-bigendian2.patch"
"${FILESDIR}/${PN}-2.3.0-tests-32bits-2.patch"
)
src_prepare() {
default
# Fix path for testsuite
sed -i -e "s:/var/tmp/:${T}:" IlmImfTest/tmpDir.h || die
eautoreconf
}
multilib_src_configure() {
local myeconfargs=(
--disable-imffuzztest
--disable-imfhugetest
--enable-threading
$(use_enable cpu_flags_x86_avx avx)
$(use_enable examples imfexamples)
$(use_enable static-libs static)
)
# TODO: check if this still applies on updates!
# internal tool dwaLookup fails to run when linked with gold linker
tc-ld-disable-gold
ECONF_SOURCE="${S}" econf "${myeconfargs[@]}"
}
multilib_src_install_all() {
einstalldocs
if use examples; then
docompress -x /usr/share/doc/${PF}/examples
else
rm -rf "${ED%/}"/usr/share/doc/${PF}/examples || die
fi
find "${D}" -name '*.la' -type f -delete || die
}
|