aboutsummaryrefslogtreecommitdiffstats
path: root/testing/blender/APKBUILD
diff options
context:
space:
mode:
authorLeon Marz <lmarz@cs.uni-frankfurt.de>2020-07-31 19:51:12 +0200
committerRasmus Thomsen <oss@cogitri.dev>2020-08-08 10:21:04 +0000
commitd9541847a250c6cdfa0d849f5d418b3421e1d533 (patch)
tree32db0bea35adf548757b828b02998ef5af6aa183 /testing/blender/APKBUILD
parent87b6b6871cbdd28b28acd269bd542667d8987f7a (diff)
downloadaports-d9541847a250c6cdfa0d849f5d418b3421e1d533.tar.gz
aports-d9541847a250c6cdfa0d849f5d418b3421e1d533.tar.bz2
aports-d9541847a250c6cdfa0d849f5d418b3421e1d533.tar.xz
testing/blender: upgrade to 2.83.4
Diffstat (limited to 'testing/blender/APKBUILD')
-rw-r--r--testing/blender/APKBUILD78
1 files changed, 31 insertions, 47 deletions
diff --git a/testing/blender/APKBUILD b/testing/blender/APKBUILD
index 04fdc471c0..a398f99721 100644
--- a/testing/blender/APKBUILD
+++ b/testing/blender/APKBUILD
@@ -1,71 +1,62 @@
# Contributor: Mark Riedesel <mark@klowner.com>
# Maintainer: Mark Riedesel <mark@klowner.com>
pkgname=blender
-pkgver=2.81a
-_pkgver=${pkgver/[a-z]}
-pkgrel=1
+pkgver=2.83.4
+_pkgver=${pkgver%.[0-9]}
+pkgrel=0
pkgdesc="3D Creation/Animation/Publishing System"
url="https://www.blender.org/"
-#arch="x86_64"
+arch="x86_64" # only on x86_64, mainly because of openimageio
license="GPL-2.0-or-later"
depends="blender-shared=$pkgver-r$pkgrel"
-makedepends="cmake libx11-dev libjpeg-turbo-dev zlib-dev libpng-dev freetype-dev python3-dev
- openimageio-dev opencolorio-dev glew-dev openal-soft-dev ffmpeg-dev
- fftw-dev tiff-dev mesa-dev libxi-dev libsndfile-dev libxmu-dev boost-dev
- openexr-dev py3-numpy-dev opensubdiv-dev lzo-dev libxrender-dev openjpeg-dev"
-subpackages="$pkgname-doc $pkgname-shared::noarch $pkgname-headless $pkgname-player py3-$pkgname:python"
-source="https://download.blender.org/source/blender-$_pkgver.tar.xz
- musl-fixes.patch
- python-3.8.patch
- openimageio-lib.patch
+makedepends="cmake libx11-dev libjpeg-turbo-dev libpng-dev freetype-dev python3-dev
+ openimageio-dev opencolorio-dev glew-dev openal-soft-dev ffmpeg-dev blosc-dev
+ fftw-dev tiff-dev libxi-dev libsndfile-dev boost-dev openexr-dev py3-numpy-dev
+ opensubdiv-dev lzo-dev libxrender-dev openjpeg-dev openxr-dev libtbb-dev libtbb
+ llvm10-dev eigen-dev sdl2-dev jack-dev"
+subpackages="$pkgname-doc $pkgname-shared::noarch $pkgname-headless py3-$pkgname:python"
+source="https://download.blender.org/source/blender-$pkgver.tar.xz
+ 0001-musl-fixes.patch
+ 0002-fix-linking-issue.patch
"
-builddir="$srcdir"/$pkgname-$_pkgver
build() {
# Headless
- cd "$builddir"
mkdir -p "$builddir"/build-headless
cd "$builddir"/build-headless
_build -C../build_files/cmake/config/blender_headless.cmake
# Full
- cd "$builddir"
mkdir -p "$builddir"/build-full
cd "$builddir"/build-full
_build -C../build_files/cmake/config/blender_full.cmake
# Python module
- cd "$builddir"
mkdir -p "$builddir"/build-py
cd "$builddir"/build-py
_build -C../build_files/cmake/config/bpy_module.cmake
-
}
_build() {
- local PY_VERSION=$(python3 -c 'import sys; print("%i.%i" % (sys.version_info.major, sys.version_info.minor))')
+ local _py_version=$(python3 -c 'import sys; print("%i.%i" % (sys.version_info.major, sys.version_info.minor))')
- cmake .. $@ \
+ cmake .. "$@" \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_BUILD_TYPE=None \
- -DWITH_PYTHON_INSTALL:BOOL=OFF \
- -DWITH_INSTALL_PORTABLE:BOOL=OFF \
- -DWITH_OPENCOLORIO:BOOL=ON \
- -DWITH_IMAGE_OPENEXR=ON \
- -DWITH_IMAGE_OPENJPEG=ON \
- -DWITH_TBB:BOOL=OFF \
+ -DWITH_PYTHON_INSTALL=OFF \
+ -DWITH_INSTALL_PORTABLE=OFF \
-DWITH_SYSTEM_LZO=ON \
- -DPYTHON_VERSION=$PY_VERSION \
- -DNO_EXECINFO:BOOL=ON
- make
+ -DWITH_SYSTEM_EIGEN3=ON \
+ -DWITH_SYSTEM_GLEW=ON \
+ -DPYTHON_VERSION=$_py_version
+ cmake --build .
}
-
package() {
# Install headless files
cd "$builddir"/build-headless
- make DESTDIR="$pkgdir"/headless install
+ DESTDIR="$pkgdir"/headless cmake --install .
# Rename the headless blender to blender-headless
mkdir -p "$pkgdir"/usr/bin
@@ -74,11 +65,11 @@ package() {
# Install python module
cd "$builddir"/build-py
- make DESTDIR="$pkgdir" install
+ DESTDIR="$pkgdir" cmake --install .
# Install the full package
cd "$builddir"/build-full
- make DESTDIR="$pkgdir" install
+ DESTDIR="$pkgdir" cmake --install .
}
shared() {
@@ -94,25 +85,18 @@ headless() {
mv "$pkgdir"/usr/bin/blender-headless "$subpkgdir"/usr/bin/
}
-player() {
- pkgdesc="Blender player runtime"
- mkdir -p "$subpkgdir"/usr/bin
- mv "$pkgdir"/usr/bin/blenderplayer "$subpkgdir"/usr/bin/
-}
-
python() {
- local PY_VERSION=$(python3 -c 'import sys; print("%i.%i" % (sys.version_info.major, sys.version_info.minor))')
+ local _py_version=$(python3 -c 'import sys; print("%i.%i" % (sys.version_info.major, sys.version_info.minor))')
pkgdesc="Blender modules for Python 3"
- mkdir -p "$subpkgdir"/usr/lib/python${PY_VERSION}/site-packages
- mv "$pkgdir"/usr/lib/python${PY_VERSION}/site-packages/bpy.so "$subpkgdir"/usr/lib/python${PY_VERSION}/site-packages/
+ mkdir -p "$subpkgdir"/usr/lib/python"$_py_version"/site-packages
+ mv "$pkgdir"/usr/lib/python"$_py_version"/site-packages/bpy.so "$subpkgdir"/usr/lib/python"$_py_version"/site-packages/
rm -rf "$pkgdir"/usr/lib
# Symlink to the blender-shared files
- ln -s /usr/share/blender/${_pkgver} "$subpkgdir"/usr/lib/python${PY_VERSION}/site-packages/${_pkgver}
+ ln -s /usr/share/blender/"$_pkgver" "$subpkgdir"/usr/lib/python"$_py_version"/site-packages/"$_pkgver"
}
-sha512sums="b7eed47afc4bdb87e9e8a579565935ae8489459197fb9b5978285cfe255ea4fc4151a1178526857921f3b2d54cf63b68dda66586565340f7bfd4274b82e7e9ff blender-2.81.tar.xz
-f931712c27d5012f1fb01b97107eba9e3bc195c0aafb0a1e782030b5eedf8beb4d15153b46464492098974e17e0b0a1659a078e811423b5a27cdd350209d90c3 musl-fixes.patch
-d95456d26bcf0b28776d4b36a20a210235b11b2ee32b6f051c88d08199792484811573b55f1850f3c1cda816d491ef332de1fe81421b761a7b4be515df726b4e python-3.8.patch
-42ed74bfae38721b7e8301dfe00a97cba0b25886cb39017620d442f9403386b5ca68daa0907d003e210ae01321986772c9721ea3de512701e6565d60a19f0c8e openimageio-lib.patch"
+sha512sums="061735273159742784ed210d13fb39ad076efbbfd5f0291bab1b983699d43b20462dc7e4795e28dab0cd191c9879b43d9ad0f0545c24ef5da23c74679e5ccab5 blender-2.83.4.tar.xz
+aadee6f3767a225e766ae9d32d7459c776f1bc2cf9f3e37e63983d44e0e3f7525c33abe95f7c3b956b0bb87beff84d148032e6e3c6003b4338f0a64668c737af 0001-musl-fixes.patch
+c626ed61534879250c30e39aead32d605a72843dea8f24843f25548ad3109efa9f4363c81a320165427522395f3e9dff4861b5f74f31b1f2b3fe8d93e57c43ae 0002-fix-linking-issue.patch"