blob: a6b9f30312d9a36bed422e66e3f91c915715c8f6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
# Maintainer: Gustavo Alvarez <sl1pkn07@gmail.com>
_plug=knlmeanscl
pkgname=vapoursynth-plugin-${_plug}
pkgver=0.5.6
pkgrel=1
pkgdesc="Plugin for Vapoursynth: ${_plug} (GIT version)"
arch=('i686' 'x86_64')
url='http://forum.doom9.org/showthread.php?t=171379'
license=('GPL')
depends=('vapoursynth' 'libcl')
makedepends=('git' 'opencl-headers')
source=("https://dl.dropboxusercontent.com/u/6596386/vapoursynth-plugins/KNLMeansCL_v${pkgver}.zip"
'patch_h.patch::http://sl1pkn07.wtf/paste/view/raw/67987544'
'patch_cpp.patch::http://sl1pkn07.wtf/paste/view/raw/1c9d055d')
sha1sums=('SKIP'
'SKIP'
'SKIP')
prepare() {
(cd KNLMeansCL/src; find -type f -exec perl -pi -e 's/\r\n?/\n/g' "{}" \;)
patch -d KNLMeansCL -p0 -i ../patch_h.patch
patch -d KNLMeansCL -p0 -i ../patch_cpp.patch
# rm -fr KNLMeansCL/src/VapourSynth.h
# rm -fr KNLMeansCL/src/VSHelper.h
# sed -e 's|"VapourSynth.h"|<vapoursynth/VapourSynth.h>|g' \
# -e 's|"VSHelper.h"|<vapoursynth/VapourSynth.h>|g' \
# -i KNLMeansCL/src/KNLMeansCL.h
echo "all:
g++ -o "lib${_plug}.so" -std=c++11 ${CXXFLAGS} ${CPPFLAGS} ${LDFLAGS/,--as-needed/} "$(pkg-config --cflags vapoursynth)" -fPIC -shared -lOpenCL KNLMeansCL/src/KNLMeansCL.cpp" > Makefile
}
build() {
make
}
package(){
install -Dm755 "lib${_plug}.so" "${pkgdir}/usr/lib/vapoursynth/lib${_plug}.so"
install -Dm644 KNLMeansCL/README.txt "${pkgdir}/usr/share/doc/vapoursynth/plugins/${_plug}/README.txt"
}
|