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"

# What is the latest version available today?
current_version()
{
    wget -O - ${WGET_URL%/down*} 2>/dev/null | \
    sed '/tag\//!d;s|.*tag/v*||;s|".*||;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*
}
5935 packages and 845883 files in cooking database (Sun Jun 30 00:45:24 2024)