SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "gst-plugins-base-1.0"

# SliTaz package receipt.

PACKAGE="gst-plugins-base-1.0"
VERSION="1.16.2"
SERIES="1.0"
CATEGORY="multimedia"
SHORT_DESC="GStreamer Base Plugins."
MAINTAINER="pankso@slitaz.org"
LICENSE="GPL2"
WEB_SITE="https://gstreamer.freedesktop.org/"

SOURCE="gst-plugins-base"
TARBALL="$SOURCE-$VERSION.tar.xz"
WGET_URL="${WEB_SITE}src/gst-plugins-base/$TARBALL"

DEPENDS="alsa-lib gstreamer-1.0 libogg libtheora libtheora-enc 
    libvorbis opus orc pango udev vorbis-tools xorg xorg-libXv 
    xorg-libXvMC"
BUILD_DEPENDS="alsa-lib-dev automake gstreamer-1.0-dev libogg-dev libtheora-dev 
    libtheora-enc libvorbis-dev opus-dev orc-dev pango-dev udev-dev 
    util-linux-uuid-dev xorg-libXv-dev xorg-libXvMC-dev"

HOST_ARCH="i486 arm"

# Arch install
case "$SLITAZ_ARCH" in
    i?86) DEPENDS="$DEPENDS cdparanoia-III orc" ;
esac

# Cross compilation
case "$ARCH" in
    i?86) BUILD_DEPENDS="$BUILD_DEPENDS cdparanoia-III-dev orc-dev" ;
esac

current_version()
{
    wget -O - https://gstreamer.freedesktop.org/src/${PACKAGE%-1.0}/ 2>/dev/null | \
    sed '/tar/!d;s|.*'${PACKAGE%-1.0}'-||;s|.tar.*||' | sed '$!d'
}

# Rules to configure and make the package.
compile_rules()
{
    sysroot="/cross/arm/sysroot"
    libs="/usr/lib"
    incl="/usr/include"
    sed -i '/set ERROR_C/d'    configure
    grep -rl '\\n\\#include' . | xargs sed -i 's|\\n\\#include|\\n#include|'

    ./configure                            \
        --prefix=/usr                        \
        --sysconfdir=/etc                    \
        --localstatedir=/var                    \
        --enable-experimental                    \
        --disable-static                    \
        --disable-debug                        \
        --disable-gnome-vfs                    \
        --disable-libvisual                    \
        --disable-vorbisidec                    \
        --enable-introspection=no                \
        --with-package-name="GStreamer Base Plugins ($SERIES)"    \
        --with-package-origin="http://www.slitaz.org/"        \
        $CONFIGURE_ARGS | grep -v 'vorbisidec' &&
    make $MAKEFLAGS &&
    make install 2>/dev/null
}

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

    mv $install/usr/bin                $fs/usr
    mv $install/usr/lib/*.so*            $fs/usr/lib
    mv $install/usr/lib/gstreamer-$SERIES/*.so*    $fs/usr/lib/gstreamer-$SERIES
}
5935 packages and 845883 files in cooking database (Thu Jun 27 00:01:54 2024)