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
|
2023-03-03 13:16:23 -05:00
|
|
|
# Maintainer: John McQuah, jmcquah at disroot dot org
|
|
|
|
# Depends on: ffmpeg
|
2019-09-20 23:00:56 +10:00
|
|
|
# Optional: fftw
|
2016-05-17 23:05:00 +10:00
|
|
|
|
|
|
|
name=chromaprint
|
2022-02-05 18:17:26 +01:00
|
|
|
version=1.5.1
|
2023-03-03 13:16:23 -05:00
|
|
|
release=2
|
|
|
|
source=(https://github.com/acoustid/$name/releases/download/v$version/$name-$version.tar.gz)
|
2016-05-17 23:05:00 +10:00
|
|
|
|
|
|
|
build() {
|
2022-02-05 18:17:26 +01:00
|
|
|
cmake -S $name-$version -B build -G Ninja \
|
2020-11-08 10:12:05 +00:00
|
|
|
-D CMAKE_INSTALL_PREFIX=/usr \
|
|
|
|
-D CMAKE_BUILD_TYPE=RELEASE \
|
2020-12-06 23:49:10 +00:00
|
|
|
-D CMAKE_CXX_FLAGS_RELEASE="$CXXFLAGS" \
|
|
|
|
-D CMAKE_C_FLAGS_RELEASE="$CFLAGS" \
|
2020-11-08 10:12:05 +00:00
|
|
|
-D BUILD_TESTS=OFF \
|
|
|
|
-Wno-dev
|
2016-05-17 23:05:00 +10:00
|
|
|
|
2023-03-03 13:16:23 -05:00
|
|
|
ninja -C build -j ${JOBS:-1}
|
|
|
|
DESTDIR=$PKG ninja -C build install
|
2016-05-17 23:05:00 +10:00
|
|
|
}
|