wok-current view gstreamer-1.0/receipt @ rev 25728
Merge wok for both arch and few updates
author | Stanislas Leduc <shann@slitaz.org> |
---|---|
date | Thu Dec 05 08:39:45 2024 +0000 (5 weeks ago) |
parents | 3ad63c8fc2f9 |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="gstreamer-1.0"
4 VERSION="1.18.5"
5 SERIES="1.0"
6 CATEGORY="multimedia"
7 SHORT_DESC="GStreamer Multimedia Framework."
8 MAINTAINER="pankso@slitaz.org"
9 LICENSE="LGPL2"
10 WEB_SITE="https://gstreamer.freedesktop.org/"
12 SOURCE="gstreamer"
13 TARBALL="$SOURCE-$VERSION.tar.xz"
14 WGET_URL="$WEB_SITE/src/gstreamer/$TARBALL"
16 DEPENDS="glib libgio libxml2"
17 BUILD_DEPENDS="glib-dev libgio-dev \
18 libxml2-dev pkg-config meson"
20 HOST_ARCH="i486 arm x86_64"
22 # Handle cross compilation
23 case "$ARCH" in
24 i?86|x86_64) BUILD_DEPENDS="$BUILD_DEPENDS bison flex python-dev valgrind" ;;
25 esac
27 current_version()
28 {
29 wget -O - https://gstreamer.freedesktop.org/src/${PACKAGE%-1.0}/ 2>/dev/null | \
30 sed '/tar/!d;s|.*'${PACKAGE%-1.0}'-||;s|.tar.*||' | sed '$!d'
31 }
33 # Rules to configure and make the package.
34 compile_rules()
35 {
36 meson build \
37 --prefix=/usr \
38 --libdir=lib \
39 --bindir=/usr/bin \
40 --sbindir=/usr/sbin \
41 --sysconfdir=/etc \
42 --localstatedir=/var \
43 --buildtype=release \
44 -Dintrospection=disabled \
45 -Dpackage-name="GStreamer ($SERIES)" \
46 -Dpackage-origin="http://www.slitaz.org/" \
47 -Dcoretracers=disabled &&
48 ninja -C build &&
49 ninja -C build install
50 }
52 # Rules to gen a SliTaz package suitable for Tazpkg.
53 genpkg_rules()
54 {
55 mkdir -p $fs/usr/lib/gstreamer-$SERIES
56 mkdir -p $fs/usr/libexec/gstreamer-$SERIES
57 mkdir -p $fs/usr/bin
58 mkdir -p $fs/usr/share/locale
60 mv $install/usr/bin/*-$SERIES $fs/usr/bin
61 mv $install/usr/lib/*.so* $fs/usr/lib
62 mv $install/usr/lib/gstreamer-$SERIES/*.so $fs/usr/lib/gstreamer-$SERIES
63 mv $install/usr/libexec/gstreamer-$SERIES/gst-* $fs/usr/libexec/gstreamer-$SERIES
64 for locale in $LOCALES
65 do
66 mv $install/usr/share/locale/$locale $fs/usr/share/locale
67 done
68 }