diff options
author | Alex Hirzel | 2020-12-10 20:41:00 -0500 |
---|---|---|
committer | Alex Hirzel | 2020-12-10 20:41:00 -0500 |
commit | 214c1f0d96c8e33697a3f036827ea503c29d60d7 (patch) | |
tree | f5483b8c6ea5b4f01c537949687d4bc9ff2cf6ab | |
parent | 8b4e6e293d79fc4b56ee57525002c974d15351c7 (diff) | |
download | aur-214c1f0d96c8e33697a3f036827ea503c29d60d7.tar.gz |
customize mitsuba.conf and default to the scalar_rgb renderer
-rw-r--r-- | .SRCINFO | 1 | ||||
-rw-r--r-- | PKGBUILD | 9 |
2 files changed, 9 insertions, 1 deletions
@@ -17,6 +17,7 @@ pkgbase = mitsuba2-git makedepends = python-sphinx makedepends = python-guzzle-sphinx-theme makedepends = python-sphinxcontrib-bibtex + makedepends = jq depends = libpng depends = libjpeg-turbo depends = libc++ @@ -9,7 +9,7 @@ url="https://www.mitsuba-renderer.org/" license=('custom') groups=() depends=('libpng' 'libjpeg-turbo' 'libc++' 'pybind11' 'pugixml' 'tbb') -makedepends=('clang' 'git' 'cmake' 'ninja' 'patchelf' 'python' 'python-sphinx' 'python-guzzle-sphinx-theme' 'python-sphinxcontrib-bibtex') +makedepends=('clang' 'git' 'cmake' 'ninja' 'patchelf' 'python' 'python-sphinx' 'python-guzzle-sphinx-theme' 'python-sphinxcontrib-bibtex' 'jq') checkdepends=('python-pytest' 'python-pytest-xdist' 'python-numpy') install= source=('swap_pybind.patch' @@ -61,6 +61,13 @@ prepare() { # not used with the current build options rmdir ext/embree ext/nanogui + + # generate the mitsuba.conf file with only one renderer (RGB) + # NOTE: change this if you want to build something else + grep -v '#' < "$srcdir/${pkgname%-git}"/resources/mitsuba.conf.template \ + | jq '.["enabled"] = ["scalar_rgb"]' \ + | jq '.["default"] = "scalar_rgb"' \ + > "$srcdir/${pkgname%-git}"/mitsuba.conf } build() { |