SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

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

# SliTaz package receipt.

PACKAGE="gst-plugins-bad-1.0"
VERSION="1.18.5"
SERIES="1.0"
CATEGORY="multimedia"
SHORT_DESC="GStreamer Bad Plugins"
MAINTAINER="jozee@slitaz.org"
LICENSE="GPL2"
SUGGESTED="libsdl schroedinger"
SOURCE="gst-plugins-bad"
TARBALL="$SOURCE-$VERSION.tar.xz"
WEB_SITE="https://gstreamer.freedesktop.org/"
WGET_URL="$WEB_SITE/src/gst-plugins-bad/$TARBALL"
LOCALES="da de es fr id it pt_BR ru zh_CN"

DEPENDS="gst-plugins-base-1.0 faac libpng libvpx openssl xvidcore
faad2 jasper libmms libmodplug libsndfile mjpegtools neon"
BUILD_DEPENDS="gstreamer-1.0-dev gst-plugins-base-1.0-dev
faac-dev libpng-dev libvpx-dev openssl-dev xvidcore-dev jpeg-dev
faad2-dev jasper-dev libmms-dev libmodplug-dev libsndfile-dev libsdl-dev
mjpegtools-dev neon-dev schroedinger-dev expat-dev flac-dev meson"

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

# Rules to configure and make the package.
compile_rules()
{
    #grep -rl '\\n\\#include' . | xargs sed -i 's|\\n\\#include|\\n#include|'
    #sed -i 's|ndef VPX_|def |' ext/vp8/gstvp8utils.h

    meson build \
            --prefix=/usr \
            --libdir=lib \
            --bindir=/usr/bin \
            --sbindir=/usr/sbin \
            --sysconfdir=/etc \
            --localstatedir=/var \
            --buildtype=release \
        -Dpackage-name="GStreamer Bad 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 $fs/usr/share/locale
    mv $install/usr/lib/*.so* $fs/usr/lib
    mv $install/usr/lib/gstreamer-$SERIES/*.so* $fs/usr/lib/gstreamer-$SERIES
    for locale in $LOCALES; do
        mv $install/usr/share/locale/$locale $fs/usr/share/locale
    done
}
6025 packages and 203154 files in current database (Thu Apr 25 06:17:47 2024)