Last active
July 1, 2025 14:02
-
-
Save quietvoid/fb6f4753912e4a131c452f3dd2c6400b to your computer and use it in GitHub Desktop.
vapoursynth-plugin-bm3dhip-git
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Maintainer: Gustavo Alvarez <[email protected]> | |
# Maintainer: quietvoid <[email protected]> | |
_plug=bm3dhip | |
pkgname="vapoursynth-plugin-${_plug}-git" | |
pkgver=2.14.22.g200250b | |
pkgrel=1 | |
pkgdesc="Plugin for Vapoursynth: ${_plug} (GIT version)" | |
arch=('x86_64') | |
url='https://github.com/WolframRhodium/VapourSynth-BM3DCUDA' | |
license=('GPL') | |
depends=('vapoursynth' 'rocm-hip-runtime' 'rocm-device-libs') | |
makedepends=('git' 'cmake') | |
provides=("vapoursynth-plugin-${_plug}") | |
conflicts=("vapoursynth-plugin-${_plug}") | |
source=("${_plug}::git+https://github.com/WolframRhodium/VapourSynth-BM3DCUDA") | |
sha256sums=('SKIP') | |
options=('!debug') | |
pkgver() { | |
cd "${_plug}" | |
echo "$(git describe --long --tags | tr - . | tr -d R | sed 's|test.||g')" | |
} | |
build() { | |
cmake -S "${_plug}" -B build -G Ninja -LA \ | |
-D CMAKE_BUILD_TYPE=Release \ | |
-D ENABLE_CPU=OFF \ | |
-D ENABLE_CUDA=OFF \ | |
-D ENABLE_HIP=ON \ | |
-D CMAKE_INSTALL_PREFIX=/usr \ | |
-D CMAKE_INSTALL_LIBDIR=lib/vapoursynth \ | |
-D VAPOURSYNTH_INCLUDE_DIRECTORY="$(pkg-config --cflags vapoursynth | sed 's|-I||g')" \ | |
-D CMAKE_CXX_COMPILER="/opt/rocm/bin/hipcc" \ | |
-D CMAKE_CXX_FLAGS="-Wall -ffast-math -munsafe-fp-atomics -Rpass-analysis=kernel-resource-usage -DNDEBUG" \ | |
-DGPU_TARGETS="gfx1010;gfx1011;gfx1012;gfx1030;gfx1031;gfx1032;gfx1033;gfx1034;gfx1035;gfx1036;gfx1100;gfx1101;gfx1102;gfx1103" | |
cmake --build build | |
} | |
package() { | |
DESTDIR="${pkgdir}" cmake --install build | |
install -Dm644 "${_plug}/README.md" "${pkgdir}/usr/share/doc/vapoursynth/plugins/${_plug}/README.md" | |
} |
Not sure, you're welcome to create and maintain the package.
Initially there was a HIP specific branch but it's not necessary anymore.
Awesome. And oh I did not even realize that the changes to CMakeLists.txt were no longer needed. Did not think to test it. I was actually going to figure out how to make a patch for it instead of maintaining a fork but that makes things easier.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Is there a reason this isn't in the AUR?