diff options
Diffstat (limited to 'media-gfx/alembic')
-rw-r--r-- | media-gfx/alembic/Manifest | 8 | ||||
-rw-r--r-- | media-gfx/alembic/alembic-1.7.9.ebuild | 107 | ||||
-rw-r--r-- | media-gfx/alembic/files/alembic-1.7.9-CMakeLists-fix_lib.patch | 189 | ||||
-rw-r--r-- | media-gfx/alembic/files/alembic-1.7.9-find-pyilmbase-python-module.patch | 13 | ||||
-rw-r--r-- | media-gfx/alembic/files/alembic-1.7.9-fix-python-import.patch | 30 | ||||
-rw-r--r-- | media-gfx/alembic/files/alembic-1.7.9-prman.patch | 26 | ||||
-rw-r--r-- | media-gfx/alembic/metadata.xml | 18 |
7 files changed, 389 insertions, 2 deletions
diff --git a/media-gfx/alembic/Manifest b/media-gfx/alembic/Manifest index 838897c5cd58..435a73fa065a 100644 --- a/media-gfx/alembic/Manifest +++ b/media-gfx/alembic/Manifest @@ -1,6 +1,12 @@ +AUX alembic-1.7.9-CMakeLists-fix_lib.patch 7317 BLAKE2B 8739f5808cb8821cf8404dcbd492620bd1b0fc4ac09600f345a89b813d07e24fb305a5615a9d58b11ae36f7754a9527bf583586017d1018eff658760370f9777 SHA512 000d31ffd5c5843a33532fbf02c2410cbeb7504fd89d9133f4a91d435682572df0cee7d59f039b0e32e98c05df7685ac2a3880630cebd6782e38161a8bca4c31 +AUX alembic-1.7.9-find-pyilmbase-python-module.patch 542 BLAKE2B 448114ef30e6131229b6e789af7a231e766e2584c64eca9f4e09cd7bae8555d1c9f00b62c3e53136fa20be25530ed15019ea5f55a32ee286b925b726678092fb SHA512 4dfef7da97b1fe82b7c210ff8cfc7e664d56b7379dde0246ab18311fc28188dd59251b745644f75debaffe9e5eeff61c965ee9bcf6102ff6f50af7f9db4c8a2e +AUX alembic-1.7.9-fix-python-import.patch 1254 BLAKE2B 091d7fa6b55508425b7017f2bc7832e798ccdf65beb885ad0db9e13e8685458696fcc05dc76477a14907799755aeaf71ca748a14452abb0747df210f549a7604 SHA512 e62bbcf20028c57c41b935e49e947f02905e390fbf0788c668b9a517813bbc259f266f9d14fc2197884d9632739eda7d412267aba44a8c7495125c2f06a184d5 +AUX alembic-1.7.9-prman.patch 822 BLAKE2B ed5faf9b8e4eb165b82a5001b129403ce0afcb00c448ce011889d8672ea0df1d666839ff0d515b86bdf01304f0605312bd317140944fc59cbd0fbadab7240655 SHA512 59060bb8b29d2c5e0e2003115e6fecc7744bc11c39419486e3743e810f85256c66af6976b5764cfce04fd87c8b715939ce382e252999ff26a3ad06df2c3550dd AUX alembic-CMakeLists-fix_lib.patch 4760 BLAKE2B a5365176200b40a31d274bab9ef126cb0ea380c6afeb2ec152bc5edd4c7abb0cbc514a5324ff6df6ad791b585af8cc48984e0eaaf12f1abd2629d405e39c6e18 SHA512 5ef90e477ceeddd9a1040c024e3775141d693b99361dc3d943ee6014c700b13a2ef8d83d60e53cf32611c828bd1f7b789544468fec97cc4b56963338b3fc604a AUX alembic-FindIlmBase-pkgconfig.patch 971 BLAKE2B 946766bceb152a1673737af5158be9f5efce812a70adfe36bf5642f150d2576f14c22670cc1bbf9027834c69ac661ca30d27f06f9fbf73f656dd883ce38a381f SHA512 4f5fa5a33c8fb4edcb3c0a5d0290a912015c0e02ecd6340e5dced1f658302034148a1050aee1dcbf3d7d89f11c5e9ea07637c659414951152dd49081c70560c7 AUX alembic-fix-importerror.patch 662 BLAKE2B 140f80ff08522ec84a43cb5e988e7e532b2391a002e0aedbd9276d2c3ef34570bb07ec78e470eb3eadc0b9c719263030d0074dd839e37a6ea19de88f5b5cd001 SHA512 a97c3d6854cc9aabfaeaf6ac62669f1ada78edf7ded8ab9cfd7e0b7077288f16cb1537196a14d62f4cdda33ef3c65ff640ff6250a3f40e499eab72913c099efd DIST alembic-1.7.4.tar.gz 805503 BLAKE2B b8a8b986d0323dbe3748e1dde5436d66e08620a28852c3331ee612d43a414e381a1cdbbb63200b8f146ce94ebb0e3d0ae6f70f33575bd9ff25e9121f2cd73d1a SHA512 8e752d6d85bea3b6a53582d35a589fc40824456098d950974effe0a6a0e359fec1e056af1ea1379f7e23b7ffed2c05c7f5269fa4b64757631b7d57fb60ee98b0 +DIST alembic-1.7.9.tar.gz 813379 BLAKE2B 599edeb5ad805656755b3e150fba56182d1d60673951b0c1702b3e3e82d9499ec4fcb938303103c27f84458f61ab8de4b872eaa322380ae7713e3b4cd3831af7 SHA512 8025c20525ffbd5bdc9dd5a33ad8238e49f063d244ab9d112e7d1ddb7ee7cf9b36ceb74cb45d658ce22d3033552c89bddf6b818cf466ea46aa1a70a41fdeddb2 EBUILD alembic-1.7.4.ebuild 2398 BLAKE2B b22d682575c1bd1a75f073d6ad82e92e39bfbd15439848ee9b00ce434a366e1fa0dac7fbb3d079a8dacc6cb088c7d21cbee887d9f1d5f1ffb3d7f65728b1fd26 SHA512 9e9d10622ccda6a79d3bd69a5d5441c9a2612ff9e4ed67c1e80e4a03e270e887860e92f355d057715f62faa8ecba7bb7f5eeeea2f98e0c8d922b90e43e57cf31 -MISC metadata.xml 1044 BLAKE2B e671e00836fe612f62c5548685c4149705e9081ac79c8df895ea37568d10f10cffe042ad3b67c9c29ffdaa3a5fa8b996dbffdffb765f7cce4bf9c792e01753ff SHA512 6adc2cae7c93307f0ed926fa9a0c666ec1484005af80e1239e6b4718d771f32defb2824715783cb906b2fec1becbf76e116fdf6610a75a1740641ecb96932d61 +EBUILD alembic-1.7.9.ebuild 3063 BLAKE2B 5d4c244b3c514a177fcb90e855911fbbc7f765a9a3bd7ecc384913f33cd9c2e08ea2818e6ed6ad2f2b0c0e1543b335994468f56462fa38b08dc692e69169a0f3 SHA512 fb52f995805883489d0359b587fcdb12316c40092d5a5647f2f6775fae9ea03a811322ff66ff00920dd1b4f2099dcfa535d85da72edec6c364a503d76eef16aa +MISC metadata.xml 1489 BLAKE2B 436a0537ec36495d3c87ced52ed779f60646d57df10e6f04c65d7037f169f865ecc18f4fef2c5b109352427af25206a7ef5913be4e16ef5e6115015aec22fca3 SHA512 91e4fb6528e65716926ef053712f40dcb8d8de4337653edc7f562419c227c4adc4c6837d8790bfdfee2330e90d9e31185f7265b74cba21599e1e4d21b80a82f5 diff --git a/media-gfx/alembic/alembic-1.7.9.ebuild b/media-gfx/alembic/alembic-1.7.9.ebuild new file mode 100644 index 000000000000..638b12a639b9 --- /dev/null +++ b/media-gfx/alembic/alembic-1.7.9.ebuild @@ -0,0 +1,107 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +PYTHON_COMPAT=( python2_7 ) + +inherit cmake-utils python-single-r1 + +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" +# TODO: ~x86 currently depends on new =dev-python/pyilmbase-2.3.0 which has +# ~x86 keyword. As soon as it's updated in the tree, the keyword can be +# added here. +KEYWORDS="~amd64" +IUSE="arnold +boost doc examples hdf5 maya prman python test zlib" + +# pyalembic python bindings need boost +REQUIRED_USE=" + ${PYTHON_REQUIRED_USE} + hdf5? ( zlib ) + python? ( boost ) +" + +RDEPEND=" + ${PYTHON_DEPS} + >=media-libs/openexr-2.2.0-r2:= + boost? ( >=dev-libs/boost-1.65.0:=[python,${PYTHON_USEDEP}] ) + hdf5? ( >=sci-libs/hdf5-1.8.18[zlib(+)] ) + python? ( >=dev-python/pyilmbase-2.2.0[${PYTHON_USEDEP}] ) + zlib? ( >=sys-libs/zlib-1.2.11-r1 ) +" +DEPEND=" + ${RDEPEND} + >=dev-util/cmake-3.9.6 + doc? ( >=app-doc/doxygen-1.8.13-r1 ) +" + +DOCS=( "ACKNOWLEDGEMENTS.txt" "FEEDBACK.txt" "NEWS.txt" "README.txt" ) + +PATCHES=( + "${FILESDIR}/${PN}-FindIlmBase-pkgconfig.patch" + "${FILESDIR}/${P}-CMakeLists-fix_lib.patch" + "${FILESDIR}/${P}-prman.patch" + "${FILESDIR}/${P}-fix-python-import.patch" + "${FILESDIR}/${P}-find-pyilmbase-python-module.patch" +) + +src_configure() { + local mycmakeargs=( + -DALEMBIC_SHARED_LIBS=ON + # The CMakeLists.txt file needs C++11 or C++-0x if none of them + # is defined + -DALEMBIC_LIB_USES_BOOST=$(usex boost) + -DALEMBIC_LIB_USES_TR1=$(usex !boost) + -DUSE_ARNOLD=$(usex arnold) + -DUSE_BINARIES=ON + -DUSE_EXAMPLES=$(usex examples) + -DUSE_HDF5=$(usex hdf5) + -DUSE_MAYA=$(usex maya) + -DUSE_PRMAN=$(usex prman) + -DUSE_PYALEMBIC=$(usex python) + -DUSE_TESTS=$(usex test) + ) + cmake-utils_src_configure +} + +src_compile() { + cmake-utils_src_compile + if use doc; then + doxygen -u Doxyfile || die + doxygen Doxyfile || die + fi +} + +src_install() { + use doc && local HTML_DOCS=( doc/html/. ) + cmake-utils_src_install +} + +pkg_postinst() { + if use arnold; then + einfo "NOTE: The arnold plugin is highly experimental and hasn't been" + einfo "tested, due to missing license. If you have trouble compiling" + einfo "or running it, please file a bug report for the package at" + einfo "Gentoo's bugzilla." + fi + if use maya; then + einfo "NOTE: The maya plugin is highly experimental and hasn't been" + einfo "tested, due to missing license. If you have trouble compiling" + einfo "or running it, please file a bug report for the package at" + einfo "Gentoo's bugzilla." + fi + if use prman; then + einfo "NOTE: The renderman plugin is still experimental and has not" + einfo "been tested much. If you have trouble running it, please file" + einfo "a bug report for the package at Gentoo's bugzilla." + 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 +} diff --git a/media-gfx/alembic/files/alembic-1.7.9-CMakeLists-fix_lib.patch b/media-gfx/alembic/files/alembic-1.7.9-CMakeLists-fix_lib.patch new file mode 100644 index 000000000000..06ebf60b0d67 --- /dev/null +++ b/media-gfx/alembic/files/alembic-1.7.9-CMakeLists-fix_lib.patch @@ -0,0 +1,189 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 298f4be..18b3ff5 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -80,12 +80,12 @@ OPTION(ALEMBIC_LIB_USES_TR1 + + # Set static/dynamic build options + SET(LIB_TYPE STATIC) +-SET(RUNTIME_INSTALL_DIR lib) +-SET(LIBRARY_INSTALL_DIR lib) +-SET(ARCHIVE_INSTALL_DIR lib) ++SET(RUNTIME_INSTALL_DIR lib${LIB_SUFFIX}) ++SET(LIBRARY_INSTALL_DIR lib${LIB_SUFFIX}) ++SET(ARCHIVE_INSTALL_DIR lib${LIB_SUFFIX}) + IF (ALEMBIC_SHARED_LIBS) + SET(LIB_TYPE SHARED) +- SET(ARCHIVE_INSTALL_DIR lib) ++ SET(ARCHIVE_INSTALL_DIR lib${LIB_SUFFIX}) + IF (WIN32) + ADD_DEFINITIONS(-DALEMBIC_DLL) + ENDIF() +diff --git a/arnold/Procedural/CMakeLists.txt b/arnold/Procedural/CMakeLists.txt +index 69e00da..47ccf66 100644 +--- a/arnold/Procedural/CMakeLists.txt ++++ b/arnold/Procedural/CMakeLists.txt +@@ -60,7 +60,7 @@ TARGET_LINK_LIBRARIES( AlembicArnoldProcedural Alembic::Alembic) + + set_target_properties(AlembicArnoldProcedural PROPERTIES + INSTALL_RPATH_USE_LINK_PATH TRUE +- INSTALL_RPATH ${CMAKE_INSTALL_PREFIX}/lib) ++ INSTALL_RPATH ${CMAKE_INSTALL_PREFIX}/lib${LIB_SUFFIX}) + + INSTALL ( TARGETS + AlembicArnoldProcedural +diff --git a/bin/AbcConvert/CMakeLists.txt b/bin/AbcConvert/CMakeLists.txt +index 451409c..c882971 100644 +--- a/bin/AbcConvert/CMakeLists.txt ++++ b/bin/AbcConvert/CMakeLists.txt +@@ -38,6 +38,6 @@ TARGET_LINK_LIBRARIES(abcconvert Alembic::Alembic) + + set_target_properties(abcconvert PROPERTIES + INSTALL_RPATH_USE_LINK_PATH TRUE +- INSTALL_RPATH ${CMAKE_INSTALL_PREFIX}/lib) ++ INSTALL_RPATH ${CMAKE_INSTALL_PREFIX}/lib${LIB_SUFFIX}) + + INSTALL(TARGETS abcconvert DESTINATION bin) +diff --git a/bin/AbcDiff/CMakeLists.txt b/bin/AbcDiff/CMakeLists.txt +index 511864a..bed92b2 100644 +--- a/bin/AbcDiff/CMakeLists.txt ++++ b/bin/AbcDiff/CMakeLists.txt +@@ -38,6 +38,6 @@ TARGET_LINK_LIBRARIES(abcdiff Alembic::Alembic) + + set_target_properties(abcdiff PROPERTIES + INSTALL_RPATH_USE_LINK_PATH TRUE +- INSTALL_RPATH ${CMAKE_INSTALL_PREFIX}/lib) ++ INSTALL_RPATH ${CMAKE_INSTALL_PREFIX}/lib${LIB_SUFFIX}) + + INSTALL(TARGETS abcdiff DESTINATION bin) +diff --git a/bin/AbcEcho/CMakeLists.txt b/bin/AbcEcho/CMakeLists.txt +index be5f5c1..eca449a 100644 +--- a/bin/AbcEcho/CMakeLists.txt ++++ b/bin/AbcEcho/CMakeLists.txt +@@ -41,6 +41,6 @@ TARGET_LINK_LIBRARIES(abcechobounds Alembic::Alembic) + + set_target_properties(abcecho abcechobounds PROPERTIES + INSTALL_RPATH_USE_LINK_PATH TRUE +- INSTALL_RPATH ${CMAKE_INSTALL_PREFIX}/lib) ++ INSTALL_RPATH ${CMAKE_INSTALL_PREFIX}/lib${LIB_SUFFIX}) + + INSTALL(TARGETS abcecho abcechobounds DESTINATION bin) +diff --git a/bin/AbcLs/CMakeLists.txt b/bin/AbcLs/CMakeLists.txt +index 815f84f..92f83c4 100644 +--- a/bin/AbcLs/CMakeLists.txt ++++ b/bin/AbcLs/CMakeLists.txt +@@ -39,6 +39,6 @@ TARGET_LINK_LIBRARIES(abcls Alembic::Alembic) + + set_target_properties(abcls PROPERTIES + INSTALL_RPATH_USE_LINK_PATH TRUE +- INSTALL_RPATH ${CMAKE_INSTALL_PREFIX}/lib) ++ INSTALL_RPATH ${CMAKE_INSTALL_PREFIX}/lib${LIB_SUFFIX}) + + INSTALL(TARGETS abcls DESTINATION bin) +diff --git a/bin/AbcStitcher/CMakeLists.txt b/bin/AbcStitcher/CMakeLists.txt +index a963420..a84e00b 100644 +--- a/bin/AbcStitcher/CMakeLists.txt ++++ b/bin/AbcStitcher/CMakeLists.txt +@@ -38,6 +38,6 @@ TARGET_LINK_LIBRARIES(abcstitcher Alembic::Alembic) + + set_target_properties(abcstitcher PROPERTIES + INSTALL_RPATH_USE_LINK_PATH TRUE +- INSTALL_RPATH ${CMAKE_INSTALL_PREFIX}/lib) ++ INSTALL_RPATH ${CMAKE_INSTALL_PREFIX}/lib${LIB_SUFFIX}) + + INSTALL(TARGETS abcstitcher DESTINATION bin) +diff --git a/bin/AbcTree/CMakeLists.txt b/bin/AbcTree/CMakeLists.txt +index b4f65f1..74225ac 100644 +--- a/bin/AbcTree/CMakeLists.txt ++++ b/bin/AbcTree/CMakeLists.txt +@@ -38,6 +38,6 @@ TARGET_LINK_LIBRARIES(abctree Alembic::Alembic) + + set_target_properties(abctree PROPERTIES + INSTALL_RPATH_USE_LINK_PATH TRUE +- INSTALL_RPATH ${CMAKE_INSTALL_PREFIX}/lib) ++ INSTALL_RPATH ${CMAKE_INSTALL_PREFIX}/lib${LIB_SUFFIX}) + + INSTALL(TARGETS abctree DESTINATION bin) +diff --git a/lib/Alembic/CMakeLists.txt b/lib/Alembic/CMakeLists.txt +index fb3def8..d5bbcec 100644 +--- a/lib/Alembic/CMakeLists.txt ++++ b/lib/Alembic/CMakeLists.txt +@@ -84,7 +84,7 @@ IF ( ${ALEMBIC_LIB_USES_TR1} AND CMAKE_COMPILER_IS_GNUCXX AND + TARGET_LINK_LIBRARIES( Alembic atomic ) + ENDIF() + +-SET( ALEMBIC_LIB_INSTALL_DIR lib CACHE PATH "Where to install the Alembic libs") ++SET( ALEMBIC_LIB_INSTALL_DIR lib${LIB_SUFFIX} CACHE PATH "Where to install the Alembic libs") + INSTALL(TARGETS Alembic + EXPORT AlembicTargets + LIBRARY DESTINATION ${ALEMBIC_LIB_INSTALL_DIR} +@@ -117,7 +117,7 @@ EXPORT(TARGETS + Alembic:: + ) + +-SET(ConfigPackageLocation lib/cmake/Alembic CACHE PATH ++SET(ConfigPackageLocation lib${LIB_SUFFIX}/cmake/Alembic CACHE PATH + "Where to install the Alembic's cmake files") + + INSTALL(FILES +diff --git a/maya/AbcExport/CMakeLists.txt b/maya/AbcExport/CMakeLists.txt +index 50d2fd2..f8bc850 100644 +--- a/maya/AbcExport/CMakeLists.txt ++++ b/maya/AbcExport/CMakeLists.txt +@@ -77,7 +77,7 @@ TARGET_LINK_LIBRARIES(AbcExport + + set_target_properties(AbcExport PROPERTIES + INSTALL_RPATH_USE_LINK_PATH TRUE +- INSTALL_RPATH ${CMAKE_INSTALL_PREFIX}/lib) ++ INSTALL_RPATH ${CMAKE_INSTALL_PREFIX}/lib${LIB_SUFFIX}) + + INSTALL(TARGETS AbcExport + DESTINATION ${ALEMBIC_MAYA_PLUGINS_INSTALL_DIR}) +diff --git a/maya/AbcImport/CMakeLists.txt b/maya/AbcImport/CMakeLists.txt +index 6826183..e71e612 100644 +--- a/maya/AbcImport/CMakeLists.txt ++++ b/maya/AbcImport/CMakeLists.txt +@@ -81,7 +81,7 @@ TARGET_LINK_LIBRARIES(AbcImport + + set_target_properties(AbcImport PROPERTIES + INSTALL_RPATH_USE_LINK_PATH TRUE +- INSTALL_RPATH ${CMAKE_INSTALL_PREFIX}/lib) ++ INSTALL_RPATH ${CMAKE_INSTALL_PREFIX}/lib${LIB_SUFFIX}) + + INSTALL(TARGETS AbcImport + DESTINATION ${ALEMBIC_MAYA_PLUGINS_INSTALL_DIR}) +diff --git a/prman/Procedural/CMakeLists.txt b/prman/Procedural/CMakeLists.txt +index 6b46e91..3635bcc 100644 +--- a/prman/Procedural/CMakeLists.txt ++++ b/prman/Procedural/CMakeLists.txt +@@ -60,7 +60,7 @@ TARGET_LINK_LIBRARIES(AlembicRiProcedural Alembic::Alembic) + + set_target_properties(AlembicRiProcedural PROPERTIES + INSTALL_RPATH_USE_LINK_PATH TRUE +- INSTALL_RPATH ${CMAKE_INSTALL_PREFIX}/lib) ++ INSTALL_RPATH ${CMAKE_INSTALL_PREFIX}/lib${LIB_SUFFIX}) + + INSTALL(TARGETS + AlembicRiProcedural +diff --git a/python/PyAlembic/CMakeLists.txt b/python/PyAlembic/CMakeLists.txt +index 91c45c4..c87eec6 100644 +--- a/python/PyAlembic/CMakeLists.txt ++++ b/python/PyAlembic/CMakeLists.txt +@@ -128,7 +128,7 @@ IF (Boost_PYTHON_LIBRARY AND ALEMBIC_PYTHON_LIBRARY) + ) + + SET( ALEMBIC_PYTHON_INSTALL_DIR +- lib/python${PYTHON_VERSION_MAJOR}.${PYTHON_VERSION_MINOR}/site-packages ++ lib${LIB_SUFFIX}/python${PYTHON_VERSION_MAJOR}.${PYTHON_VERSION_MINOR}/site-packages + CACHE PATH + "Alembic's python bindings install directory" + ) +@@ -143,7 +143,7 @@ IF (Boost_PYTHON_LIBRARY AND ALEMBIC_PYTHON_LIBRARY) + + set_target_properties(alembic PROPERTIES + INSTALL_RPATH_USE_LINK_PATH TRUE +- INSTALL_RPATH ${CMAKE_INSTALL_PREFIX}/lib) ++ INSTALL_RPATH ${CMAKE_INSTALL_PREFIX}/lib${LIB_SUFFIX}) + ELSE() + MESSAGE(FATAL_ERROR "Unable to find Python libs") + ENDIF() diff --git a/media-gfx/alembic/files/alembic-1.7.9-find-pyilmbase-python-module.patch b/media-gfx/alembic/files/alembic-1.7.9-find-pyilmbase-python-module.patch new file mode 100644 index 000000000000..4acdc5d7d885 --- /dev/null +++ b/media-gfx/alembic/files/alembic-1.7.9-find-pyilmbase-python-module.patch @@ -0,0 +1,13 @@ +diff --git a/cmake/Modules/FindPyIlmBase.cmake b/cmake/Modules/FindPyIlmBase.cmake +index 5cb9108..c3f80a2 100644 +--- a/cmake/Modules/FindPyIlmBase.cmake ++++ b/cmake/Modules/FindPyIlmBase.cmake +@@ -44,7 +44,7 @@ ELSE() + SET(ALEMBIC_PYILMBASE_ROOT NOTFOUND) + ELSE() + # TODO: set to default install path when shipping out +- SET(ALEMBIC_PYILMBASE_ROOT "/usr/local/pyilmbase/") ++ SET(ALEMBIC_PYILMBASE_ROOT "/usr") + ENDIF() + ELSE() + IF (${WINDOWS}) diff --git a/media-gfx/alembic/files/alembic-1.7.9-fix-python-import.patch b/media-gfx/alembic/files/alembic-1.7.9-fix-python-import.patch new file mode 100644 index 000000000000..ca8bedef57ac --- /dev/null +++ b/media-gfx/alembic/files/alembic-1.7.9-fix-python-import.patch @@ -0,0 +1,30 @@ +diff --git a/cmake/Modules/FindPyIlmBase.cmake b/cmake/Modules/FindPyIlmBase.cmake +index c677549..5cb9108 100644 +--- a/cmake/Modules/FindPyIlmBase.cmake ++++ b/cmake/Modules/FindPyIlmBase.cmake +@@ -60,11 +60,11 @@ ELSE() + + SET(LIBRARY_PATHS + ${ALEMBIC_PYILMBASE_ROOT}/lib +- ${ALEMBIC_PYILMBASE_MODULE_DIRECTORY} ++# ${ALEMBIC_PYILMBASE_MODULE_DIRECTORY} # this is defined nowhere + ~/Library/Frameworks + /Library/Frameworks +- /usr/local/lib +- /usr/lib ++ /usr/local/lib${LIB_SUFFIX} ++ /usr/lib${LIB_SUFFIX} + /sw/lib + /opt/local/lib + /opt/csw/lib +@@ -118,8 +118,8 @@ ELSE() + FIND_PATH(ALEMBIC_PYIMATH_MODULE_DIRECTORY imathmodule.so + PATHS + ${LIBRARY_PATHS} +- /usr/local/lib/python${PYTHON_VERSION_MAJOR}.${PYTHON_VERSION_MINOR}/site-packages +- ${ALEMBIC_PYILMBASE_ROOT}/lib64/python${PYTHON_VERSION_MAJOR}.${PYTHON_VERSION_MINOR}/site-packages ++ /usr/local/lib${LIB_SUFFIX}/python${PYTHON_VERSION_MAJOR}.${PYTHON_VERSION_MINOR}/site-packages ++ ${ALEMBIC_PYILMBASE_ROOT}/lib${LIB_SUFFIX}/python${PYTHON_VERSION_MAJOR}.${PYTHON_VERSION_MINOR}/site-packages + DOC "The imathmodule.so module directory" + ) + diff --git a/media-gfx/alembic/files/alembic-1.7.9-prman.patch b/media-gfx/alembic/files/alembic-1.7.9-prman.patch new file mode 100644 index 000000000000..cfd299c79bb0 --- /dev/null +++ b/media-gfx/alembic/files/alembic-1.7.9-prman.patch @@ -0,0 +1,26 @@ +diff --git a/cmake/AlembicPRMan.cmake b/cmake/AlembicPRMan.cmake +index e02b237..fdbf26c 100644 +--- a/cmake/AlembicPRMan.cmake ++++ b/cmake/AlembicPRMan.cmake +@@ -66,8 +66,8 @@ ELSE() + ENDIF() + + # Prefer PRMAN_ROOT set from the environment over the CMakeCache'd variable +-IF(NOT $ENV{PRMAN_ROOT}x STREQUAL "x") +- SET( ALEMBIC_PRMAN_ROOT $ENV{PRMAN_ROOT}) ++IF(NOT $ENV{RMANTREE}x STREQUAL "x") ++ SET( ALEMBIC_PRMAN_ROOT $ENV{RMANTREE}) + ENDIF() + + +diff --git a/prman/Procedural/CMakeLists.txt b/prman/Procedural/CMakeLists.txt +index 6b46e91..0cb2aa6 100644 +--- a/prman/Procedural/CMakeLists.txt ++++ b/prman/Procedural/CMakeLists.txt +@@ -65,5 +65,5 @@ set_target_properties(AlembicRiProcedural PROPERTIES + INSTALL(TARGETS + AlembicRiProcedural + DESTINATION +- prman/procedurals ++ $ENV{RMANTREE}/lib/plugins + ) diff --git a/media-gfx/alembic/metadata.xml b/media-gfx/alembic/metadata.xml index 3d75399517fe..30e01e315c7e 100644 --- a/media-gfx/alembic/metadata.xml +++ b/media-gfx/alembic/metadata.xml @@ -14,9 +14,25 @@ developed by Sony Pictures Imageworks Inc. and Lucasfilm Ltd. </longdescription> <use> + <flag name="arnold"> + Add support for arnold renderer (experimental) + </flag> <flag name="boost">Use <pkg>dev-libs/boost</pkg> library</flag> + <flag name="examples">Install alembic examples</flag> <flag name="hdf5">Add support <pkg>sci-libs/hdf5</pkg></flag> - <flag name="pyalembic">Build pyalembic python bindings (needs <pkg>dev-python/pyilmbase</pkg>)</flag> + <flag name="maya"> + Compile Alembic plugin for Maya (experimental) + </flag> + <flag name="prman"> + Compile Alembic plugin for Renderman (experimental) + </flag> + <flag name="pyalembic"> + <!-- renamed to python in 1.7.9 --> + Build pyalembic python bindings (needs <pkg>dev-python/pyilmbase</pkg>) + </flag> + <flag name="python"> + Build pyalembic python bindings (needs <pkg>dev-python/pyilmbase</pkg>) + </flag> <flag name="test">Build and run the test-suite</flag> <flag name="zlib">Use <pkg>sys-libs/zlib</pkg> for compressions</flag> </use> |