You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
43 lines
1.0 KiB
43 lines
1.0 KiB
# Copyright 1999-2021 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=7
|
|
|
|
CMAKE_ECLASS=cmake
|
|
inherit cmake-multilib flag-o-matic
|
|
|
|
DESCRIPTION="OpenEXR ILM Base libraries"
|
|
HOMEPAGE="https://www.openexr.com/"
|
|
SRC_URI="https://github.com/AcademySoftwareFoundation/openexr/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
|
|
|
LICENSE="BSD"
|
|
SLOT="0/25" # based on SONAME
|
|
KEYWORDS="amd64 ~arm arm64 hppa ~ia64 ~mips ppc ppc64 sparc x86 ~amd64-linux ~x86-linux ~x64-macos ~x86-solaris"
|
|
IUSE="large-stack static-libs test"
|
|
RESTRICT="!test? ( test )"
|
|
|
|
BDEPEND="virtual/pkgconfig"
|
|
|
|
S="${WORKDIR}/openexr-${PV}/IlmBase"
|
|
|
|
DOCS=( README.md )
|
|
|
|
src_prepare() {
|
|
if use abi_x86_32; then
|
|
eapply "${FILESDIR}"/${PN}-2.5.4-0001-disable-failing-test-on-x86_32.patch
|
|
fi
|
|
|
|
multilib_foreach_abi cmake_src_prepare
|
|
}
|
|
|
|
multilib_src_configure() {
|
|
local mycmakeargs=(
|
|
-DBUILD_TESTING=$(usex test)
|
|
-DILMBASE_BUILD_BOTH_STATIC_SHARED=$(usex static-libs)
|
|
-DILMBASE_ENABLE_LARGE_STACK=$(usex large-stack)
|
|
-DILMBASE_INSTALL_PKG_CONFIG=ON
|
|
)
|
|
|
|
cmake_src_configure
|
|
}
|