diff options
author | Bernd Waibel <waebbl@gmail.com> | 2018-11-11 21:55:57 +0100 |
---|---|---|
committer | Andreas Sturmlechner <asturm@gentoo.org> | 2019-05-08 18:59:31 +0200 |
commit | 4564c5566b6c2450c8b627c997422c0e5a490ec3 (patch) | |
tree | 1b3f1889cb183d94bc839a1fafa7ec13809d657f /media-gfx/alembic/files | |
parent | kde-apps/akonadi-calendar: Drop 18.12.3-r1 (diff) | |
download | gentoo-4564c5566b6c2450c8b627c997422c0e5a490ec3.tar.gz gentoo-4564c5566b6c2450c8b627c997422c0e5a490ec3.tar.bz2 gentoo-4564c5566b6c2450c8b627c997422c0e5a490ec3.zip |
media-gfx/alembic: fix boost not found error
Fixes an error with >=cmake-3.11* where boost is not found due to
changes in cmake syntax.
See also: https://github.com/gentoo/gentoo/pull/10394
Closes: https://bugs.gentoo.org/667728
Package-Manager: Portage-2.3.51, Repoman-2.3.12
Signed-off-by: Bernd Waibel <waebbl@gmail.com>
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
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}) + |