wok diff gstreamer/receipt @ rev 16823
Add minitube.
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Fri Jul 11 16:47:18 2014 +0300 (2014-07-11) |
parents | dead8955c3ca |
children | b6a74775afd4 |
line diff
1.1 --- a/gstreamer/receipt Wed Sep 25 09:50:51 2013 +0000 1.2 +++ b/gstreamer/receipt Fri Jul 11 16:47:18 2014 +0300 1.3 @@ -10,16 +10,24 @@ 1.4 TARBALL="$PACKAGE-$VERSION.tar.xz" 1.5 WEB_SITE="http://gstreamer.freedesktop.org/" 1.6 WGET_URL="$WEB_SITE/src/$PACKAGE/$TARBALL" 1.7 +HOST_ARCH="i486 arm" 1.8 + 1.9 LOCALES="da de es fr id it pt_BR ru zh_CN" 1.10 +DEPENDS="glib libgio libxml2" 1.11 +BUILD_DEPENDS="glib-dev libgio-dev libxml2-dev" 1.12 1.13 -DEPENDS="glib libgio libxml2" 1.14 -BUILD_DEPENDS="glib-dev libgio-dev libxml2-dev gobject-introspection-dev 1.15 -intltool pkg-config bison flex python python-dev m4 valgrind" 1.16 +# Handle cross compilation 1.17 +case "$ARCH" in 1.18 + i?86) BUILD_DEPENDS="$BUILD_DEPENDS gobject-introspection-dev \ 1.19 +python-dev bison flex m4 valgrind" 1.20 + origin="http://www.slitaz.org" ;; 1.21 + arm*) 1.22 + origin="http://arm.slitaz.org" 1.23 +esac 1.24 1.25 # Rules to configure and make the package. 1.26 compile_rules() 1.27 { 1.28 - cd $src 1.29 ./configure \ 1.30 --sysconfdir=/etc \ 1.31 --localstatedir=/var \ 1.32 @@ -29,7 +37,7 @@ 1.33 --disable-examples \ 1.34 --disable-debug \ 1.35 --with-package-name="GStreamer ($SERIES)" \ 1.36 - --with-package-origin="http://www.slitaz.org/" \ 1.37 + --with-package-origin="$origin" \ 1.38 $CONFIGURE_ARGS && 1.39 make $MAKEFLAGS && make install 1.40 } 1.41 @@ -38,11 +46,10 @@ 1.42 genpkg_rules() 1.43 { 1.44 mkdir -p $fs/usr/lib/gstreamer-$SERIES $fs/usr/bin $fs/usr/share/locale 1.45 - mv $install/usr/bin/*-$SERIES $fs/usr/bin 1.46 - mv $install/usr/lib/*.so* $fs/usr/lib 1.47 - mv $install/usr/lib/gstreamer-$SERIES/*.so $fs/usr/lib/gstreamer-$SERIES 1.48 - mv $install/usr/lib/gstreamer-$SERIES/gst-* $fs/usr/lib/gstreamer-$SERIES 1.49 - mv $install/usr/lib/girepository-1.0 $fs/usr/lib 1.50 + cp -a $install/usr/bin/*-$SERIES $fs/usr/bin 1.51 + cp -a $install/usr/lib/*.so* $fs/usr/lib 1.52 + cp -a $install/usr/lib/gstreamer-$SERIES/*.so $fs/usr/lib/gstreamer-$SERIES 1.53 + cp -a $install/usr/lib/gstreamer-$SERIES/gst-* $fs/usr/lib/gstreamer-$SERIES 1.54 for locale in $LOCALES; do 1.55 mv $install/usr/share/locale/$locale $fs/usr/share/locale 1.56 done