Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Blender update #2087

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions alarm/sse2neon/PKGBUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#

pkgname=sse2neon
pkgver=1.8.0
pkgrel=1
pkgdesc="A translator from Intel SSE intrinsics to Arm/Aarch64 NEON implementation"
arch=(armv7h aarch64)
url="https://github.com/DLTcollab/sse2neon"
license=('MIT')
makedepends=(git)
source=("git+https://github.com/DLTcollab/sse2neon#tag=v${pkgver}")
sha256sums=('cea7cd58167e64c4dacff72f235095ff0567d7fd2df4e3d9a77f58472f419c24')

package() {
install -dDm755 "$pkgdir"/usr/include
cp sse2neon/sse2neon.h "$pkgdir"/usr/include/
}
12 changes: 8 additions & 4 deletions extra/blender/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@

# ALARM: Kevin Mihelich <[email protected]>
# - remove makedepend, optdepend on cuda
# - remove depend on openimagedenoise, embree, openpgl
# - set -DWITH_CYCLES_EMBREE=OFF
# - remove makedepend on hip-runtime-amd
# - removed Intel OneAPI support

Expand Down Expand Up @@ -39,6 +37,7 @@ depends=(
'bash'
'boost-libs'
'draco' # seems to use static lib and should probably only be makedepends
'embree'
'expat'
'ffmpeg'
'fftw'
Expand Down Expand Up @@ -73,8 +72,10 @@ depends=(
'openal'
'opencolorio'
'openexr'
'openimagedenoise'
'openimageio'
'openjpeg2'
'openpgl'
'openshadinglanguage'
'opensubdiv'
'openvdb'
Expand All @@ -97,13 +98,14 @@ makedepends=(
'boost'
'cmake'
'git'
'git-lfs'
'level-zero-headers'
'libdecor'
'mold'
'llvm'
'mesa'
'ninja'
'git-lfs'
'sse2neon'
'subversion'
'wayland-protocols'
)
Expand Down Expand Up @@ -182,12 +184,14 @@ build() {
-C "$srcdir/precache"
-D CMAKE_BUILD_TYPE=Release
-D CMAKE_INSTALL_PREFIX=/usr
-D WITH_LINKER_MOLD=ON
-D OCLOC_INSTALL_DIR=/usr
-D OPTIX_ROOT_DIR="$srcdir"
-D PYTHON_VERSION="$(_get_pyver)"
# -D SYCL_CPP_FLAGS=--verbose # for debugging
-D SYCL_OFFLINE_COMPILER_PARALLEL_JOBS=8
-D USD_ROOT_DIR=/usr
-D WITH_CYCLES_EMBREE=OFF
-D WITH_CYCLES_OSL=ON
-D WITH_INSTALL_PORTABLE=OFF
-D WITH_PYTHON_INSTALL=OFF
-G Ninja
Expand Down
19 changes: 19 additions & 0 deletions extra/embree/.SRCINFO
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
pkgbase = embree
pkgdesc = Collection of high-performance ray tracing kernels
pkgver = 4.3.3
pkgrel = 1
url = https://embree.github.io/
arch = x86_64
license = Apache
makedepends = cmake
makedepends = ispc
makedepends = freeglut
makedepends = libxmu
makedepends = ninja
depends = gcc-libs
depends = glibc
depends = intel-tbb
source = https://github.com/embree/embree/archive/v4.3.3/embree-4.3.3.tar.gz
sha256sums = 8a3bc3c3e21aa209d9861a28f8ba93b2f82ed0dc93341dddac09f1f03c36ef2d

pkgname = embree
4 changes: 4 additions & 0 deletions extra/embree/.nvchecker.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[embree]
source = "git"
git = "https://github.com/embree/embree.git"
prefix = "v"
44 changes: 44 additions & 0 deletions extra/embree/PKGBUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
# Maintainer: Sven-Hendrik Haase <[email protected]>
# Maintainer: Bruno Pagani <[email protected]>
# Contributor: Lukas Jirkovsky <[email protected]>

# ALARM: Yichao Yu
# - AVX512 -> NEON

pkgname=embree
pkgver=4.3.3
pkgrel=1
pkgdesc="Collection of high-performance ray tracing kernels"
arch=('x86_64')
url="https://embree.github.io/"
license=('Apache')
depends=('gcc-libs' 'glibc' 'intel-tbb')
makedepends=('cmake' 'ispc' 'freeglut' 'libxmu' 'ninja')
source=(https://github.com/embree/embree/archive/v${pkgver}/${pkgname}-${pkgver}.tar.gz)
sha256sums=('8a3bc3c3e21aa209d9861a28f8ba93b2f82ed0dc93341dddac09f1f03c36ef2d')

build() {
# Embree detects actual ISA at runtime but we have to set a high maximum
# buildtime version as it would otherwise default to the builder processor.
cmake \
-B build \
-G Ninja \
-S ${pkgname}-${pkgver} \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_BUILD_TYPE=Release \
-DEMBREE_ISPC_SUPPORT=ON \
-DEMBREE_TUTORIALS=OFF \
-DEMBREE_MAX_ISA="NEON2X" \
-DEMBREE_BACKFACE_CULLING=OFF
ninja -C build
# Maybe enable these later once they are out of beta:
# -DEMBREE_SYCL_SUPPORT=ON \
# -DEMBREE_SYCL_LARGEGRF=ON
}

package() {
DESTDIR="${pkgdir}" ninja -C build install

mkdir "${pkgdir}"/usr/bin/
mv "${pkgdir}"/usr/embree-vars.* "${pkgdir}"/usr/bin/
}
35 changes: 35 additions & 0 deletions extra/ispc/.SRCINFO
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
pkgbase = ispc
pkgdesc = Compiler for high-performance SIMD programming on the CPU
pkgver = 1.25.3
pkgrel = 1
url = https://ispc.github.io/
arch = x86_64
license = BSD-3-Clause
checkdepends = intel-compute-runtime
makedepends = cmake
makedepends = git
makedepends = level-zero-headers
makedepends = level-zero-loader
makedepends = lib32-glibc
makedepends = llvm
makedepends = openmp
makedepends = python
makedepends = vc-intrinsics
depends = clang
depends = gcc-libs
depends = glibc
depends = llvm-libs
depends = spirv-llvm-translator
depends = onetbb
optdepends = intel-compute-runtime: GPU support
optdepends = level-zero-loader: GPU support
optdepends = openmp: GPU support
options = staticlibs
source = git+https://github.com/ispc/ispc#tag=v1.25.3
source = ispc-benchmark::git+https://github.com/google/benchmark.git
source = ispc-googletest::git+https://github.com/google/googletest.git
sha256sums = 7f663afbba105013c7c859d46b1111ae25a2c7d349202994b3105ee59d7dc9a7
sha256sums = SKIP
sha256sums = SKIP

pkgname = ispc
4 changes: 4 additions & 0 deletions extra/ispc/.nvchecker.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[ispc]
source = "git"
git = "https://github.com/ispc/ispc.git"
prefix = "v"
78 changes: 78 additions & 0 deletions extra/ispc/PKGBUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
# Maintainer: Lukas Jirkovsky <[email protected]>
# Maintainer: Bruno Pagani <[email protected]>
# Maintainer: Torsten Keßler <[email protected]>

# ALARM: Yichao Yu
# - Remove lib32 dependencies
# - Remove intel compute runtime check dependencies
# - Disable XE example build since it assumes x86

pkgname=ispc
pkgver=1.25.3
pkgrel=1
pkgdesc="Compiler for high-performance SIMD programming on the CPU"
arch=(x86_64)
url="https://ispc.github.io/"
license=(BSD-3-Clause)
depends=(clang gcc-libs glibc llvm-libs spirv-llvm-translator onetbb)
makedepends=(cmake git level-zero-headers level-zero-loader llvm openmp python vc-intrinsics)
optdepends=(
'intel-compute-runtime: GPU support'
'level-zero-loader: GPU support'
'openmp: GPU support'
)
# NOTE: libispcrt_static.a is required by ospray during build time
options=(staticlibs)
source=(
git+https://github.com/$pkgname/$pkgname#tag=v$pkgver
$pkgname-benchmark::git+https://github.com/google/benchmark.git
$pkgname-googletest::git+https://github.com/google/googletest.git
)
sha256sums=('7f663afbba105013c7c859d46b1111ae25a2c7d349202994b3105ee59d7dc9a7'
'SKIP'
'SKIP')

prepare() {
cd $pkgname
git submodule init
git config submodule.benchmarks/vendor/google/benchmark.url "$srcdir/$pkgname-benchmark"
git config submodule.ispcrt/tests/vendor/google/googletest.url "$srcdir/$pkgname-googletest"
git -c protocol.file.allow=always submodule update

git cherry-pick -n \
62426bf5a50a49b30a4eb0206e8a8d78ff0e7006 \
5422fc1f6e7caa74906e612f5803287be5bb915f \
17ee83fba824eaee79065256c49fbfc21f730d01 \
cb097ab5821c4219349b37a5c217e3df3d3987f1
}

build() {
local cmake_options=(
-B build
-D CMAKE_BUILD_TYPE=Release # None not allowed :(
-D CMAKE_INSTALL_PREFIX=/usr
-D ISPC_INCLUDE_EXAMPLES=OFF
-D ISPC_OPAQUE_PTR_MODE=OFF # suggested in https://github.com/ispc/ispc/issues/2427
-D ISPC_STATIC_LINK=OFF
-D ISPC_INCLUDE_XE_EXAMPLES=OFF
-D XE_ENABLED=ON
-D XE_DEPS_DIR=/usr
-S $pkgname
-W no-dev
)

cmake "${cmake_options[@]}"
cmake --build build --verbose
}

check() {
# https://github.com/ispc/ispc/issues/2427
# https://github.com/ispc/ispc/issues/2428
# https://github.com/ispc/ispc/issues/2429
make -C build check-all || echo "Tests failed"
}

package() {
DESTDIR="$pkgdir" cmake --install build
install -Dm644 $pkgname/LICENSE.txt -t "${pkgdir}"/usr/share/licenses/${pkgname}
}
34 changes: 34 additions & 0 deletions extra/materialx/.SRCINFO
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
pkgbase = materialx
pkgdesc = Open standard for representing rich material and look-development content in computer graphics
pkgver = 1.38.10
pkgrel = 6
url = https://materialx.org/
arch = x86_64
license = Apache
makedepends = cmake
makedepends = chrpath
makedepends = libxinerama
makedepends = libxcursor
makedepends = pybind11
makedepends = ninja
depends = glibc
depends = gcc-libs
depends = glfw
depends = libglvnd
depends = libx11
depends = libxt
depends = python
depends = python-setuptools
depends = opencolorio
depends = dos2unix
depends = zenity
source = https://github.com/AcademySoftwareFoundation/MaterialX/releases/download/v1.38.10/MaterialX-1.38.10.tar.gz
source = materialx-grapheditor.desktop
source = materialx-view.desktop
source = materialx.xml
sha256sums = f7f2aa7587ae63eb095cef35d202d23df341e3d67c8c458357d2a555d76c69f2
sha256sums = 88e5ecafa8088b90f799b49c36af59f8462ca7426cdec58215332ee283556ddb
sha256sums = 2f2b675540fea39a749f89083a9c341319c1f7b478fbb049a77bd66c29b2ee01
sha256sums = d9b9426fb94121da052b796542cc74a0c5d7cef06997be70611c25f345553861

pkgname = materialx
4 changes: 4 additions & 0 deletions extra/materialx/.nvchecker.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[materialx]
source = "git"
git = "https://github.com/AcademySoftwareFoundation/MaterialX.git"
prefix = "v"
Loading