SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "ffmpeg-compat"

# SliTaz package receipt.

PACKAGE="ffmpeg-compat"
VERSION="0.10.12"    # to build libvalhalla, and then enna
CATEGORY="multimedia"
SHORT_DESC="Record, convert and stream audio and video (compatible libs version)."
MAINTAINER="pascal.bellard@slitaz.org"
LICENSE="GPL2 LGPL2.1"
WEB_SITE="https://ffmpeg.org/"

SOURCE="ffmpeg"
TARBALL="$SOURCE-$VERSION.tar.bz2"
WGET_URL="${WEB_SITE}releases/$TARBALL"

DEPENDS="alsa-lib bzip2 libsdl"
BUILD_DEPENDS="bzip2-dev coreutils-file-format coreutils-file-special 
    libsdl-dev yasm zlib-dev"

HOST_ARCH="i486 arm"

# Handle cross compilation. Host coreutils-file-* are used
case "$ARCH" in
    i?86) 
        ARCH_ARGS="--arch=$ARCH --cpu=$ARCH" ;;
    arm*) 
        BUILD_DEPENDS="zlib-dev bzip2-dev yasm libsdl-dev" 
        ARCH_ARGS="--enable-cross-compile --arch=armel --target-os=linux \
--cross-prefix=$HOST_SYSTEM-" ;;
esac

# Handle arch package install
case "$SLITAZ_ARCH" in
    arm*) DEPENDS="alsa-lib bzip2" ;;
esac

# Rules to configure and make the package.
compile_rules()
{
    ./configure                    \
        --prefix=/usr                \
        --incdir=/usr/include/ffmpeg-compat    \
        --libdir=/usr/lib/ffmpeg-compat        \
        --shlibdir=/usr/lib/ffmpeg-compat    \
        --enable-gpl                \
        --enable-pthreads            \
        --enable-runtime-cpudetect        \
        --enable-shared                \
        --enable-small                \
        --disable-debug                \
        --disable-doc                \
        --disable-encoder=h263            \
        --disable-encoder=h263p            \
        --disable-encoder=mpeg2video        \
        --disable-encoder=mpeg4            \
        --disable-encoder=msmpeg4v1        \
        --disable-encoder=msmpeg4v2        \
        --disable-encoder=msmpeg4v3        \
        --disable-ffplay            \
        --disable-ffserver            \
        --disable-ffprobe            \
        --disable-static            \
        --disable-symver            \
        ${ARCH_ARGS} &&
    make &&
    make install
}

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

post_install() 
{
    echo "/usr/lib/ffmpeg-compat" > /dev/null #>> "$1/etc/ld.so.conf"
}

post_remove() 
{
    sed -i '/ffmpeg-compat/d' "$1/etc/ld.so.conf"
}
6025 packages and 203154 files in current database (Thu Apr 25 06:17:47 2024)