Created
April 19, 2020 17:28
-
-
Save brothermechanic/e296e92d930873948c7f34290ded9b2c to your computer and use it in GitHub Desktop.
bin/cg/media-libs/openusd/openusd-9999.ebuild
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Copyright 1999-2020 Gentoo Foundation | |
# Distributed under the terms of the GNU General Public License v2 | |
EAPI=6 | |
PYTHON_COMPAT=( python3_{7,8} ) | |
inherit git-r3 cmake-utils python-single-r1 flag-o-matic | |
DESCRIPTION="Universal Scene Description" | |
HOMEPAGE="http://www.openusd.org" | |
EGIT_REPO_URI="https://github.com/PixarAnimationStudios/USD.git" | |
EGIT_COMMIT="4b11629" | |
LICENSE="Apache-2.0" | |
SLOT="0" | |
KEYWORDS="amd64" | |
IUSE="python" | |
REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" | |
RDEPEND=" | |
>=dev-libs/boost-1.72:= | |
python? ( | |
${PYTHON_DEPS} | |
$(python_gen_cond_dep ' | |
>=dev-libs/boost-1.72:=[python,${PYTHON_MULTI_USEDEP}] | |
') | |
)" | |
DEPEND="${RDEPEND} | |
virtual/pkgconfig" | |
PATCHES=( | |
"${FILESDIR}/usd.diff" | |
"${FILESDIR}/install.diff" | |
) | |
pkg_setup() { | |
use python && python-single-r1_pkg_setup | |
} | |
src_configure() { | |
local mycmakeargs=( | |
-DCMAKE_INSTALL_PREFIX=/usr | |
-DPXR_SET_INTERNAL_NAMESPACE=usdBlender | |
-DPXR_ENABLE_PYTHON_SUPPORT=OFF | |
-DPXR_BUILD_IMAGING=OFF | |
-DPXR_BUILD_TESTS=OFF | |
-DBUILD_SHARED_LIBS=ON | |
-DPXR_BUILD_MONOLITHIC=ON | |
-DPXR_BUILD_USD_TOOLS=OFF | |
-DCMAKE_DEBUG_POSTFIX=_d | |
) | |
cmake-utils_src_configure | |
} | |
src_install() { | |
cmake-utils_src_install | |
mv ${D}/plugin ${D}/pxrConfig.cmake ${D}/usr/share/usd/ || die | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment