wok-next diff python/receipt @ rev 16055

syslinux/iso2exe: fix 'a la tazusb' install
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Mar 11 15:44:47 2014 +0000 (2014-03-11)
parents fd4f1e692109
children a29085892eee
line diff
     1.1 --- a/python/receipt	Sat Oct 19 13:53:26 2013 +0000
     1.2 +++ b/python/receipt	Tue Mar 11 15:44:47 2014 +0000
     1.3 @@ -10,25 +10,40 @@
     1.4  TARBALL="$SOURCE-$VERSION.tar.bz2"
     1.5  WEB_SITE="http://www.python.org/"
     1.6  WGET_URL="http://www.python.org/ftp/python/$VERSION/$TARBALL"
     1.7 +#HOST_ARCH="i486 arm"
     1.8  
     1.9  DEPENDS="openssl bzlib readline sqlite zlib ncursesw gdbm"
    1.10  BUILD_DEPENDS="openssl-dev bzip2-dev readline-dev sqlite-dev zlib-dev \
    1.11  ncursesw-dev tcl-dev tk-dev db-dev gdbm-dev"
    1.12  SUGGESTED="tcl tk"
    1.13  
    1.14 +# Handle cross compilation
    1.15 +case "$ARCH" in
    1.16 +	arm*) BUILD_DEPENDS="bzip2-dev readline-dev ncursesw-dev tcl-dev" ;;
    1.17 +esac
    1.18 +
    1.19  # Rules to configure and make the package.
    1.20  compile_rules()
    1.21  {
    1.22 -	cd $src
    1.23  	# Temporary workaround for FS#22322
    1.24  	# See http://bugs.python.org/issue10835 for upstream report
    1.25  	sed -i "/progname =/s/python/python${_pybasever}/" Python/pythonrun.c
    1.26  	# Enable built-in SQLite3 module to load extensions (fix FS#22122)
    1.27  	sed -i "/SQLITE_OMIT_LOAD_EXTENSION/d" setup.py
    1.28 -	./configure \
    1.29 -		--enable-shared \
    1.30 -		--build=$HOST_SYSTEM \
    1.31 -		--host=$HOST_SYSTEM &&
    1.32 +	case "$ARCH" in
    1.33 +		arm*)
    1.34 +			#export ac_cv_file_dev__ptmx=yes
    1.35 +			./configure \
    1.36 +				--disable-ipv6 \
    1.37 +				--enable-shared \
    1.38 +				--build=i486-slitaz-linux \
    1.39 +				--host=${ARCH}-slitaz-linux-gnueabi ;;
    1.40 +		i?86)
    1.41 +			./configure \
    1.42 +				--enable-shared \
    1.43 +				--build=${HOST_SYSTEM} \
    1.44 +				--host=${HOST_SYSTEM} ;;
    1.45 +	esac &&
    1.46  	make &&	make DESTDIR=$DESTDIR install
    1.47  }
    1.48