2016-05-17 23:05:00 +10:00
|
|
|
# Description: Audio fingerprinting library.
|
2019-09-20 23:00:56 +10:00
|
|
|
# URL: https://acoustid.org/chromaprint
|
2016-05-17 23:05:00 +10:00
|
|
|
# Maintainer: Danny Rawlins, crux at romster dot me
|
2020-06-01 18:25:02 +10:00
|
|
|
# Depends on: cmake ffmpeg ninja
|
2019-09-20 23:00:56 +10:00
|
|
|
# Optional: fftw
|
2016-05-17 23:05:00 +10:00
|
|
|
|
|
|
|
name=chromaprint
|
2020-06-01 18:25:02 +10:00
|
|
|
version=1.5.0
|
2016-05-17 23:05:00 +10:00
|
|
|
release=1
|
2019-09-20 23:00:56 +10:00
|
|
|
source=(https://github.com/acoustid/chromaprint/releases/download/v$version/$name-$version.tar.gz)
|
2016-05-17 23:05:00 +10:00
|
|
|
|
|
|
|
build() {
|
2020-06-01 18:25:02 +10:00
|
|
|
cmake -S$name-v$version -Bbuild -GNinja \
|
2016-05-17 23:05:00 +10:00
|
|
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
|
|
|
-DCMAKE_BUILD_TYPE=RELEASE \
|
2019-09-20 23:00:56 +10:00
|
|
|
-DBUILD_TESTS=OFF
|
2016-05-17 23:05:00 +10:00
|
|
|
|
2020-06-01 18:25:02 +10:00
|
|
|
cmake --build build
|
|
|
|
DESTDIR=$PKG cmake --build build --target install
|
2016-05-17 23:05:00 +10:00
|
|
|
}
|