wok-current annotate python/receipt @ rev 16026
Up ffmpeg and add to ARM, rm ffmpeg-svn and add git version, up mpg123 and more X pkgs to ARM
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Sat Mar 08 06:26:57 2014 +0100 (2014-03-08) |
parents | fd4f1e692109 |
children | a29085892eee |
rev | line source |
---|---|
pankso@18 | 1 # SliTaz package receipt. |
pankso@18 | 2 |
pankso@18 | 3 PACKAGE="python" |
slaxemulator@14609 | 4 VERSION="2.7.5" |
pankso@204 | 5 CATEGORY="development" |
pankso@18 | 6 SHORT_DESC="The Python programming language." |
pankso@18 | 7 MAINTAINER="pankso@slitaz.org" |
pascal@15378 | 8 LICENSE="PSL" |
pankso@18 | 9 SOURCE="Python" |
pankso@18 | 10 TARBALL="$SOURCE-$VERSION.tar.bz2" |
pankso@18 | 11 WEB_SITE="http://www.python.org/" |
pankso@18 | 12 WGET_URL="http://www.python.org/ftp/python/$VERSION/$TARBALL" |
pankso@16026 | 13 #HOST_ARCH="i486 arm" |
pankso@18 | 14 |
slaxemulator@14609 | 15 DEPENDS="openssl bzlib readline sqlite zlib ncursesw gdbm" |
pascal@12990 | 16 BUILD_DEPENDS="openssl-dev bzip2-dev readline-dev sqlite-dev zlib-dev \ |
pascal@13403 | 17 ncursesw-dev tcl-dev tk-dev db-dev gdbm-dev" |
pascal@12990 | 18 SUGGESTED="tcl tk" |
pankso@10807 | 19 |
pankso@16026 | 20 # Handle cross compilation |
pankso@16026 | 21 case "$ARCH" in |
pankso@16026 | 22 arm*) BUILD_DEPENDS="bzip2-dev readline-dev ncursesw-dev tcl-dev" ;; |
pankso@16026 | 23 esac |
pankso@16026 | 24 |
pankso@18 | 25 # Rules to configure and make the package. |
pankso@18 | 26 compile_rules() |
pankso@18 | 27 { |
slaxemulator@10975 | 28 # Temporary workaround for FS#22322 |
slaxemulator@10975 | 29 # See http://bugs.python.org/issue10835 for upstream report |
slaxemulator@10975 | 30 sed -i "/progname =/s/python/python${_pybasever}/" Python/pythonrun.c |
slaxemulator@10975 | 31 # Enable built-in SQLite3 module to load extensions (fix FS#22122) |
slaxemulator@10975 | 32 sed -i "/SQLITE_OMIT_LOAD_EXTENSION/d" setup.py |
pankso@16026 | 33 case "$ARCH" in |
pankso@16026 | 34 arm*) |
pankso@16026 | 35 #export ac_cv_file_dev__ptmx=yes |
pankso@16026 | 36 ./configure \ |
pankso@16026 | 37 --disable-ipv6 \ |
pankso@16026 | 38 --enable-shared \ |
pankso@16026 | 39 --build=i486-slitaz-linux \ |
pankso@16026 | 40 --host=${ARCH}-slitaz-linux-gnueabi ;; |
pankso@16026 | 41 i?86) |
pankso@16026 | 42 ./configure \ |
pankso@16026 | 43 --enable-shared \ |
pankso@16026 | 44 --build=${HOST_SYSTEM} \ |
pankso@16026 | 45 --host=${HOST_SYSTEM} ;; |
pankso@16026 | 46 esac && |
slaxemulator@10327 | 47 make && make DESTDIR=$DESTDIR install |
pankso@18 | 48 } |
pankso@18 | 49 |
pankso@18 | 50 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@18 | 51 genpkg_rules() |
pankso@18 | 52 { |
pascal@7468 | 53 python_version=${VERSION:0:3} |
pascal@7468 | 54 mkdir -p $fs/usr/include/${PACKAGE}$python_version |
slaxemulator@14609 | 55 cp -a $install/usr/bin $fs/usr |
slaxemulator@14609 | 56 cp -a $install/usr/lib $fs/usr |
slaxemulator@6616 | 57 # needed for mericurial to work now |
slaxemulator@14609 | 58 cp -a $install/usr/include/${PACKAGE}$python_version/pyconfig.h \ |
pascal@7468 | 59 $fs/usr/include/${PACKAGE}$python_version |
pankso@18 | 60 rm -f $fs/usr/bin/*-config |
pankso@18 | 61 } |
pankso@18 | 62 |