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.18.5"
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 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 meson"

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|'

        meson build \
            --prefix=/usr \
            --libdir=lib \
            --bindir=/usr/bin \
            --sbindir=/usr/sbin \
            --sysconfdir=/etc \
            --localstatedir=/var \
            --buildtype=release \
        -Dintrospection=disabled \
        -Dpackage-name="GStreamer Base Plugins ($SERIES)" \
        -Dpackage-origin="http://www.slitaz.org/" &&
        ninja -C build &&
        ninja -C build install
}

# 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
}
6025 packages and 203154 files in current database (Thu Apr 25 06:17:47 2024)