wok-current view gst-plugins-base/receipt @ rev 25672
patch tazpkg, upgrade core pkgs first
author | Stanislas Leduc <shann@slitaz.org> |
---|---|
date | Sun Mar 03 17:58:42 2024 +0000 (5 months ago) |
parents | 6831608a1b2a |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="gst-plugins-base"
4 VERSION="0.10.36"
5 SERIES="${VERSION%.*}" # first two numbers from version
6 CATEGORY="multimedia"
7 SHORT_DESC="GStreamer Base Plugins"
8 MAINTAINER="jozee@slitaz.org"
9 LICENSE="GPL2"
10 TARBALL="$PACKAGE-$VERSION.tar.xz"
11 WEB_SITE="https://gstreamer.freedesktop.org/"
12 WGET_URL="$WEB_SITE/src/$PACKAGE/$TARBALL"
13 #HOST_ARCH="i486 arm"
15 LOCALES="da de es fr id it pt_BR ru zh_CN"
16 DEPENDS="gstreamer pango alsa-lib libogg libvorbis vorbis-tools udev \
17 xorg-libXv xorg-libXvMC cdparanoia-III orc libtheora-enc"
18 BUILD_DEPENDS="gstreamer-dev pango-dev alsa-lib-dev libogg-dev \
19 libtheora-dev libtheora-enc libvorbis-dev udev-dev xorg-libXv-dev \
20 xorg-libXvMC-dev util-linux-uuid-dev"
22 # Handle cross compilation
23 case "$ARCH" in
24 i?86) BUILD_DEPENDS="$BUILD_DEPENDS cdparanoia-III-dev orc-dev \
25 gobject-introspection-dev xorg-dev" ;;
26 esac
28 current_version()
29 {
30 wget -O - https://gstreamer.freedesktop.org/src/$PACKAGE/ 2>/dev/null | \
31 sed /$PACKAGE'-0/!d;s|.*'$PACKAGE'-||;s|.tar.*||' | sed '$!d'
32 }
34 # Rules to configure and make the package.
35 compile_rules()
36 {
37 patch -p1 < $stuff/fix_xmmintrin_ss2.patch
38 patch -p1 < $stuff/fix_xmmintrin_gcc4.9_build.patch
40 find | grep Makefile | xargs sed 's|\\n\\#inc|\\n#inc|' -i common/gst-glib-gen.mak
41 case "$ARCH" in
42 i?86) ;;
43 *) export CPPFLAGS="$CPPFLAGS -I/cross/$ARCH/sysroot/usr/include" ;;
44 esac
45 ./configure \
46 --prefix=/usr \
47 --sysconfdir=/etc \
48 --localstatedir=/var \
49 --enable-experimental \
50 --disable-static \
51 --disable-debug \
52 --disable-gnome_vfs \
53 --with-package-name="GStreamer Base Plugins ($SERIES)" \
54 --with-package-origin="http://www.slitaz.org/" \
55 $CONFIGURE_ARGS &&
56 make $MAKEFLAGS && make install
58 }
60 # Rules to gen a SliTaz package suitable for Tazpkg.
61 genpkg_rules()
62 {
63 mkdir -p $fs/usr/lib/gstreamer-$SERIES $fs/usr/share/locale
64 mv $install/usr/bin $fs/usr
65 mv $install/usr/lib/*.so* $fs/usr/lib
66 mv $install/usr/lib/gstreamer-$SERIES/*.so* $fs/usr/lib/gstreamer-$SERIES
67 # mv $install/usr/lib/girepository-1.0 $fs/usr/lib
68 # for locale in $LOCALES; do
69 # mv $install/usr/share/locale/$locale $fs/usr/share/locale
70 # done
71 }