add patch to specify compiloer to use for nvcc
This commit is contained in:
@@ -1,34 +1,32 @@
|
||||
# Maintainer: CreamSodass <greatvaluecreamsoda@gmail.com>
|
||||
|
||||
pkgname=vapoursynth-plugin-vship-cuda-git
|
||||
pkgrel=4
|
||||
pkgrel=4.1
|
||||
pkgver=5.0.1.4.gdc0f1ba
|
||||
pkgdesc="Plugin for Vapoursynth: vship for nvidia gpus (GIT version)"
|
||||
arch=('x86_64')
|
||||
url='https://codeberg.org/Line-fr/Vship'
|
||||
license=('MIT')
|
||||
depends=('cuda')
|
||||
makedepends=('git')
|
||||
makedepends=('git' 'gcc15')
|
||||
optdepends=('vapoursynth: vapoursynth plugin usage')
|
||||
provides=("vapoursynth-plugin-vship" "libvship")
|
||||
conflicts=("vapoursynth-plugin-vship" "libvship")
|
||||
source=("vship::git+https://codeberg.org/Line-fr/Vship.git")
|
||||
sha256sums=('SKIP')
|
||||
source=("vship::git+https://codeberg.org/Line-fr/Vship.git"
|
||||
"cuda-ccbin.patch")
|
||||
sha256sums=('SKIP'
|
||||
'a70e866937ef15324a77afa8a02bdcdfff838c1a35ceebbe66b5ac10575d54a9')
|
||||
|
||||
prepare() {
|
||||
cd "$srcdir/vship"
|
||||
patch -Np1 -i "$srcdir/cuda-ccbin.patch"
|
||||
}
|
||||
|
||||
build() {
|
||||
cd "$srcdir/vship"
|
||||
export PATH="/opt/cuda/bin:$PATH"
|
||||
|
||||
nvcc -x cu src/VshipLib.cpp \
|
||||
-t "$(nproc)" \
|
||||
-ccbin "${CXX:-g++}" \
|
||||
-std=c++17 \
|
||||
-I include \
|
||||
-arch=all \
|
||||
--shared \
|
||||
-Xcompiler "${CXXFLAGS} -fPIC" \
|
||||
-O3 \
|
||||
-o libvship.so
|
||||
make buildcuda CUDA_CCBIN=gcc-15
|
||||
}
|
||||
|
||||
pkgver() {
|
||||
|
||||
Reference in New Issue
Block a user