blender: fix darwin build
This commit is contained in:
parent
ff60dfcc7f
commit
dca87350f4
@ -1,5 +1,4 @@
|
||||
diff --git a/build_files/cmake/platform/platform_apple.cmake b/build_files/cmake/platform/platform_apple.cmake
|
||||
index 31da529..90308aa 100644
|
||||
--- a/build_files/cmake/platform/platform_apple.cmake
|
||||
+++ b/build_files/cmake/platform/platform_apple.cmake
|
||||
@@ -77,7 +77,6 @@ else()
|
||||
@ -10,7 +9,7 @@ index 31da529..90308aa 100644
|
||||
endif()
|
||||
|
||||
# Prefer lib directory paths
|
||||
@@ -113,10 +112,6 @@ if(WITH_CODEC_SNDFILE)
|
||||
@@ -114,10 +113,6 @@ if(WITH_CODEC_SNDFILE)
|
||||
find_library(_sndfile_VORBIS_LIBRARY NAMES vorbis HINTS ${LIBDIR}/ffmpeg/lib)
|
||||
find_library(_sndfile_VORBISENC_LIBRARY NAMES vorbisenc HINTS ${LIBDIR}/ffmpeg/lib)
|
||||
list(APPEND LIBSNDFILE_LIBRARIES
|
||||
@ -21,16 +20,16 @@ index 31da529..90308aa 100644
|
||||
)
|
||||
|
||||
print_found_status("SndFile libraries" "${LIBSNDFILE_LIBRARIES}")
|
||||
@@ -133,7 +128,7 @@ if(WITH_PYTHON)
|
||||
@@ -134,7 +129,7 @@ if(WITH_PYTHON)
|
||||
# normally cached but not since we include them with blender
|
||||
set(PYTHON_INCLUDE_DIR "${LIBDIR}/python/include/python${PYTHON_VERSION}m")
|
||||
set(PYTHON_EXECUTABLE "${LIBDIR}/python/bin/python${PYTHON_VERSION}m")
|
||||
- set(PYTHON_LIBRARY ${LIBDIR}/python/lib/libpython${PYTHON_VERSION}m.a)
|
||||
+ set(PYTHON_LIBRARY "${LIBDIR}/python/lib/libpython${PYTHON_VERSION}m.dylib")
|
||||
set(PYTHON_INCLUDE_DIR "${LIBDIR}/python/include/python${PYTHON_VERSION}")
|
||||
set(PYTHON_EXECUTABLE "${LIBDIR}/python/bin/python${PYTHON_VERSION}")
|
||||
- set(PYTHON_LIBRARY ${LIBDIR}/python/lib/libpython${PYTHON_VERSION}.a)
|
||||
+ set(PYTHON_LIBRARY ${LIBDIR}/python/lib/libpython${PYTHON_VERSION}.dylib)
|
||||
set(PYTHON_LIBPATH "${LIBDIR}/python/lib/python${PYTHON_VERSION}")
|
||||
# set(PYTHON_LINKFLAGS "-u _PyMac_Error") # won't build with this enabled
|
||||
else()
|
||||
@@ -174,9 +169,7 @@ endif()
|
||||
@@ -175,9 +170,7 @@ endif()
|
||||
if(WITH_CODEC_FFMPEG)
|
||||
set(FFMPEG_FIND_COMPONENTS
|
||||
avcodec avdevice avformat avutil
|
||||
@ -41,7 +40,7 @@ index 31da529..90308aa 100644
|
||||
find_package(FFmpeg)
|
||||
endif()
|
||||
|
||||
@@ -267,7 +260,6 @@ if(WITH_BOOST)
|
||||
@@ -275,7 +268,6 @@ if(WITH_BOOST)
|
||||
endif()
|
||||
|
||||
if(WITH_INTERNATIONAL OR WITH_CODEC_FFMPEG)
|
||||
@ -49,7 +48,7 @@ index 31da529..90308aa 100644
|
||||
endif()
|
||||
|
||||
if(WITH_PUGIXML)
|
||||
@@ -451,7 +443,7 @@ else()
|
||||
@@ -476,7 +468,7 @@ else()
|
||||
set(CMAKE_CXX_FLAGS_RELEASE "-O2 -mdynamic-no-pic")
|
||||
endif()
|
||||
|
||||
|
@ -78,10 +78,6 @@ stdenv.mkDerivation rec {
|
||||
--replace '${"$"}{LIBDIR}/openmp' \
|
||||
'${llvmPackages.openmp}'
|
||||
substituteInPlace build_files/cmake/platform/platform_apple.cmake \
|
||||
--replace 'set(PYTHON_VERSION 3.7)' \
|
||||
'set(PYTHON_VERSION ${python.pythonVersion})' \
|
||||
--replace '${"$"}{PYTHON_VERSION}m' \
|
||||
'${"$"}{PYTHON_VERSION}' \
|
||||
--replace '${"$"}{LIBDIR}/python' \
|
||||
'${python}' \
|
||||
--replace '${"$"}{LIBDIR}/opencollada' \
|
||||
|
Loading…
Reference in New Issue
Block a user