# SliTaz package receipt. PACKAGE="gst-ffmpeg" VERSION="0.10.13" SERIES="${VERSION%.*}" # first two numbers from version CATEGORY="multimedia" SHORT_DESC="GStreamer FFmpeg Plugins" MAINTAINER="jozee@slitaz.org" LICENSE="GPL2" TARBALL="$PACKAGE-$VERSION.tar.bz2" WEB_SITE="https://gstreamer.freedesktop.org/" WGET_URL="$WEB_SITE/src/$PACKAGE/$TARBALL" PROVIDE="gst-ffmpeg-small" DEPENDS="gst-plugins-base bzip2" BUILD_DEPENDS="gstreamer-dev gst-plugins-base-dev bzip2-dev \ coreutils-file-format coreutils-file-special glib-dev yasm" SUGGESTED="gst-plugins-good" # What is the latest version available today? 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() { # Patch to work with gcc >= 4.7 patch -p1 < $stuff/gst-ffmpeg_gcc47.patch sed -i 's|ORC_TARGET_ALTIVEC_ALTIVEC|ORC_TARGET_POWERPC_ALTIVEC|' ext/*/*.c ./configure \ --prefix=/usr \ --disable-static \ --with-ffmpeg-extra-configure="--enable-runtime-cpudetect" \ --with-package-name="GStreamer FFMpeg Plugin ($SERIES)" \ --with-package-origin="http://www.slitaz.org/" \ $CONFIGURE_ARGS && sed 's/RANK_NONE/RANK_SECONDARY/g' -i $src/ext/ffmpeg/gstffmpegdec.c make $MAKEFLAGS && make DESTDIR=$install install } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { mkdir -p $fs/usr/lib/gstreamer-$SERIES cp -a $install/usr/lib/gstreamer-$SERIES/*.so* $fs/usr/lib/gstreamer-$SERIES }