wok-6.x diff blender/receipt @ rev 20597

obby: update bdeps
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Dec 16 12:49:42 2018 +0100 (2018-12-16)
parents 77e92b628f39
children a78610b2eb47
line diff
     1.1 --- a/blender/receipt	Sat Feb 24 14:03:41 2018 +0100
     1.2 +++ b/blender/receipt	Sun Dec 16 12:49:42 2018 +0100
     1.3 @@ -27,8 +27,14 @@
     1.4  compile_rules()
     1.5  {
     1.6  	sed -i 's|uname -m|echo i486|' GNUmakefile
     1.7 +	sed -i -e 's|\(PyModule_GetFilename\)(mod|_PyUnicode_AsString(\1Object(mod)|' \
     1.8 +		-e 's|(.*_Py_atomic_load_relaxed(.*t)|(PyThreadState_GetDict(|' \
     1.9 +			$src/source/blender/python/generic/py_capi_utils.c
    1.10 +	sed -i 's|char. chars = _PyUnicode_AsString|const &|' \
    1.11 +		$src/source/gameengine/Ketsji/KX_FontObject.cpp
    1.12  	mkdir -p $WOK/$PACKAGE/source/build
    1.13  	cd $WOK/$PACKAGE/source/build
    1.14 +	PY3K_VER=$(ls -d /usr/include/python3.?m | sed 's|.*python\(.*\)m|\1|')
    1.15  	cmake $src \
    1.16  		-DCMAKE_INSTALL_PREFIX:PATH=/usr \
    1.17  		-DCMAKE_BUILD_TYPE:STRING=Release \
    1.18 @@ -38,13 +44,13 @@
    1.19  		-DWITH_GAMEENGINE:BOOL=ON \
    1.20  		-DWITH_CYCLES:BOOL=OFF \
    1.21  		-DWITH_PLAYER:BOOL=ON \
    1.22 -		-DPYTHON_VERSION:STRING=3.4 \
    1.23 +		-DPYTHON_VERSION:STRING=$PY3K_VER \
    1.24  		-DPYTHON_LIBPATH:STRING=/usr/lib \
    1.25 -		-DPYTHON_LIBRARY:STRING=python3.4m \
    1.26 -		-DPYTHON_INCLUDE_DIRS:STRING=/usr/include/python3.4m
    1.27 +		-DPYTHON_LIBRARY:STRING=python${PY3K_VER}m \
    1.28 +		-DPYTHON_INCLUDE_DIRS:STRING=/usr/include/python${PY3K_VER}m
    1.29  	# build
    1.30 -	make $MAKEFLAGS
    1.31 -	make DESTDIR=$DESTDIR install
    1.32 +	make $MAKEFLAGS &&
    1.33 +	make DESTDIR=$DESTDIR install &&
    1.34  	python3 -m compileall "$DESTDIR/usr/share/blender"
    1.35  }
    1.36