wok annotate gst-plugins-bad/receipt @ rev 24142

linux-aufs: git checkout problem ?
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Nov 15 08:46:59 2021 +0000 (2021-11-15)
parents 9258333ebe34
children
rev   line source
jozee@2674 1 # SliTaz package receipt.
jozee@2674 2
jozee@2674 3 PACKAGE="gst-plugins-bad"
domcox@14021 4 VERSION="0.10.23"
pascal@24111 5 SERIES="${VERSION%.*}" # first two numbers from version
jozee@2674 6 CATEGORY="multimedia"
jozee@2674 7 SHORT_DESC="GStreamer Bad Plugins"
jozee@2674 8 MAINTAINER="jozee@slitaz.org"
pascal@15000 9 LICENSE="GPL2"
domcox@14021 10 SUGGESTED="libsdl schroedinger"
domcox@14021 11 TARBALL="$PACKAGE-$VERSION.tar.xz"
pascal@20669 12 WEB_SITE="https://gstreamer.freedesktop.org/"
slaxemulator@6757 13 WGET_URL="$WEB_SITE/src/$PACKAGE/$TARBALL"
domcox@14021 14 LOCALES="da de es fr id it pt_BR ru zh_CN"
jozee@2674 15
domcox@14480 16 DEPENDS="gst-plugins-base faac libpng libvpx openssl xvidcore
domcox@14480 17 faad2 jasper libmms libmodplug libsndfile mjpegtools neon"
domcox@14480 18 BUILD_DEPENDS="gstreamer-dev gst-plugins-base-dev
domcox@14480 19 faac-dev libpng-dev libvpx-dev openssl-dev xvidcore-dev jpeg-dev
domcox@14480 20 faad2-dev jasper-dev libmms-dev libmodplug-dev libsndfile-dev libsdl-dev
pascal@17762 21 mjpegtools-dev neon-dev schroedinger-dev expat-dev flac-dev"
pascal@14037 22
pascal@24070 23 current_version()
pascal@24070 24 {
pascal@24070 25 wget -O - https://gstreamer.freedesktop.org/src/$PACKAGE/ 2>/dev/null | \
pascal@24070 26 sed '/tar/!d;s|.*'$PACKAGE'-||;s|.tar.*||' | sed '$!d'
pascal@24070 27 }
pascal@24070 28
jozee@2674 29 # Rules to configure and make the package.
jozee@2674 30 compile_rules()
jozee@2674 31 {
pascal@24078 32 grep -rl '\\n\\#include' . | xargs sed -i 's|\\n\\#include|\\n#include|'
pascal@21405 33 sed -i 's|ndef VPX_|def |' ext/vp8/gstvp8utils.h
pascal@21405 34 sed -i 's|stdafx.h|libmodplug/&|' ext/modplug/gstmodplug.cc
domcox@14021 35 ./configure \
domcox@14021 36 --prefix=/usr \
domcox@14021 37 --sysconfdir=/etc \
domcox@14021 38 --localstatedir=/var \
domcox@14021 39 --disable-static \
domcox@14021 40 --disable-debug \
domcox@14021 41 --enable-experimental \
domcox@14021 42 --with-package-name="GStreamer Bad Plugins ($SERIES)" \
domcox@14021 43 --with-package-origin="http://www.slitaz.org/" \
pascal@15265 44 $CONFIGURE_ARGS &&
gokhlayeh@11574 45 make $MAKEFLAGS &&
domcox@14021 46 make install
jozee@2674 47 }
jozee@2674 48
jozee@2674 49 # Rules to gen a SliTaz package suitable for Tazpkg.
jozee@2674 50 genpkg_rules()
jozee@2674 51 {
domcox@14021 52 mkdir -p $fs/usr/lib/gstreamer-$SERIES $fs/usr/share/locale
domcox@14021 53 mv $install/usr/lib/*.so* $fs/usr/lib
domcox@14021 54 mv $install/usr/lib/gstreamer-$SERIES/*.so* $fs/usr/lib/gstreamer-$SERIES
domcox@14021 55 for locale in $LOCALES; do
domcox@14021 56 mv $install/usr/share/locale/$locale $fs/usr/share/locale
domcox@14021 57 done
jozee@2674 58 }