blob: b7ad9d49cc20e5259398349702383741e8e8646c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
|
# Maintainer: Markus Näther <naetherm@informatik.uni-freiburg.de>
pkgname=bforartists-git
pkgver=2.1.0.413e886
pkgrel=1
pkgdesc="A fully integrated 3D graphics creation suite (development)"
arch=('i686' 'x86_64')
url="www.bforartists.de"
license=('GPL')
groups=()
depends=('libgl' 'python' 'desktop-file-utils' 'hicolor-icon-theme'
'ffmpeg' 'fftw' 'openal' 'freetype2' 'libxi' 'openimageio' 'opencolorio'
'openshadinglanguage' 'libtiff' 'libpng' 'python-numpy')
makedepends=('cmake' 'git' 'boost' 'mesa' 'llvm')
optdepends=('cuda')
provides=('bforartists')
conflicts=('bforartists')
replaces=('bforartists')
backup=()
options=()
install=bforartists.install
source=('git://github.com/Bforartists/Bforartists.git')
md5sums=('SKIP')
noextract=()
# determine whether we can precompile CUDA kernels
_CUDA_PKG=`pacman -Qq cuda 2>/dev/null` || true
if [ "$_CUDA_PKG" != "" ]; then
_EXTRAOPTS="-DWITH_CYCLES_CUDA_BINARIES=ON \
-DCUDA_TOOLKIT_ROOT_DIR=/opt/cuda"
fi
prepare() {
cd "$srcdir/Bforartists"
printf "%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
# update the submodules
git submodule update --init --recursive
git submodule foreach git checkout master
git submodule foreach git pull --rebase origin master
}
build() {
mkdir -p $srcdir/bforartists-build
cd $srcdir/bforartists-build
cmake $srcdir/Bforartists \
-DPYTHON_NUMPY_PATH=/usr/lib/python3.8/site-packages \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_BUILD_TYPE:STRING=Release \
-DWITH_INSTALL_PORTABLE=OFF \
-DWITH_PYTHON_INSTALL=OFF \
-DWITH_OPENCOLORIO=ON \
-DWITH_FFTW3=ON \
-DWITH_SYSTEM_GLEW=ON \
-DWITH_CODEC_FFMPEG=ON \
-DPYTHON_VERSION=3.8 \
$_EXTRAOPTS
# -DWITH_OPENCOLLADA:BOOL=OFF \
make -j $(nproc)
}
package() {
cd $srcdir/bforartists-build
make DESTDIR="$pkgdir" install
python -m compileall \
$pkgdir/usr/share/bforartists/$bfa_version/scripts/startup \
$pkgdir/usr/share/bforartists/$bfa_version/scripts/modules \
$pkgdir/usr/share/bforartists/$bfa_version/scripts/addons
}
|