wok-current annotate gst-ffmpeg/receipt @ rev 25631

Clean .la in missing dev receipt
author Stanislas Leduc <shann@slitaz.org>
date Mon Oct 16 11:30:26 2023 +0000 (14 months ago)
parents d8e0f58e2f5e
children 5926178cd6fa
rev   line source
jozee@2674 1 # SliTaz package receipt.
jozee@2674 2
jozee@2674 3 PACKAGE="gst-ffmpeg"
psychomaniak@17443 4 VERSION="0.10.13"
pascal@24111 5 SERIES="${VERSION%.*}" # first two numbers from version
jozee@2674 6 CATEGORY="multimedia"
jozee@2674 7 SHORT_DESC="GStreamer FFmpeg Plugins"
jozee@2674 8 MAINTAINER="jozee@slitaz.org"
pascal@15000 9 LICENSE="GPL2"
slaxemulator@7331 10 TARBALL="$PACKAGE-$VERSION.tar.bz2"
pascal@20669 11 WEB_SITE="https://gstreamer.freedesktop.org/"
jozee@2674 12 WGET_URL="$WEB_SITE/src/$PACKAGE/$TARBALL"
jozee@2674 13
psychomaniak@19132 14 PROVIDE="gst-ffmpeg-small"
psychomaniak@19132 15
domcox@14479 16 DEPENDS="gst-plugins-base bzip2"
domcox@14479 17 BUILD_DEPENDS="gstreamer-dev gst-plugins-base-dev bzip2-dev \
domcox@14479 18 coreutils-file-format coreutils-file-special glib-dev yasm"
psychomaniak@17443 19 SUGGESTED="gst-plugins-good"
domcox@14479 20
pascal@25270 21 # What is the latest version available today?
pascal@24070 22 current_version()
pascal@24070 23 {
pascal@24070 24 wget -O - https://gstreamer.freedesktop.org/src/$PACKAGE/ 2>/dev/null | \
pascal@24070 25 sed '/tar/!d;s|.*'$PACKAGE'-||;s|.tar.*||' | sed '$!d'
pascal@24070 26 }
pascal@24070 27
jozee@2674 28 # Rules to configure and make the package.
jozee@2674 29 compile_rules()
jozee@2674 30 {
shann@25624 31 # Patch to work with gcc >= 4.7
shann@25625 32 patch -p1 < $stuff/gst-ffmpeg_gcc47.patch
shann@25624 33
pascal@25270 34 sed -i 's|ORC_TARGET_ALTIVEC_ALTIVEC|ORC_TARGET_POWERPC_ALTIVEC|' ext/*/*.c
domcox@14025 35 ./configure \
domcox@14025 36 --prefix=/usr \
domcox@14025 37 --disable-static \
psychomaniak@19130 38 --with-ffmpeg-extra-configure="--enable-runtime-cpudetect" \
domcox@14025 39 --with-package-name="GStreamer FFMpeg Plugin ($SERIES)" \
domcox@14025 40 --with-package-origin="http://www.slitaz.org/" \
pascal@15265 41 $CONFIGURE_ARGS &&
psychomaniak@17444 42 sed 's/RANK_NONE/RANK_SECONDARY/g' -i $src/ext/ffmpeg/gstffmpegdec.c
gokhlayeh@11573 43 make $MAKEFLAGS &&
domcox@14025 44 make DESTDIR=$install install
jozee@2674 45 }
jozee@2674 46
jozee@2674 47 # Rules to gen a SliTaz package suitable for Tazpkg.
jozee@2674 48 genpkg_rules()
jozee@2674 49 {
domcox@14025 50 mkdir -p $fs/usr/lib/gstreamer-$SERIES
pascal@15000 51 cp -a $install/usr/lib/gstreamer-$SERIES/*.so* $fs/usr/lib/gstreamer-$SERIES
jozee@2674 52 }