wok rev 16027

Add to ARM: libnl, wpa_supplicant, wput
author Christophe Lincoln <pankso@slitaz.org>
date Sat Mar 08 07:29:53 2014 +0100 (2014-03-08)
parents 61bec0518c8c
children 50ad9046eb2a
files ffmpeg-git/receipt ffmpeg-svn-dev/receipt ffmpeg-svn/receipt gmp/receipt libnl-dev/receipt libnl/receipt wpa_supplicant/receipt wput/receipt
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/ffmpeg-git/receipt	Sat Mar 08 07:29:53 2014 +0100
     1.3 @@ -0,0 +1,48 @@
     1.4 +# SliTaz package receipt.
     1.5 +
     1.6 +PACKAGE="ffmpeg-git"
     1.7 +VERSION="snapshot"
     1.8 +CATEGORY="multimedia"
     1.9 +SHORT_DESC="Record, convert and stream audio and video (Devel version)."
    1.10 +MAINTAINER="pankso@slitaz.org"
    1.11 +LICENSE="GPL2 LGPL2.1"
    1.12 +WEB_SITE="http://ffmpeg.org/"
    1.13 +PROVIDE="ffmpeg"
    1.14 +TARBALL="$PACKAGE-$VERSION.tar.bz2"
    1.15 +WGET_URL="git|git://source.ffmpeg.org/ffmpeg.git"
    1.16 +
    1.17 +TAGS="audio video convert stream"
    1.18 +DEPENDS="bzlib freetype imlib2 alsa-lib jack-audio-connection-kit zlib"
    1.19 +BUILD_DEPENDS="subversion imlib2-dev freetype-dev libsdl-dev zlib-dev \
    1.20 +coreutils-file-format coreutils-file-special"
    1.21 +
    1.22 +# Rules to configure and make the package.
    1.23 +compile_rules()
    1.24 +{
    1.25 +	# Fix configure for GCC 4.5.0
    1.26 +	#sed -i 's/"\$@" >> \$logfile 2/$@ >> $logfile 2/' configure
    1.27 +	./configure \
    1.28 +		--prefix=/usr \
    1.29 +		--enable-gpl \
    1.30 +		--arch=$ARCH \
    1.31 +		--cpu=$ARCH \
    1.32 +		--enable-shared \
    1.33 +		--enable-small \
    1.34 +		--enable-pthreads \
    1.35 +		--enable-postproc \
    1.36 +		--disable-mmx \
    1.37 +		--disable-mmx2 \
    1.38 +		--disable-ssse3 &&
    1.39 +	make &&
    1.40 +	make DESTDIR=$DESTDIR install
    1.41 +}
    1.42 +
    1.43 +# Rules to gen a SliTaz package suitable for Tazpkg.
    1.44 +genpkg_rules()
    1.45 +{
    1.46 +	mkdir -p $fs/usr/lib
    1.47 +	cp -a $install/usr/lib/*so* $fs/usr/lib
    1.48 +	cp -a $install/usr/bin $fs/usr
    1.49 +	# ffplay with it SDL dep go in a splited package
    1.50 +	rm $fs/usr/bin/ffplay
    1.51 +}
     2.1 --- a/ffmpeg-svn-dev/receipt	Sat Mar 08 06:26:57 2014 +0100
     2.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.3 @@ -1,26 +0,0 @@
     2.4 -# SliTaz package receipt.
     2.5 -
     2.6 -PACKAGE="ffmpeg-svn-dev"
     2.7 -VERSION="26402"
     2.8 -CATEGORY="development"
     2.9 -SHORT_DESC="Record, convert and stream audio and video, development files."
    2.10 -MAINTAINER="jozee@slitaz.org"
    2.11 -LICENSE="GPL2 LGPL2.1"
    2.12 -WEB_SITE="http://ffmpeg.org/"
    2.13 -WANTED="ffmpeg-svn"
    2.14 -PROVIDE="ffmpeg-dev"
    2.15 -
    2.16 -DEPENDS="pkg-config"
    2.17 -
    2.18 -# Rules to gen a SliTaz package suitable for Tazpkg.
    2.19 -genpkg_rules()
    2.20 -{
    2.21 -	mkdir -p $fs/usr/lib
    2.22 -	cp -a $install/usr/include $fs/usr
    2.23 -	cp -a $install/usr/lib/*.a $fs/usr/lib
    2.24 -	cp -a $install/usr/lib/pkgconfig $fs/usr/lib
    2.25 -	
    2.26 -	# pixfmt.h file in svn version: Kino hack
    2.27 -	sed -i "s/PIX_FMT_YUYV422,/PIX_FMT_YUYV422, \n    PIX_FMT_YUV422,/" $fs/usr/include/libavutil/pixfmt.h
    2.28 -}
    2.29 -
     3.1 --- a/ffmpeg-svn/receipt	Sat Mar 08 06:26:57 2014 +0100
     3.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     3.3 @@ -1,52 +0,0 @@
     3.4 -# SliTaz package receipt.
     3.5 -
     3.6 -PACKAGE="ffmpeg-svn"
     3.7 -VERSION="26402"
     3.8 -CATEGORY="multimedia"
     3.9 -SHORT_DESC="Record, convert and stream audio and video."
    3.10 -MAINTAINER="jozee@slitaz.org"
    3.11 -LICENSE="GPL2 LGPL2.1"
    3.12 -WEB_SITE="http://ffmpeg.org/"
    3.13 -PROVIDE="ffmpeg"
    3.14 -SUGGESTED="ffplay"
    3.15 -TAGS="audio video convert stream"
    3.16 -TARBALL="$PACKAGE-$VERSION.tar.bz2"
    3.17 -WGET_URL="subversion|svn://svn.ffmpeg.org/ffmpeg/trunk"
    3.18 -BRANCH="$VERSION"
    3.19 -
    3.20 -DEPENDS="bzlib freetype imlib2 alsa-lib jack-audio-connection-kit zlib"
    3.21 -BUILD_DEPENDS="subversion imlib2-dev freetype-dev libsdl-dev zlib-dev \
    3.22 -coreutils-file-format coreutils-file-special"
    3.23 -
    3.24 -# Rules to configure and make the package.
    3.25 -compile_rules()
    3.26 -{
    3.27 -	cd $src	
    3.28 -
    3.29 -	# Fix configure for GCC 4.5.0
    3.30 -	sed -i 's/"\$@" >> \$logfile 2/$@ >> $logfile 2/' configure
    3.31 -	./configure \
    3.32 -		--prefix=/usr \
    3.33 -		--enable-gpl \
    3.34 -		--arch=$ARCH \
    3.35 -		--cpu=$ARCH \
    3.36 -		--enable-shared \
    3.37 -		--enable-small \
    3.38 -		--enable-pthreads \
    3.39 -		--enable-postproc \
    3.40 -		--disable-mmx \
    3.41 -		--disable-mmx2 \
    3.42 -		--disable-ssse3 &&
    3.43 -	make &&
    3.44 -	make DESTDIR=$DESTDIR install
    3.45 -}
    3.46 -
    3.47 -# Rules to gen a SliTaz package suitable for Tazpkg.
    3.48 -genpkg_rules()
    3.49 -{
    3.50 -	mkdir -p $fs/usr/lib
    3.51 -	cp -a $install/usr/lib/*so* $fs/usr/lib
    3.52 -	cp -a $install/usr/bin $fs/usr
    3.53 -	# ffplay with it SDL dep go in a splited package
    3.54 -	rm $fs/usr/bin/ffplay
    3.55 -}
     4.1 --- a/gmp/receipt	Sat Mar 08 06:26:57 2014 +0100
     4.2 +++ b/gmp/receipt	Sat Mar 08 07:29:53 2014 +0100
     4.3 @@ -9,24 +9,22 @@
     4.4  TARBALL="$PACKAGE-$VERSION.tar.bz2"
     4.5  WEB_SITE="http://gmplib.org/"
     4.6  WGET_URL="$GNU_MIRROR/$PACKAGE/$TARBALL"
     4.7 +#HOST_ARCH="i486 arm"
     4.8  
     4.9 -DEPENDS="glibc-base"
    4.10  BUILD_DEPENDS="binutils m4"
    4.11  
    4.12  # Rules to configure and make the package.
    4.13  compile_rules()
    4.14  {	
    4.15 -	cd $src
    4.16 -	if [ -x /usr/bin/cook ]; then
    4.17 -		[ -d "/var/lib/tazpkg/binutils" ] || tazpkg get-install binutils
    4.18 -	fi
    4.19 -	# gmp try to cook for 64bits system if kernel can support when using
    4.20 -	# tmp toolchain. Not only and this export does nothing !!!
    4.21 -	export ABI=32
    4.22 -	./configure $CONFIGURE_ARGS --enable-cxx &&
    4.23 -	make &&
    4.24 +	case "$ARCH" in
    4.25 +		i?86)
    4.26 +			export ABI=32 
    4.27 +			ARCH_ARGS="--enable-cxx" ;;
    4.28 +	esac
    4.29 +	./configure \
    4.30 +		$CONFIGURE_ARGS $ARCH_ARGS &&
    4.31  	# -j > 1 make install fails.
    4.32 -	make -j 1 install
    4.33 +	make && make -j 1 install
    4.34  }
    4.35  
    4.36  # Rules to gen a SliTaz package suitable for Tazpkg.
     5.1 --- a/libnl-dev/receipt	Sat Mar 08 06:26:57 2014 +0100
     5.2 +++ b/libnl-dev/receipt	Sat Mar 08 07:29:53 2014 +0100
     5.3 @@ -8,6 +8,8 @@
     5.4  LICENSE="LGPL2.1"
     5.5  WEB_SITE="http://people.suug.ch/~tgr/libnl"
     5.6  WANTED="libnl"
     5.7 +HOST_ARCH="i486 arm"
     5.8 +
     5.9  DEPENDS="libnl"
    5.10  
    5.11  # Rules to gen a SliTaz package suitable for Tazpkg.
     6.1 --- a/libnl/receipt	Sat Mar 08 06:26:57 2014 +0100
     6.2 +++ b/libnl/receipt	Sat Mar 08 07:29:53 2014 +0100
     6.3 @@ -9,14 +9,16 @@
     6.4  TARBALL="$PACKAGE-$VERSION.tar.gz"
     6.5  WEB_SITE="http://people.suug.ch/~tgr/libnl"
     6.6  WGET_URL="$WEB_SITE/files/$TARBALL"
     6.7 +HOST_ARCH="i486 arm"
     6.8  
     6.9 +# Cross compile needs host flex
    6.10  BUILD_DEPENDS="flex"
    6.11  
    6.12  # Rules to configure and make the package.
    6.13  compile_rules()
    6.14  {
    6.15 -	cd $src
    6.16 -	./configure && make && make install
    6.17 +	./configure $CONFIGURE_ARGS && 
    6.18 +	make && make install
    6.19  }
    6.20  
    6.21  # Rules to gen a SliTaz package suitable for Tazpkg.
     7.1 --- a/wpa_supplicant/receipt	Sat Mar 08 06:26:57 2014 +0100
     7.2 +++ b/wpa_supplicant/receipt	Sat Mar 08 07:29:53 2014 +0100
     7.3 @@ -10,10 +10,25 @@
     7.4  WEB_SITE="http://hostap.epitest.fi/wpa_supplicant/"
     7.5  WGET_URL="http://hostap.epitest.fi/releases/$TARBALL"
     7.6  CONFIG_FILES="/etc/wpa_supplicant.conf"
     7.7 +HOST_ARCH="i486 arm"
     7.8 +
     7.9  TAGS="wireless"
    7.10 +DEPENDS="libssl libcrypto libnl"
    7.11 +BUILD_DEPENDS="openssl-dev libcrypto-dev libnl-dev dbus-dev"
    7.12  
    7.13 -DEPENDS="libssl slitaz-base-files libcrypto libnl"
    7.14 -BUILD_DEPENDS="openssl-dev libcrypto libcrypto-dev libnl-dev dbus-dev"
    7.15 +# Cross compile
    7.16 +case "$ARCH" in
    7.17 +	arm*) 
    7.18 +		VERSION="1.1"
    7.19 +		BUILD_DEPENDS="openssl-dev libcrypto-dev"
    7.20 +		TARBALL="$PACKAGE-$VERSION.tar.gz"
    7.21 +		WGET_URL="http://hostap.epitest.fi/releases/$TARBALL" ;;
    7.22 +esac
    7.23 +
    7.24 +# Arch install
    7.25 +case "$SLITAZ_ARCH" in
    7.26 +	arm*) DEPENDS="libssl libcrypto" ;;
    7.27 +esac
    7.28  
    7.29  # Rules to configure and make the package.
    7.30  compile_rules()
    7.31 @@ -22,15 +37,23 @@
    7.32  	sed 's/-lnl/-lnl-3/g' -i ../src/drivers/drivers.mak
    7.33  	sed 's/-lnl-3-genl/-lnl-genl-3/g' -i ../src/drivers/drivers.mak
    7.34  	cp -a ./defconfig ./.config
    7.35 -	cat >> .config << EOF
    7.36 +	case "$ARCH" in
    7.37 +		i?86)
    7.38 +			cat >> .config << EOF
    7.39  CONFIG_AP=y
    7.40  CONFIG_BGSCAN_SIMPLE=y
    7.41 +CONFIG_LIBNL20=y
    7.42 +CFLAGS += -I/usr/include/libnl3
    7.43  CONFIG_CTRL_IFACE_DBUS=y
    7.44  CONFIG_CTRL_IFACE_DBUS_NEW=y
    7.45  CONFIG_CTRL_IFACE_DBUS_INTRO=y
    7.46 -CONFIG_LIBNL20=y
    7.47 -CFLAGS += -I/usr/include/libnl3
    7.48  EOF
    7.49 +			;;
    7.50 +		arm)
    7.51 +			# 2.X dont cross compile for ARM
    7.52 +			#echo 'CFLAGS += -I${sysroot}/usr/include/libnl3' >> .config 
    7.53 +			continue ;;
    7.54 +	esac
    7.55  	make BINDIR=/usr/bin LIBDIR=/lib
    7.56  }
    7.57  
     8.1 --- a/wput/receipt	Sat Mar 08 06:26:57 2014 +0100
     8.2 +++ b/wput/receipt	Sat Mar 08 07:29:53 2014 +0100
     8.3 @@ -9,18 +9,17 @@
     8.4  WEB_SITE="http://wput.sourceforge.net/"
     8.5  TARBALL="${PACKAGE}-${VERSION}.tgz"
     8.6  WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
     8.7 -
     8.8 -BUILD_DEPENDS=""
     8.9 -DEPENDS=""
    8.10 +HOST_ARCH="i486 arm"
    8.11  
    8.12  # Rules to configure and make the package.
    8.13  compile_rules()
    8.14  {
    8.15 -	cd $src
    8.16  	sed -i "s|^prefix *=.*|prefix = $DESTDIR/usr|" Makefile.in
    8.17 -	./configure --prefix=/usr \
    8.18 +	./configure \
    8.19 +		--prefix=/usr \
    8.20  		--disable-g-switch \
    8.21 -		--without-ssl $CONFIGURE_ARGS &&
    8.22 +		--without-ssl \
    8.23 +		$CONFIGURE_ARGS &&
    8.24  	make &&
    8.25  	make DESTDIR=$DESTDIR install
    8.26  }