diff options
Diffstat (limited to 'media-gfx/alembic/files')
-rw-r--r-- | media-gfx/alembic/files/alembic-1.7.9-find-boost-python-for-cmake-ge-3.11.patch | 20 | ||||
-rw-r--r-- | media-gfx/alembic/files/alembic-1.7.9-fix-boost-python-naming.patch | 17 |
2 files changed, 37 insertions, 0 deletions
diff --git a/media-gfx/alembic/files/alembic-1.7.9-find-boost-python-for-cmake-ge-3.11.patch b/media-gfx/alembic/files/alembic-1.7.9-find-boost-python-for-cmake-ge-3.11.patch new file mode 100644 index 000000000000..d8abfce72f57 --- /dev/null +++ b/media-gfx/alembic/files/alembic-1.7.9-find-boost-python-for-cmake-ge-3.11.patch @@ -0,0 +1,20 @@ +diff --git a/cmake/AlembicBoost.cmake b/cmake/AlembicBoost.cmake +index 21b3515..ba6f396 100644 +--- a/cmake/AlembicBoost.cmake ++++ b/cmake/AlembicBoost.cmake +@@ -79,7 +79,14 @@ IF (USE_PYALEMBIC AND APPLE) + ENDIF() + + IF (USE_PYALEMBIC) +- FIND_PACKAGE(Boost 1.42.0 COMPONENTS program_options python) ++ # At least cmake-3.11 has introduced a new syntax while looking for ++ # boost python libraries. It might apply to version 10 too, but I ++ # couldn't check due to cmake-3.10 compile error. ++ IF (CMAKE_MINOR_VERSION VERSION_GREATER 10) ++ FIND_PACKAGE(Boost 1.42.0 COMPONENTS program_options python2.7) ++ ELSE() ++ FIND_PACKAGE(Boost 1.42.0 COMPONENTS program_options python) ++ ENDIF() + ELSE() + FIND_PACKAGE(Boost 1.42.0 COMPONENTS program_options) + ENDIF() diff --git a/media-gfx/alembic/files/alembic-1.7.9-fix-boost-python-naming.patch b/media-gfx/alembic/files/alembic-1.7.9-fix-boost-python-naming.patch new file mode 100644 index 000000000000..c14d7ad960c7 --- /dev/null +++ b/media-gfx/alembic/files/alembic-1.7.9-fix-boost-python-naming.patch @@ -0,0 +1,17 @@ +diff --git a/python/PyAlembic/CMakeLists.txt b/python/PyAlembic/CMakeLists.txt +index 5a75e63..492be6a 100644 +--- a/python/PyAlembic/CMakeLists.txt ++++ b/python/PyAlembic/CMakeLists.txt +@@ -33,10 +33,10 @@ + ## + ##-***************************************************************************** + +-MESSAGE(STATUS "Boost_PYTHON_LIBRARY: ${Boost_PYTHON_LIBRARY}") ++MESSAGE(STATUS "Boost_PYTHON2.7_LIBRARY_RELEASE: ${Boost_PYTHON2.7_LIBRARY_RELEASE}") + + # set core libs +-IF (Boost_PYTHON_LIBRARY AND ALEMBIC_PYTHON_LIBRARY) ++IF (Boost_PYTHON2.7_LIBRARY_RELEASE AND ALEMBIC_PYTHON_LIBRARY) + MESSAGE(STATUS "Found libboost_python: ${Boost_PYTHON_LIBRARY}") + SET(PLIBS ${ALEMBIC_PYTHON_LIBRARY} ${Boost_PYTHON_LIBRARY}) + |