SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "libav"

# SliTaz package receipt.

PACKAGE="libav"
VERSION="12.3"
CATEGORY="multimedia"
SHORT_DESC="Audio and video conversion library."
MAINTAINER="al.bobylev@gmail.com"
LICENSE="GPL2 GPL3 LGPL2.1 LGPL3"
WEB_SITE="https://web.archive.org/web/20221220014926/https://www.libav.org/"

#TARBALL="$PACKAGE-$VERSION.tar.bz2"
#WGET_URL="git|git://github.com/andoma/libav.git"
#BRANCH="v$VERSION"
TARBALL="$PACKAGE-$VERSION.tar.gz"
#WGET_URL="${WEB_SITE}releases/$TARBALL"
WGET_URL="https://github.com/libav/libav/archive/refs/tags/v$VERSION.tar.gz"

DEPENDS="libsdl xorg-libXfixes zlib"
BUILD_DEPENDS="binutils bzlib coreutils-file-format faac-dev 
    faad2-dev lame-dev libsdl-dev libtheora-dev libvorbis-dev 
    libvpx-dev netatalk-dev nut opencore-amr-dev openjpeg-dev 
    schroedinger-dev speex-dev x264 xvidcore-dev zlib-dev"

# What is the latest version available today?
current_version()
{
    wget -O - https://github.com/libav/libav/tags 2>/dev/null | \
    sed '/archive.*tar/!d;s|.*/v*\(.*\).tar.*|\1|;q'
}

# Rules to configure and make the package.
compile_rules()
{
    ./configure                \
        --prefix=/usr            \
         --enable-avfilter        \
        --disable-debug            \
        --disable-doc            \
         --enable-gpl            \
         --enable-nonfree        \
         --enable-pthreads        \
         --enable-runtime-cpudetect    \
         --enable-shared        \
        --arch=i486            \
        --cpu=i486 &&
    make &&
    make install
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    mkdir -p $fs/usr/lib

    cp -a $install/usr/bin        $fs/usr
    cp -a $install/usr/lib/*.so*    $fs/usr/lib
    cp -a $install/usr/share    $fs/usr
}
6025 packages and 203154 files in current database (Thu Apr 25 06:17:47 2024)