Ports: Add chromaprint

This commit is contained in:
kleines Filmröllchen 2023-09-16 00:41:49 +02:00 committed by Tim Schumacher
parent 5d885e9047
commit 33a545a753
Notes: sideshowbarker 2024-07-17 22:09:47 +09:00
2 changed files with 31 additions and 0 deletions

View file

@ -37,6 +37,7 @@ This list is also available at [ports.serenityos.net](https://ports.serenityos.n
| [`cfunge`](cfunge/) | cfunge | 2bc4fb2 | https://github.com/VorpalBlade/cfunge/ |
| [`chester`](chester/) | Chester Gameboy Emulator | | https://github.com/veikkos/chester |
| [`chocolate-doom`](chocolate-doom/) | Chocolate Doom | 3.0.1 | https://www.chocolate-doom.org/ |
| [`chromaprint`](chromaprint/) | chromaprint | 1.5.1 | https://acoustid.org/ |
| [`citron`](citron/) | Citron Programming Language | 0.0.9.3 | https://github.com/alimpfard/citron |
| [`ClassiCube`](ClassiCube/) | ClassiCube | 1.3.3 | https://github.com/UnknownShadow200/ClassiCube |
| [`cmake`](cmake/) | CMake | 3.26.4 | https://cmake.org/ |

30
Ports/chromaprint/package.sh Executable file
View file

@ -0,0 +1,30 @@
#!/usr/bin/env -S bash ../.port_include.sh
port='chromaprint'
useconfigure='true'
version='1.5.1'
depends=(
'ffmpeg'
)
configopts=(
"-DCMAKE_TOOLCHAIN_FILE=${SERENITY_BUILD_DIR}/CMakeToolchain.txt"
'-DCMAKE_BUILD_TYPE=Release'
'-DBUILD_TOOLS=OFF'
'-DBUILD_TESTS=OFF'
"-DFFMPEG_ROOT=${SERENITY_INSTALL_ROOT}/usr/local"
"-DCMAKE_INSTALL_PREFIX=${SERENITY_INSTALL_ROOT}/usr/local"
)
files=(
"https://github.com/acoustid/chromaprint/releases/download/v${version}/chromaprint-${version}.tar.gz#a1aad8fa3b8b18b78d3755b3767faff9abb67242e01b478ec9a64e190f335e1c"
)
configure() {
run cmake -G Ninja "${configopts[@]}" .
}
build() {
run ninja
}
install() {
run ninja install
}