SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "gst-plugins-good"

# SliTaz package receipt.

PACKAGE="gst-plugins-good"
VERSION="0.10.31"
SERIES="${VERSION%.*}"    # first two numbers from version
CATEGORY="multimedia"
SHORT_DESC="GStreamer Good Plugins"
MAINTAINER="jozee@slitaz.org"
LICENSE="LGPL2.1"
SUGGESTED="jack-audio-connection-kit gst-plugins-good-extra"
TARBALL="$PACKAGE-$VERSION.tar.xz"
WEB_SITE="https://gstreamer.freedesktop.org/"
WGET_URL="$WEB_SITE/src/$PACKAGE/$TARBALL"
LOCALES="cs da de el es fr hu id it pl pt_BR ru sl sv zh_CN zh_TW"

DEPENDS="gst-plugins-base cairo flac libjpeg libpng speex bzip2"
BUILD_DEPENDS="gstreamer-dev gst-plugins-base-dev sqlite-dev \
cairo-dev flac-dev jpeg-dev libpng-dev libshout-dev \
libsoup-dev jack-audio-connection-kit-dev libcdio-dev \
libdv-dev speex-dev taglib-dev wavpack-dev bzip2-dev util-linux-uuid-dev"

current_version()
{
    wget -O - https://gstreamer.freedesktop.org/src/$PACKAGE/ 2>/dev/null | \
    sed /$PACKAGE'-0/!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|.*vbuffer.input|// &|' sys/v4l2/gstv4l2bufferpool.c
    sed -i '/e V4L2_CID_.CENTER/d' sys/v4l2/v4l2_calls.c
    ./configure \
        --prefix=/usr \
        --sysconfdir=/etc \
        --localstatedir=/var \
        --enable-experimental \
        --disable-static \
        --disable-debug \
        --disable-hal \
        --disable-esd \
        --with-package-name="GStreamer Good Plugins ($SERIES)" \
        --with-package-origin="http://www.slitaz.org/" \
        $CONFIGURE_ARGS &&
    make $MAKEFLAGS &&
    make install
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    mkdir -p $fs/usr/lib/gstreamer-$SERIES $fs/usr/share/locale
    cp -a $install/usr/lib/gstreamer-$SERIES/*.so* $fs/usr/lib/gstreamer-$SERIES
    cp -a $install/usr/share/gstreamer* $fs/usr/share
    # for locale in $LOCALES; do
    #     cp -a $install/usr/share/locale/$locale $fs/usr/share/locale
    # done
    for i in dv jack shout2 souphttpsrc taglib wavpack rtp rtpmanager rtsp deinterlace video4linux2; do
        rm -f $fs/usr/lib/gstreamer-$SERIES/libgst${i}.so
    done
}
6025 packages and 203154 files in current database (Thu Apr 25 06:17:47 2024)