summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD52
1 files changed, 23 insertions, 29 deletions
diff --git a/PKGBUILD b/PKGBUILD
index c9769dedbf5..f62cabfecd6 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,7 +1,7 @@
# Maintainer : bartus <arch-user-repoᘓbartus.33mail.com>
pkgname=appleseed
-pkgrel=2
-pkgver=2.0.0
+pkgrel=1
+pkgver=2.1.0
_pkgver=${pkgver}-beta
pkgdesc="physically-based global illumination rendering engine primarily designed for animation and visual effects. "
arch=(x86_64)
@@ -9,50 +9,44 @@ url="https://appleseedhq.net"
license=('MIT')
provides=('appleseed')
conflicts=('appleseed-git')
-depends=(python2 qt4 'seexpr1=2.11' boost openexr opencolorio openimageio openshadinglanguage xerces-c zlib)
+depends=(python2 python embree qt5-base seexpr-qt5 boost openexr opencolorio openimageio 'openshadinglanguage>=1.8.9' xerces-c zlib)
makedepends=(cmake)
options=()
source=("https://github.com/${pkgname}hq/${pkgname}/archive/${_pkgver}.tar.gz"
- dir.patch
- oiio2.patch
+ "cmake.extra.install.dirs.remove.patch"
)
-md5sums=('25030249df1403daf7b38359b2edf593'
- '3da34be53a016d68ff8abfebaed1dd4e'
- 'f539c5b703c9a29fbaabaa47fbf3fc63')
+sha256sums=('5f8599c64a9c1dbdf0d8ee13a4d395b03e9bcba17fec731526109437ab760898'
+ '87b987f006e45d11cc4dfec2bd37fd2b760fd2bdbf06f48e7d467cbca9b2b301')
-CMAKE_FLAGS="-DUSE_EXTERNAL_EXR=ON \
- -DUSE_EXTERNAL_OCIO=ON \
- -DUSE_EXTERNAL_OIIO=ON \
- -DUSE_EXTERNAL_OSL=ON \
- -DUSE_EXTERNAL_PNG=ON \
- -DUSE_EXTERNAL_XERCES=ON \
- -DUSE_EXTERNAL_ZLIB=ON \
- -DUSE_EXTERNAL_SEEXPR=ON \
- -DUSE_STATIC_BOOST=OFF \
- -DUSE_STATIC_OCIO=OFF \
- -DUSE_STATIC_OIIO=OFF \
- -DUSE_STATIC_OSL=OFF \
- -DWITH_DISNEY_MATERIAL=ON \
- -DWARNINGS_AS_ERRORS=OFF"
-#pkgver() {
-# cd ${pkgname}-${_pkgver}
-# git describe --long | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
-#}
+CMAKE_FLAGS=( -DWITH_EMBREE=ON
+ -DWITH_DISNEY_MATERIAL=ON
+ -DWITH_PYTHON3_BINDINGS=ON
+ -DUSE_STATIC_EMBREE=OFF
+ -DUSE_STATIC_EXR=OFF
+ -DUSE_STATIC_BOOST=OFF
+ -DUSE_STATIC_OCIO=OFF
+ -DUSE_STATIC_OIIO=OFF
+ -DUSE_STATIC_OSL=OFF
+ -DWARNINGS_AS_ERRORS=OFF
+ )
prepare() {
cd ${pkgname}-${_pkgver}
+ patch -Np1 -i ${srcdir}/cmake.extra.install.dirs.remove.patch
grep -q avx /proc/cpuinfo && CMAKE_FLAGS="${CMAKE_FLAGS} -DUSE_AVX=ON"
grep -q avx2 /proc/cpuinfo && CMAKE_FLAGS="${CMAKE_FLAGS} -DUSE_AVX2=ON"
+ grep -q f16c /proc/cpuinfo && CMAKE_FLAGS="${CMAKE_FLAGS} -DUSE_F16C=ON"
grep -q sse4_2 /proc/cpuinfo && CMAKE_FLAGS="${CMAKE_FLAGS} -DUSE_SSE42=ON"
- patch -Np1 -i ${srcdir}/dir.patch
- patch -Np1 -i ${srcdir}/oiio2.patch
}
+
build() {
cd ${pkgname}-${_pkgver}
mkdir -p build
cd build
- cmake -DCMAKE_BUILD_TYPE=Ship -DCMAKE_INSTALL_PREFIX=/opt/appleseed ${CMAKE_FLAGS} ..
+ _pyver=$(python -c "from sys import version_info; print(\"%d.%d\" % (version_info[0],version_info[1]))")
+ CMAKE_FLAGS+=( -DPYTHON3_INCLUDE_DIR=/usr/include/python${_pyver}m )
+ cmake -DCMAKE_BUILD_TYPE=Ship -DCMAKE_INSTALL_PREFIX=/opt/appleseed ${CMAKE_FLAGS[*]} ..
make
}