blob: 4167640a9e52fa63ca662acc21e8fd423d6f2c57 (
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
|
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit cmake multiprocessing
DESCRIPTION="Open framework for storing and sharing scene data"
HOMEPAGE="https://www.alembic.io/"
SRC_URI="https://github.com/${PN}/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="examples hdf5 prman test zlib"
RESTRICT="!test? ( test )"
REQUIRED_USE="hdf5? ( zlib )"
RDEPEND="
>=media-libs/openexr-2.5.0:=
hdf5? ( >=sci-libs/hdf5-1.10.2:=[zlib(+)] )
zlib? ( >=sys-libs/zlib-1.2.11-r1 )
"
DEPEND="${RDEPEND}"
BDEPEND=""
DOCS=( "ACKNOWLEDGEMENTS.txt" "FEEDBACK.txt" "NEWS.txt" "README.txt" )
PATCHES=( "${FILESDIR}/${PN}-1.7.11-0005-Fix-install-locations.patch" )
src_configure() {
local mycmakeargs=(
-DALEMBIC_SHARED_LIBS=ON
# C++-11 and thus {shared,unique,weak}_ptr are common nowadays, so these
# are no longer needed and using boost fails. Options will get removed by
# upstream soon
-DALEMBIC_LIB_USES_BOOST=OFF
-DALEMBIC_LIB_USES_TR1=OFF
-DUSE_ARNOLD=OFF
-DUSE_BINARIES=ON
-DUSE_EXAMPLES=$(usex examples)
-DUSE_HDF5=$(usex hdf5)
-DUSE_MAYA=OFF
-DUSE_PRMAN=$(usex prman)
-DUSE_PYALEMBIC=OFF
-DUSE_TESTS=$(usex test)
)
cmake_src_configure
}
pkg_postinst() {
if use prman; then
einfo "If you're looking for an ebuild for renderman, you may want to"
einfo "try the waebbl overlay: 'eselect repository enable waebbl'"
einfo "followed by 'emerge renderman'"
fi
}
|