mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-29 11:38:52 +02:00
Chromaprint" bump to 1.6.0 (#13851)
This commit is contained in:
76
media-libs/chromaprint/chromaprint-1.6.0.recipe
Normal file
76
media-libs/chromaprint/chromaprint-1.6.0.recipe
Normal file
@@ -0,0 +1,76 @@
|
||||
SUMMARY="Audio fingerprint library"
|
||||
DESCRIPTION="chromaprint is a client-side library that implements a custom \
|
||||
algorithm for extracting fingerprints from any audio source."
|
||||
HOMEPAGE="https://acoustid.org/chromaprint"
|
||||
COPYRIGHT="2010-2016 Lukas Lalinsky"
|
||||
LICENSE="GNU LGPL v2.1"
|
||||
REVISION="1"
|
||||
SOURCE_URI="https://github.com/acoustid/chromaprint/releases/download/v$portVersion/chromaprint-$portVersion.tar.gz"
|
||||
CHECKSUM_SHA256="9d33482e56a1389a37a0d6742c376139fa43e3b8a63d29003222b93db2cb40da"
|
||||
SOURCE_DIR="chromaprint-$portVersion"
|
||||
|
||||
ARCHITECTURES="all !x86_gcc2"
|
||||
SECONDARY_ARCHITECTURES="x86"
|
||||
|
||||
libVersion="$portVersion"
|
||||
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"
|
||||
|
||||
PROVIDES="
|
||||
chromaprint$secondaryArchSuffix = $portVersion
|
||||
lib:libchromaprint$secondaryArchSuffix = $libVersionCompat
|
||||
cmd:fpcalc = $portVersion
|
||||
"
|
||||
REQUIRES="
|
||||
haiku$secondaryArchSuffix
|
||||
lib:libavcodec$secondaryArchSuffix
|
||||
lib:libavformat$secondaryArchSuffix
|
||||
lib:libavutil$secondaryArchSuffix
|
||||
"
|
||||
|
||||
PROVIDES_devel="
|
||||
chromaprint${secondaryArchSuffix}_devel = $portVersion
|
||||
devel:libchromaprint$secondaryArchSuffix = $libVersionCompat
|
||||
"
|
||||
REQUIRES_devel="
|
||||
chromaprint$secondaryArchSuffix == $portVersion base
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel
|
||||
devel:libavcodec$secondaryArchSuffix >= 60
|
||||
devel:libavformat$secondaryArchSuffix
|
||||
devel:libavutil$secondaryArchSuffix >= 58
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
cmd:cmake
|
||||
cmd:gcc$secondaryArchSuffix
|
||||
cmd:ld$secondaryArchSuffix
|
||||
cmd:make
|
||||
"
|
||||
|
||||
defineDebugInfoPackage chromaprint$secondaryArchSuffix \
|
||||
"$libDir"/libchromaprint.so.$libVersion
|
||||
|
||||
BUILD()
|
||||
{
|
||||
cmake -DCMAKE_INSTALL_PREFIX=$prefix \
|
||||
-DCMAKE_INSTALL_LIBDIR=$libDir \
|
||||
-DCMAKE_INSTALL_INCLUDEDIR=$includeDir \
|
||||
-DBUILD_TOOLS=ON \
|
||||
-DFFT_LIB=avfft \
|
||||
-DCMAKE_BUILD_TYPE=RelWithDebInfo .
|
||||
|
||||
make $jobArgs
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
make install
|
||||
|
||||
prepareInstalledDevelLib libchromaprint
|
||||
fixPkgconfig
|
||||
|
||||
# devel package
|
||||
packageEntries devel \
|
||||
$developDir
|
||||
}
|
||||
Reference in New Issue
Block a user