mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-01-24 10:32:13 +08:00
blender: update to 2.71
This commit is contained in:
parent
6c3b10177f
commit
05a5b6afd7
@ -1,36 +1,64 @@
|
|||||||
# Maintainer: UtG <utg[dot]chakra.linux[at]gmail[dot]com>
|
# Maintainer: UtG <utg[dot]chakra.linux[at]gmail[dot]com>
|
||||||
# maintainer: Neophytos Kolokotronis <tetris4@gmail.com
|
# maintainer: Neophytos Kolokotronis <tetris4@gmail.com
|
||||||
|
|
||||||
|
_gitcommit=d42c08
|
||||||
|
|
||||||
pkgname=blender
|
pkgname=blender
|
||||||
pkgver=2.70a
|
pkgver=2.71
|
||||||
pkgrel=3
|
[[ -n ${_gitcommit} ]] && pkgver=${pkgver}.git1.${_gitcommit}
|
||||||
|
pkgrel=1
|
||||||
epoch=1
|
epoch=1
|
||||||
pkgdesc="A fully integrated 3D graphics creation suite"
|
pkgdesc="A fully integrated 3D graphics creation suite"
|
||||||
arch=('x86_64')
|
arch=('x86_64')
|
||||||
license=('GPL')
|
license=('GPL')
|
||||||
url="http://www.blender.org"
|
url="http://www.blender.org"
|
||||||
depends=('libpng' 'libtiff' 'openexr' 'sdl' 'python3' 'desktop-file-utils' 'shared-mime-info'
|
depends=('libpng' 'libtiff' 'openexr' 'python3' 'desktop-file-utils'
|
||||||
'hicolor-icon-theme' 'xdg-utils' 'glew' 'freetype2' 'jack' 'openal' 'libsndfile'
|
'shared-mime-info' 'hicolor-icon-theme' 'xdg-utils' 'glew'
|
||||||
'libsamplerate' 'ffmpeg' 'fftw' 'openimageio' 'boost-libs' 'opencollada' 'opencolorio' 'llvm' 'pcre' 'libbluray')
|
'freetype2' 'openal' 'ffmpeg' 'fftw' 'boost-libs' 'opencollada' 'llvm'
|
||||||
makedepends=('cmake' 'boost' 'mesa' 'subversion')
|
'openimageio' 'libsndfile' 'jack' 'opencolorio')
|
||||||
|
makedepends=('cmake' 'boost' 'mesa' 'subversion' 'git')
|
||||||
screenshot=('http://www.blender.org/index.php?eID=tx_cms_showpic&file=uploads%2Fpics%2Fblender_screenshot3_03.png&width=800m&height=600m&bodyTag=%3Cbody%20style%3D%22margin%3A0%3B%20background%3A%23fff%3B%22%3E&wrap=%3Ca%20href%3D%22javascript%3Aclose%28%29%3B%22%3E%20%7C%20%3C%2Fa%3E&md5=cddc8ef0fbe1e90d0d22e78b4911860b')
|
screenshot=('http://www.blender.org/index.php?eID=tx_cms_showpic&file=uploads%2Fpics%2Fblender_screenshot3_03.png&width=800m&height=600m&bodyTag=%3Cbody%20style%3D%22margin%3A0%3B%20background%3A%23fff%3B%22%3E&wrap=%3Ca%20href%3D%22javascript%3Aclose%28%29%3B%22%3E%20%7C%20%3C%2Fa%3E&md5=cddc8ef0fbe1e90d0d22e78b4911860b')
|
||||||
|
options=(!strip)
|
||||||
install=blender.install
|
install=blender.install
|
||||||
source=("http://download.blender.org/source/$pkgname-$pkgver.tar.gz")
|
#source=("http://download.blender.org/source/${pkgname}-${pkgver}.tar.gz")
|
||||||
sha1sums=('44c597285972a6042f50b6709b6640d688a878d2')
|
source=("git://git.blender.org/blender-addons.git"
|
||||||
|
"git://git.blender.org/blender-addons-contrib.git"
|
||||||
|
"git://git.blender.org/blender-translations.git"
|
||||||
|
"git://git.blender.org/scons.git")
|
||||||
|
if [[ -n $_gittag ]]; then
|
||||||
|
source+=("${pkgname}-${pkgver}::git://git.blender.org/blender.git#tag=${_gittag}")
|
||||||
|
else
|
||||||
|
source+=("${pkgname}-${pkgver}::git://git.blender.org/blender.git#commit=${_gitcommit}")
|
||||||
|
fi
|
||||||
|
sha256sums=('SKIP'
|
||||||
|
'SKIP'
|
||||||
|
'SKIP'
|
||||||
|
'SKIP'
|
||||||
|
'SKIP')
|
||||||
|
|
||||||
|
prepare() {
|
||||||
|
cd "$srcdir/$pkgname-$pkgver"
|
||||||
|
|
||||||
|
git submodule init
|
||||||
|
git config submodule."release/scripts/addons".url "${srcdir}/blender-addons"
|
||||||
|
git config submodule."release/scripts/addons_contrib".url "${srcdir}/blender-addons-contrib"
|
||||||
|
git config submodule."release/datafiles/locale".url "${srcdir}/blender-translations"
|
||||||
|
git config submodule."scons".url "${srcdir}/scons"
|
||||||
|
git submodule update
|
||||||
|
}
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
cd "$srcdir/$pkgname-v$pkgver"
|
cd ${pkgname}-${pkgver}
|
||||||
|
|
||||||
[[ -d build ]] && rm -rf build
|
|
||||||
mkdir -p build && cd build
|
mkdir -p build && cd build
|
||||||
|
|
||||||
# enable again -DWITH_OPENCOLLADA=ON when 2.71 is build!
|
# enable again -DWITH_OPENCOLLADA=ON when 2.71 is build!
|
||||||
|
# Still does not work. Does opencollada need a rebuild or a new version?
|
||||||
cmake .. \
|
cmake .. \
|
||||||
-DCMAKE_INSTALL_PREFIX=/usr \
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
||||||
-DCMAKE_BUILD_TYPE=Release \
|
-DCMAKE_BUILD_TYPE=Release \
|
||||||
-DWITH_INSTALL_PORTABLE=OFF \
|
-DWITH_INSTALL_PORTABLE=OFF \
|
||||||
-DWITH_PYTHON_INSTALL=OFF \
|
-DWITH_PYTHON_INSTALL=OFF \
|
||||||
-DWITH_OPENCOLLADA=OFF \
|
|
||||||
-DOPENIMAGEIO_ROOT_DIR=/usr \
|
-DOPENIMAGEIO_ROOT_DIR=/usr \
|
||||||
-DWITH_GAMEENGINE=ON \
|
-DWITH_GAMEENGINE=ON \
|
||||||
-DWITH_JACK=ON \
|
-DWITH_JACK=ON \
|
||||||
@ -38,20 +66,25 @@ build() {
|
|||||||
-DWITH_CODEC_FFMPEG=ON \
|
-DWITH_CODEC_FFMPEG=ON \
|
||||||
-DWITH_CODEC_SNDFILE=ON \
|
-DWITH_CODEC_SNDFILE=ON \
|
||||||
-DWITH_CYCLES=ON \
|
-DWITH_CYCLES=ON \
|
||||||
|
-DWITH_LLVM=ON \
|
||||||
|
-DLLVM_VERSION=3.4 \
|
||||||
|
-DLLVM_STATIC=OFF \
|
||||||
-DWITH_FFTW3=ON \
|
-DWITH_FFTW3=ON \
|
||||||
-DWITH_MOD_OCEANSIM=ON \
|
-DWITH_MOD_OCEANSIM=ON \
|
||||||
-DPYTHON_VERSION=3.3 \
|
-DWITH_OPENCOLLADA=OFF \
|
||||||
|
-DPYTHON_VERSION=3.4 \
|
||||||
-DPYTHON_LIBPATH=/usr/lib \
|
-DPYTHON_LIBPATH=/usr/lib \
|
||||||
-DPYTHON_LIBRARY=python3.3m \
|
-DPYTHON_LIBRARY=python3.4m \
|
||||||
-DPYTHON_INCLUDE_DIRS=/usr/include/python3.3m
|
-DPYTHON_INCLUDE_DIRS=/usr/include/python3.4m \
|
||||||
|
-DCMAKE_CXX_FLAGS_RELEASE="-fno-delete-null-pointer-checks -DNDEBUG" \
|
||||||
|
-DCMAKE_C_FLAGS_RELEASE="-fno-delete-null-pointer-checks -DNDEBUG"
|
||||||
make
|
make
|
||||||
}
|
}
|
||||||
|
|
||||||
package() {
|
package() {
|
||||||
cd "$srcdir/$pkgname-v$pkgver/build"
|
cd ${pkgname}-${pkgver}/build
|
||||||
|
|
||||||
make DESTDIR="${pkgdir}" install
|
make DESTDIR="${pkgdir}" install
|
||||||
python3 -m compileall "${pkgdir}/usr/share/blender"
|
python3 -m compileall "${pkgdir}/usr/share/blender"
|
||||||
|
python3 -O -m compileall "${pkgdir}/usr/share/blender"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user