# HG changeset patch # User Christophe Lincoln # Date 1394260193 -3600 # Node ID e47c0281ba48491854d7f7bfb6763c98560c2788 # Parent 61bec0518c8c135dccb13bac6f4a053d1426793e Add to ARM: libnl, wpa_supplicant, wput diff -r 61bec0518c8c -r e47c0281ba48 ffmpeg-git/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/ffmpeg-git/receipt Sat Mar 08 07:29:53 2014 +0100 @@ -0,0 +1,48 @@ +# SliTaz package receipt. + +PACKAGE="ffmpeg-git" +VERSION="snapshot" +CATEGORY="multimedia" +SHORT_DESC="Record, convert and stream audio and video (Devel version)." +MAINTAINER="pankso@slitaz.org" +LICENSE="GPL2 LGPL2.1" +WEB_SITE="http://ffmpeg.org/" +PROVIDE="ffmpeg" +TARBALL="$PACKAGE-$VERSION.tar.bz2" +WGET_URL="git|git://source.ffmpeg.org/ffmpeg.git" + +TAGS="audio video convert stream" +DEPENDS="bzlib freetype imlib2 alsa-lib jack-audio-connection-kit zlib" +BUILD_DEPENDS="subversion imlib2-dev freetype-dev libsdl-dev zlib-dev \ +coreutils-file-format coreutils-file-special" + +# Rules to configure and make the package. +compile_rules() +{ + # Fix configure for GCC 4.5.0 + #sed -i 's/"\$@" >> \$logfile 2/$@ >> $logfile 2/' configure + ./configure \ + --prefix=/usr \ + --enable-gpl \ + --arch=$ARCH \ + --cpu=$ARCH \ + --enable-shared \ + --enable-small \ + --enable-pthreads \ + --enable-postproc \ + --disable-mmx \ + --disable-mmx2 \ + --disable-ssse3 && + make && + make DESTDIR=$DESTDIR install +} + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + mkdir -p $fs/usr/lib + cp -a $install/usr/lib/*so* $fs/usr/lib + cp -a $install/usr/bin $fs/usr + # ffplay with it SDL dep go in a splited package + rm $fs/usr/bin/ffplay +} diff -r 61bec0518c8c -r e47c0281ba48 ffmpeg-svn-dev/receipt --- a/ffmpeg-svn-dev/receipt Sat Mar 08 06:26:57 2014 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,26 +0,0 @@ -# SliTaz package receipt. - -PACKAGE="ffmpeg-svn-dev" -VERSION="26402" -CATEGORY="development" -SHORT_DESC="Record, convert and stream audio and video, development files." -MAINTAINER="jozee@slitaz.org" -LICENSE="GPL2 LGPL2.1" -WEB_SITE="http://ffmpeg.org/" -WANTED="ffmpeg-svn" -PROVIDE="ffmpeg-dev" - -DEPENDS="pkg-config" - -# Rules to gen a SliTaz package suitable for Tazpkg. -genpkg_rules() -{ - mkdir -p $fs/usr/lib - cp -a $install/usr/include $fs/usr - cp -a $install/usr/lib/*.a $fs/usr/lib - cp -a $install/usr/lib/pkgconfig $fs/usr/lib - - # pixfmt.h file in svn version: Kino hack - sed -i "s/PIX_FMT_YUYV422,/PIX_FMT_YUYV422, \n PIX_FMT_YUV422,/" $fs/usr/include/libavutil/pixfmt.h -} - diff -r 61bec0518c8c -r e47c0281ba48 ffmpeg-svn/receipt --- a/ffmpeg-svn/receipt Sat Mar 08 06:26:57 2014 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,52 +0,0 @@ -# SliTaz package receipt. - -PACKAGE="ffmpeg-svn" -VERSION="26402" -CATEGORY="multimedia" -SHORT_DESC="Record, convert and stream audio and video." -MAINTAINER="jozee@slitaz.org" -LICENSE="GPL2 LGPL2.1" -WEB_SITE="http://ffmpeg.org/" -PROVIDE="ffmpeg" -SUGGESTED="ffplay" -TAGS="audio video convert stream" -TARBALL="$PACKAGE-$VERSION.tar.bz2" -WGET_URL="subversion|svn://svn.ffmpeg.org/ffmpeg/trunk" -BRANCH="$VERSION" - -DEPENDS="bzlib freetype imlib2 alsa-lib jack-audio-connection-kit zlib" -BUILD_DEPENDS="subversion imlib2-dev freetype-dev libsdl-dev zlib-dev \ -coreutils-file-format coreutils-file-special" - -# Rules to configure and make the package. -compile_rules() -{ - cd $src - - # Fix configure for GCC 4.5.0 - sed -i 's/"\$@" >> \$logfile 2/$@ >> $logfile 2/' configure - ./configure \ - --prefix=/usr \ - --enable-gpl \ - --arch=$ARCH \ - --cpu=$ARCH \ - --enable-shared \ - --enable-small \ - --enable-pthreads \ - --enable-postproc \ - --disable-mmx \ - --disable-mmx2 \ - --disable-ssse3 && - make && - make DESTDIR=$DESTDIR install -} - -# Rules to gen a SliTaz package suitable for Tazpkg. -genpkg_rules() -{ - mkdir -p $fs/usr/lib - cp -a $install/usr/lib/*so* $fs/usr/lib - cp -a $install/usr/bin $fs/usr - # ffplay with it SDL dep go in a splited package - rm $fs/usr/bin/ffplay -} diff -r 61bec0518c8c -r e47c0281ba48 gmp/receipt --- a/gmp/receipt Sat Mar 08 06:26:57 2014 +0100 +++ b/gmp/receipt Sat Mar 08 07:29:53 2014 +0100 @@ -9,24 +9,22 @@ TARBALL="$PACKAGE-$VERSION.tar.bz2" WEB_SITE="http://gmplib.org/" WGET_URL="$GNU_MIRROR/$PACKAGE/$TARBALL" +#HOST_ARCH="i486 arm" -DEPENDS="glibc-base" BUILD_DEPENDS="binutils m4" # Rules to configure and make the package. compile_rules() { - cd $src - if [ -x /usr/bin/cook ]; then - [ -d "/var/lib/tazpkg/binutils" ] || tazpkg get-install binutils - fi - # gmp try to cook for 64bits system if kernel can support when using - # tmp toolchain. Not only and this export does nothing !!! - export ABI=32 - ./configure $CONFIGURE_ARGS --enable-cxx && - make && + case "$ARCH" in + i?86) + export ABI=32 + ARCH_ARGS="--enable-cxx" ;; + esac + ./configure \ + $CONFIGURE_ARGS $ARCH_ARGS && # -j > 1 make install fails. - make -j 1 install + make && make -j 1 install } # Rules to gen a SliTaz package suitable for Tazpkg. diff -r 61bec0518c8c -r e47c0281ba48 libnl-dev/receipt --- a/libnl-dev/receipt Sat Mar 08 06:26:57 2014 +0100 +++ b/libnl-dev/receipt Sat Mar 08 07:29:53 2014 +0100 @@ -8,6 +8,8 @@ LICENSE="LGPL2.1" WEB_SITE="http://people.suug.ch/~tgr/libnl" WANTED="libnl" +HOST_ARCH="i486 arm" + DEPENDS="libnl" # Rules to gen a SliTaz package suitable for Tazpkg. diff -r 61bec0518c8c -r e47c0281ba48 libnl/receipt --- a/libnl/receipt Sat Mar 08 06:26:57 2014 +0100 +++ b/libnl/receipt Sat Mar 08 07:29:53 2014 +0100 @@ -9,14 +9,16 @@ TARBALL="$PACKAGE-$VERSION.tar.gz" WEB_SITE="http://people.suug.ch/~tgr/libnl" WGET_URL="$WEB_SITE/files/$TARBALL" +HOST_ARCH="i486 arm" +# Cross compile needs host flex BUILD_DEPENDS="flex" # Rules to configure and make the package. compile_rules() { - cd $src - ./configure && make && make install + ./configure $CONFIGURE_ARGS && + make && make install } # Rules to gen a SliTaz package suitable for Tazpkg. diff -r 61bec0518c8c -r e47c0281ba48 wpa_supplicant/receipt --- a/wpa_supplicant/receipt Sat Mar 08 06:26:57 2014 +0100 +++ b/wpa_supplicant/receipt Sat Mar 08 07:29:53 2014 +0100 @@ -10,10 +10,25 @@ WEB_SITE="http://hostap.epitest.fi/wpa_supplicant/" WGET_URL="http://hostap.epitest.fi/releases/$TARBALL" CONFIG_FILES="/etc/wpa_supplicant.conf" +HOST_ARCH="i486 arm" + TAGS="wireless" +DEPENDS="libssl libcrypto libnl" +BUILD_DEPENDS="openssl-dev libcrypto-dev libnl-dev dbus-dev" -DEPENDS="libssl slitaz-base-files libcrypto libnl" -BUILD_DEPENDS="openssl-dev libcrypto libcrypto-dev libnl-dev dbus-dev" +# Cross compile +case "$ARCH" in + arm*) + VERSION="1.1" + BUILD_DEPENDS="openssl-dev libcrypto-dev" + TARBALL="$PACKAGE-$VERSION.tar.gz" + WGET_URL="http://hostap.epitest.fi/releases/$TARBALL" ;; +esac + +# Arch install +case "$SLITAZ_ARCH" in + arm*) DEPENDS="libssl libcrypto" ;; +esac # Rules to configure and make the package. compile_rules() @@ -22,15 +37,23 @@ sed 's/-lnl/-lnl-3/g' -i ../src/drivers/drivers.mak sed 's/-lnl-3-genl/-lnl-genl-3/g' -i ../src/drivers/drivers.mak cp -a ./defconfig ./.config - cat >> .config << EOF + case "$ARCH" in + i?86) + cat >> .config << EOF CONFIG_AP=y CONFIG_BGSCAN_SIMPLE=y +CONFIG_LIBNL20=y +CFLAGS += -I/usr/include/libnl3 CONFIG_CTRL_IFACE_DBUS=y CONFIG_CTRL_IFACE_DBUS_NEW=y CONFIG_CTRL_IFACE_DBUS_INTRO=y -CONFIG_LIBNL20=y -CFLAGS += -I/usr/include/libnl3 EOF + ;; + arm) + # 2.X dont cross compile for ARM + #echo 'CFLAGS += -I${sysroot}/usr/include/libnl3' >> .config + continue ;; + esac make BINDIR=/usr/bin LIBDIR=/lib } diff -r 61bec0518c8c -r e47c0281ba48 wput/receipt --- a/wput/receipt Sat Mar 08 06:26:57 2014 +0100 +++ b/wput/receipt Sat Mar 08 07:29:53 2014 +0100 @@ -9,18 +9,17 @@ WEB_SITE="http://wput.sourceforge.net/" TARBALL="${PACKAGE}-${VERSION}.tgz" WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL" - -BUILD_DEPENDS="" -DEPENDS="" +HOST_ARCH="i486 arm" # Rules to configure and make the package. compile_rules() { - cd $src sed -i "s|^prefix *=.*|prefix = $DESTDIR/usr|" Makefile.in - ./configure --prefix=/usr \ + ./configure \ + --prefix=/usr \ --disable-g-switch \ - --without-ssl $CONFIGURE_ARGS && + --without-ssl \ + $CONFIGURE_ARGS && make && make DESTDIR=$DESTDIR install }