From 4a8e84dbafb1b64773b6d40f46c079708a7e5347 Mon Sep 17 00:00:00 2001 From: Andrew <51118083+ArionThinker@users.noreply.github.com> Date: Tue, 20 Feb 2024 00:12:08 +0200 Subject: [PATCH] +vamp-plugins.org (#5205) * new file: projects/vamp-plugins.org/package.yml * linux => so | darwin => dylib * download original archive * grep command * clean * fix archive url --- projects/vamp-plugins.org/package.yml | 49 +++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 projects/vamp-plugins.org/package.yml diff --git a/projects/vamp-plugins.org/package.yml b/projects/vamp-plugins.org/package.yml new file mode 100644 index 0000000000..141e96c9ad --- /dev/null +++ b/projects/vamp-plugins.org/package.yml @@ -0,0 +1,49 @@ +distributable: ~ + +versions: + url: https://vamp-plugins.org/develop.html + match: /vamp-plugin-sdk-\d+\.\d+\.\d+\.tar\.gz/ + strip: + - /^vamp-plugin-sdk-/ + - /\.tar\.gz$/ + +dependencies: + xiph.org/flac: ^1.4 + xiph.org/ogg: ^1.3 + github.com/libsndfile/libsndfile: ^1.2 + +build: + dependencies: + gnu.org/automake: '*' + curl.se: '*' + script: + # get archive url + # ex: https://code.soundsoftware.ac.uk/attachments/download/2588/vamp-plugin-sdk-2.9.0.tar.gz + # we need to find url from the page because it's not a fixed url + - DIST_URL=$(curl -s https://vamp-plugins.org/develop.html | grep -o 'https://code.soundsoftware.ac.uk/attachments/download/[0-9]*/vamp-plugin-sdk-{{version}}.tar.gz') + - curl -L $DIST_URL | tar -xz --strip-components 1 + - ./configure $ARGS + - make --jobs {{hw.concurrency}} + - make --jobs {{hw.concurrency}} install + env: + ARGS: + - --disable-debug + - --disable-dependency-tracking + - --prefix={{prefix}} + - --libdir={{prefix}}/lib + +provides: + - bin/vamp-simple-host + - bin/vamp-rdf-template-generator + +test: + script: + - vamp-simple-host -v | grep {{version.marketing}} + - cp {{prefix}}/lib/vamp/vamp-example-plugins.so $OUT + - vamp-simple-host -l | grep 'Amplitude Follower' + env: + VAMP_PATH: $PWD + darwin: + OUT: vamp-example-plugins.dylib + linux: + OUT: vamp-example-plugins.so