SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "chromaprint"

# SliTaz package receipt.

PACKAGE="chromaprint"
VERSION="1.5.1"
CATEGORY="multimedia"
SHORT_DESC="Library that implements a custom algorithm for extracting fingerprints from any audio source."
MAINTAINER="maintainer@slitaz.org"
LICENSE="LGPLv2+"
WEB_SITE="https://acoustid.org/chromaprint"

TARBALL="$PACKAGE-$VERSION.tar.gz"
WGET_URL="https://github.com/acoustid/$PACKAGE/releases/download/v$VERSION/$TARBALL"

DEPENDS="ffmpeg gcc83-lib-base libav libvpx"
BUILD_DEPENDS="cmake ffmpeg-dev gcc83 libav-dev libvpx-dev libgnutls"

current_version()
{
    wget -O - ${WGET_URL%/down*} 2>/dev/null | \
    sed '/archive.*tar/!d;s|.*/v\(.*\).tar.*|\1|;q'
}

# Rules to configure and make the package.
compile_rules()
{
    sed 's|AV_ERROR_MAX_STRING_SIZE|64|' -i src/audio/ffmpeg_audio_reader.h

    export    CC=gcc-83
    export    CXX=g++-83
    export    LDFLAGS="$LDFLAGS -lvpx"

    mkdir    _build &&
    cd    _build &&
    cmake    ..                \
        -D CMAKE_BUILD_TYPE=Release    \
        -D BUILD_TOOLS=ON        \
        -D CMAKE_INSTALL_PREFIX=/usr &&
    make &&
    make install DESTDIR=$DESTDIR
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    cook_copy_folders    bin
    cook_copy_files        *.so*
}
6047 packages and 209931 files in current database (Wed Jun 26 15:35:30 2024)