wok-current rev 16236
ARM: add libtirpc, libcap, rpcbind (we want pkgs for a NAS)
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Wed Apr 02 10:08:04 2014 +0200 (2014-04-02) |
parents | 14fa6943c565 |
children | 4cd474907d60 |
files | gst-plugins-base/receipt gstreamer-dev/receipt gstreamer/receipt libcap-dev/receipt libcap/receipt libtirpc-dev/receipt libtirpc/receipt nfs-utils/receipt rpcbind/receipt tuxmath/receipt |
line diff
1.1 --- a/gst-plugins-base/receipt Wed Apr 02 00:09:26 2014 +0200 1.2 +++ b/gst-plugins-base/receipt Wed Apr 02 10:08:04 2014 +0200 1.3 @@ -10,20 +10,25 @@ 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="gstreamer pango alsa-lib libogg libtheora libtheora-enc \ 1.11 +libvorbis vorbis-tools udev xorg-libXv xorg-libXvMC cdparanoia-III orc" 1.12 +BUILD_DEPENDS="gstreamer-dev pango-dev alsa-lib-dev libogg-dev \ 1.13 +libtheora-dev libtheora-enc libvorbis-dev udev-dev xorg-libXv-dev \ 1.14 +xorg-libXvMC-dev util-linux-uuid-dev" 1.15 1.16 -DEPENDS="gstreamer pango 1.17 -alsa-lib libogg libtheora libtheora-enc libvorbis vorbis-tools udev 1.18 -xorg xorg-libXv xorg-libXvMC cdparanoia-III orc" 1.19 -BUILD_DEPENDS="gstreamer-dev pango-dev gobject-introspection-dev \ 1.20 -alsa-lib-dev libogg-dev libtheora-dev libtheora-enc libvorbis-dev udev-dev \ 1.21 -xorg-dev xorg-libXv-dev xorg-libXvMC-dev cdparanoia-III-dev orc-dev \ 1.22 -util-linux-uuid-dev" 1.23 +# Handle cross compilation 1.24 +case "$ARCH" in 1.25 + i?86) BUILD_DEPENDS="$BUILD_DEPENDS cdparanoia-III-dev orc-dev \ 1.26 +gobject-introspection-dev xorg-dev" ;; 1.27 +esac 1.28 1.29 # Rules to configure and make the package. 1.30 compile_rules() 1.31 { 1.32 - cd $src 1.33 + export CPPFLAGS="-I/cross/$ARCH/sysroot/usr/include" 1.34 ./configure \ 1.35 --prefix=/usr \ 1.36 --sysconfdir=/etc \
2.1 --- a/gstreamer-dev/receipt Wed Apr 02 00:09:26 2014 +0200 2.2 +++ b/gstreamer-dev/receipt Wed Apr 02 10:08:04 2014 +0200 2.3 @@ -9,8 +9,9 @@ 2.4 LICENSE="LGPL2" 2.5 WANTED="gstreamer" 2.6 WEB_SITE="http://gstreamer.freedesktop.org/" 2.7 +HOST_ARCH="i486 arm" 2.8 2.9 -DEPENDS="gstreamer glib-dev libgio-dev libxml2-dev pkg-config" 2.10 +DEPENDS="gstreamer glib-dev libgio-dev libxml2-dev" 2.11 2.12 # Rules to gen a SliTaz package suitable for Tazpkg. 2.13 genpkg_rules() 2.14 @@ -19,9 +20,13 @@ 2.15 cp -a $install/usr/include $fs/usr 2.16 cp -a $install/usr/lib/pkgconfig $fs/usr/lib 2.17 cp -a $install/usr/lib/*.*a $fs/usr/lib/ 2.18 - cp -a $install/usr/lib/gstreamer-$SERIES/*.*a $fs/usr/lib/gstreamer-$SERIES 2.19 + cp -a $install/usr/lib/gstreamer-$SERIES/*.*a \ 2.20 + $fs/usr/lib/gstreamer-$SERIES 2.21 + [ -d "$install/usr/lib/girepository-1.0" ] && \ 2.22 + cp -a $install/usr/lib/girepository-1.0 $fs/usr/lib 2.23 + [ -d "$install/usr/share/gir-1.0" ] && \ 2.24 + cp -a $install/usr/share/gir-1.0 $fs/usr/share 2.25 cp -a $install/usr/share/aclocal $fs/usr/share 2.26 - cp -a $install/usr/share/gir-1.0 $fs/usr/share 2.27 cd $fs/usr/include 2.28 ln -s gstreamer-$SERIES/gst gst 2.29 }
3.1 --- a/gstreamer/receipt Wed Apr 02 00:09:26 2014 +0200 3.2 +++ b/gstreamer/receipt Wed Apr 02 10:08:04 2014 +0200 3.3 @@ -10,16 +10,24 @@ 3.4 TARBALL="$PACKAGE-$VERSION.tar.xz" 3.5 WEB_SITE="http://gstreamer.freedesktop.org/" 3.6 WGET_URL="$WEB_SITE/src/$PACKAGE/$TARBALL" 3.7 +HOST_ARCH="i486 arm" 3.8 + 3.9 LOCALES="da de es fr id it pt_BR ru zh_CN" 3.10 +DEPENDS="glib libgio libxml2" 3.11 +BUILD_DEPENDS="glib-dev libgio-dev libxml2-dev" 3.12 3.13 -DEPENDS="glib libgio libxml2" 3.14 -BUILD_DEPENDS="glib-dev libgio-dev libxml2-dev gobject-introspection-dev 3.15 -intltool pkg-config bison flex python python-dev m4 valgrind" 3.16 +# Handle cross compilation 3.17 +case "$ARCH" in 3.18 + i?86) BUILD_DEPENDS="$BUILD_DEPENDS gobject-introspection-dev \ 3.19 +python-dev bison flex m4 valgrind" 3.20 + origin="http://www.slitaz.org" ;; 3.21 + arm*) 3.22 + origin="http://arm.slitaz.org" 3.23 +esac 3.24 3.25 # Rules to configure and make the package. 3.26 compile_rules() 3.27 { 3.28 - cd $src 3.29 ./configure \ 3.30 --sysconfdir=/etc \ 3.31 --localstatedir=/var \ 3.32 @@ -29,7 +37,7 @@ 3.33 --disable-examples \ 3.34 --disable-debug \ 3.35 --with-package-name="GStreamer ($SERIES)" \ 3.36 - --with-package-origin="http://www.slitaz.org/" \ 3.37 + --with-package-origin="$origin" \ 3.38 $CONFIGURE_ARGS && 3.39 make $MAKEFLAGS && make install 3.40 } 3.41 @@ -38,11 +46,10 @@ 3.42 genpkg_rules() 3.43 { 3.44 mkdir -p $fs/usr/lib/gstreamer-$SERIES $fs/usr/bin $fs/usr/share/locale 3.45 - mv $install/usr/bin/*-$SERIES $fs/usr/bin 3.46 - mv $install/usr/lib/*.so* $fs/usr/lib 3.47 - mv $install/usr/lib/gstreamer-$SERIES/*.so $fs/usr/lib/gstreamer-$SERIES 3.48 - mv $install/usr/lib/gstreamer-$SERIES/gst-* $fs/usr/lib/gstreamer-$SERIES 3.49 - mv $install/usr/lib/girepository-1.0 $fs/usr/lib 3.50 + cp -a $install/usr/bin/*-$SERIES $fs/usr/bin 3.51 + cp -a $install/usr/lib/*.so* $fs/usr/lib 3.52 + cp -a $install/usr/lib/gstreamer-$SERIES/*.so $fs/usr/lib/gstreamer-$SERIES 3.53 + cp -a $install/usr/lib/gstreamer-$SERIES/gst-* $fs/usr/lib/gstreamer-$SERIES 3.54 for locale in $LOCALES; do 3.55 mv $install/usr/share/locale/$locale $fs/usr/share/locale 3.56 done
4.1 --- a/libcap-dev/receipt Wed Apr 02 00:09:26 2014 +0200 4.2 +++ b/libcap-dev/receipt Wed Apr 02 10:08:04 2014 +0200 4.3 @@ -8,6 +8,7 @@ 4.4 LICENSE="BSD" 4.5 WANTED="libcap" 4.6 WEB_SITE="http://sites.google.com/site/fullycapable/" 4.7 +HOST_ARCH="i486 arm" 4.8 4.9 DEPENDS="libcap" 4.10
5.1 --- a/libcap/receipt Wed Apr 02 00:09:26 2014 +0200 5.2 +++ b/libcap/receipt Wed Apr 02 10:08:04 2014 +0200 5.3 @@ -9,29 +9,25 @@ 5.4 TARBALL="$PACKAGE-$VERSION.tar.bz2" 5.5 WEB_SITE="http://sites.google.com/site/fullycapable/" 5.6 WGET_URL="http://ftp.df.lth.se/pub/linux/libs/security/linux-privs/libcap2/$TARBALL" 5.7 +HOST_ARCH="i486 arm" 5.8 5.9 -DEPENDS="linux glibc-base attr" 5.10 -BUILD_DEPENDS="slitaz-toolchain gperf pam pam-dev attr-dev perl" 5.11 +DEPENDS="attr" 5.12 +BUILD_DEPENDS="gperf pam-dev attr-dev" 5.13 + 5.14 +# Handle cross compilation. 5.15 +case "$ARCH" in 5.16 + i?86) BUILD_DEPENDS="$BUILD_DEPENDS perl" ;; 5.17 + arm*) ARCH_ARGS="CC=$HOST_SYSTEM-gcc BUILD_CC=gcc" ;; 5.18 +esac 5.19 5.20 # Rules to configure and make the package. 5.21 compile_rules() 5.22 { 5.23 -# if [ ! -d $WOK/linux/taz ]; then 5.24 -# if [ -x /usr/bin/cook ]; then 5.25 -# cook linux 5.26 -# else 5.27 -# tazwok cook linux 5.28 -# fi 5.29 -# fi 5.30 - cd $src 5.31 -# sed -i -e s/'\\n'/"' -e '1i"/g -e 's/| indent -kr//' libcap/Makefile 5.32 -# mkdir -p libcap/include/attr 5.33 -# ln -s $WOK/linux/$(ls $WOK/linux/taz)/include/linux/xattr.h \ 5.34 -# libcap/include/attr/ 5.35 - 5.36 - # Linux headers are now sanitized properly for userspace, so patch libcap 5.37 - # Based on http://bugs.gentoo.org/265304 and http://www.mail-archive.com/pld-cvs-commit@lists.pld-linux.org/msg183775.html 5.38 - [ $(grep -c "#define __user" < libcap/include/sys/capability.h) -eq 0 ] || patch -p1 << EOP 5.39 + # Linux headers are now sanitized properly for userspace, so patch 5.40 + # libcap. Based on http://bugs.gentoo.org/265304 and 5.41 + # http://www.mail-archive.com/pld-cvs-commit@lists.pld-linux.org/msg183775.html 5.42 + [ $(grep -c "#define __user" < libcap/include/sys/capability.h) -eq 0 ] \ 5.43 + || patch -p1 << EOP 5.44 --- libcap-2.16/libcap/include/sys/capability.h.orig 2009-03-05 11:19:00.000000000 -0300 5.45 +++ libcap-2.16/libcap/include/sys/capability.h 2009-03-05 11:19:38.000000000 -0300 5.46 @@ -22,18 +22,6 @@ extern "C" { 5.47 @@ -54,9 +50,9 @@ 5.48 5.49 /* 5.50 EOP 5.51 - 5.52 - sed -i -e 's/\} __user \*cap_user_/\} \*cap_user_/g' libcap/include/linux/capability.h 5.53 - make DYNAMIC=yes && 5.54 + sed -i -e 's/\} __user \*cap_user_/\} \*cap_user_/g' \ 5.55 + libcap/include/linux/capability.h 5.56 + make DYNAMIC=yes ${ARCH_ARGS} && 5.57 make RAISE_SETCAP=no DESTDIR=$DESTDIR install 5.58 } 5.59
6.1 --- a/libtirpc-dev/receipt Wed Apr 02 00:09:26 2014 +0200 6.2 +++ b/libtirpc-dev/receipt Wed Apr 02 10:08:04 2014 +0200 6.3 @@ -8,13 +8,13 @@ 6.4 LICENSE="BSD" 6.5 WEB_SITE="http://libtirpc.sourceforge.net/" 6.6 WANTED="libtirpc" 6.7 - 6.8 -DEPENDS="libtirpc" 6.9 +HOST_ARCH="i486 arm" 6.10 6.11 # Rules to gen a SliTaz package suitable for Tazpkg. 6.12 genpkg_rules() 6.13 { 6.14 mkdir -p $fs/usr/lib 6.15 cp -a $install/usr/lib/*a $fs/usr/lib 6.16 + cp -a $install/usr/lib/pkgconfig $fs/usr/lib 6.17 cp -a $install/usr/include $fs/usr 6.18 }
7.1 --- a/libtirpc/receipt Wed Apr 02 00:09:26 2014 +0200 7.2 +++ b/libtirpc/receipt Wed Apr 02 10:08:04 2014 +0200 7.3 @@ -9,16 +9,13 @@ 7.4 TARBALL="$PACKAGE-$VERSION.tar.bz2" 7.5 WEB_SITE="http://libtirpc.sourceforge.net/" 7.6 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL" 7.7 +HOST_ARCH="i486 arm" 7.8 7.9 # Rules to configure and make the package. 7.10 compile_rules() 7.11 { 7.12 - cd $src 7.13 - ./configure --prefix=/usr --infodir=/usr/share/info \ 7.14 - --mandir=/usr/share/man \ 7.15 - $CONFIGURE_ARGS && 7.16 - make && 7.17 - make DESTDIR=$DESTDIR install 7.18 + ./configure $CONFIGURE_ARGS && 7.19 + make && make install 7.20 } 7.21 7.22 # Rules to gen a SliTaz package suitable for Tazpkg. 7.23 @@ -26,6 +23,5 @@ 7.24 { 7.25 mkdir -p $fs/usr/lib 7.26 cp -a $install/usr/lib/*.so* $fs/usr/lib 7.27 - cp -a $install/usr/lib/pkgconfig $fs/usr/lib 7.28 cp -a $install/etc $fs 7.29 }
8.1 --- a/nfs-utils/receipt Wed Apr 02 00:09:26 2014 +0200 8.2 +++ b/nfs-utils/receipt Wed Apr 02 10:08:04 2014 +0200 8.3 @@ -11,19 +11,30 @@ 8.4 WGET_URL="$SF_MIRROR/nfs/$PACKAGE/$VERSION/$TARBALL" 8.5 CONFIG_FILES="/etc/exports" 8.6 TAGS="filesystem" 8.7 +HOST_ARCH="i486 arm" 8.8 8.9 -DEPENDS="libtirpc libwrap util-linux-blkid util-linux-uuid rpcbind linux-nfsd" 8.10 -BUILD_DEPENDS="libtirpc-dev util-linux-blkid-dev libcap-dev libwrap-dev \ 8.11 +DEPENDS="libtirpc libwrap libcap util-linux-blkid util-linux-uuid rpcbind" 8.12 +BUILD_DEPENDS="libtirpc-dev libcap-dev libwrap-dev util-linux-blkid-dev \ 8.13 util-linux-uuid-dev util-linux-blkid" 8.14 8.15 +# Handle SliTaz arch. 8.16 +case "$SLITAZ_ARCH" in 8.17 + i?86) DEPENDS="$DEPENDS linux-nfsd" ;; 8.18 +esac 8.19 + 8.20 +# Handle cross compilation. 8.21 +case "$ARCH" in 8.22 + arm*) ARCH_ARGS="--with-tirpcinclude=/cross/arm/sysroot/usr/include/tirpc" ;; 8.23 +esac 8.24 + 8.25 # Rules to configure and make the package. 8.26 compile_rules() 8.27 { 8.28 - cd $src 8.29 + sh autogen.sh 8.30 ./configure --prefix=/usr --infodir=/usr/share/info \ 8.31 --disable-nfsv4 --disable-gss \ 8.32 --mandir=/usr/share/man \ 8.33 - $CONFIGURE_ARGS && 8.34 + $CONFIGURE_ARGS ${ARCH_ARGS} && 8.35 make && 8.36 make DESTDIR=$DESTDIR install 8.37 }
9.1 --- a/rpcbind/receipt Wed Apr 02 00:09:26 2014 +0200 9.2 +++ b/rpcbind/receipt Wed Apr 02 10:08:04 2014 +0200 9.3 @@ -9,18 +9,22 @@ 9.4 TARBALL="$PACKAGE-$VERSION.tar.bz2" 9.5 WEB_SITE="http://rpcbind.sourceforge.net/" 9.6 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL" 9.7 +HOST_ARCH="i486 arm" 9.8 + 9.9 DEPENDS="libtirpc" 9.10 BUILD_DEPENDS="libtirpc-dev" 9.11 9.12 +# Handle cross compilation. 9.13 +case "$ARCH" in 9.14 + arm*) export CPPFLAGS="-I/cross/$ARCH/sysroot/usr/include/tirpc" ;; 9.15 +esac 9.16 + 9.17 # Rules to configure and make the package. 9.18 compile_rules() 9.19 { 9.20 - cd $src 9.21 - ./configure --prefix=/usr --infodir=/usr/share/info \ 9.22 - --mandir=/usr/share/man \ 9.23 - $CONFIGURE_ARGS && 9.24 - make && 9.25 - make DESTDIR=$DESTDIR install 9.26 + ./configure \ 9.27 + $CONFIGURE_ARGS && 9.28 + make && make install 9.29 } 9.30 9.31 # Rules to gen a SliTaz package suitable for Tazpkg.
10.1 --- a/tuxmath/receipt Wed Apr 02 00:09:26 2014 +0200 10.2 +++ b/tuxmath/receipt Wed Apr 02 10:08:04 2014 +0200 10.3 @@ -10,17 +10,16 @@ 10.4 TARBALL="$SOURCE-$VERSION.tar.gz" 10.5 WEB_SITE="http://tux4kids.alioth.debian.org" 10.6 WGET_URL="https://alioth.debian.org/frs/download.php/3571/$TARBALL" 10.7 + 10.8 DEPENDS="libt4k_common libsdl librsvg libsdl-image libsdl-mixer libsdl-ttf \ 10.9 libsdl-net libsdl-pango" 10.10 BUILD_DEPENDS="libt4k_common-dev libsdl-dev librsvg-dev libsdl-image-dev \ 10.11 libsdl-mixer-dev libsdl-ttf-dev libsdl-net-dev libsdl-pango-dev wget" 10.12 TAGS="education" 10.13 10.14 - 10.15 # Rules to configure and make the package. 10.16 compile_rules() 10.17 { 10.18 - cd $src 10.19 #patch -p1 -i $stuff/SDL_extras.c.patch 10.20 ./configure LIBS="-lt4k_common" \ 10.21 --prefix=/usr \