wok diff ncurses/receipt @ rev 12773
ncurses*: add to arm pakages (now will try to link ncruses apps again it :-)
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Sun May 13 04:31:48 2012 +0200 (2012-05-13) |
parents | 92bae5620673 |
children | 4478a745a1e5 |
line diff
1.1 --- a/ncurses/receipt Sat Dec 10 03:52:27 2011 +0100 1.2 +++ b/ncurses/receipt Sun May 13 04:31:48 2012 +0200 1.3 @@ -4,12 +4,20 @@ 1.4 VERSION="5.9" 1.5 CATEGORY="base-system" 1.6 SHORT_DESC="Library of functions to manage display on terminals." 1.7 -DEPENDS="ncurses-common" 1.8 -BUILD_DEPENDS="gcc" 1.9 MAINTAINER="pankso@slitaz.org" 1.10 TARBALL="$PACKAGE-$VERSION.tar.gz" 1.11 WEB_SITE="http://invisible-island.net/ncurses/" 1.12 WGET_URL="ftp://invisible-island.net/ncurses/$TARBALL" 1.13 +HOST_ARCH="i486 arm" 1.14 + 1.15 +# Ncurses need an installed /usr/bin/tic witch is in ncursesw-extra. And 1.16 +# when cross compiling we can't use the freshly cooked binary. See cook log: 1.17 +# 1.18 +#** Building terminfo database, please wait... 1.19 +#Running /usr/bin/tic to install /home/slitaz/wok/ncurses/install/usr/share/terminfo 1.20 +# 1.21 +DEPENDS="ncurses-common" 1.22 +BUILD_DEPENDS="gcc ncursesw-extra" 1.23 1.24 # Rules to compile & install the temporary toolchain. 1.25 cook_tmp_toolchain() 1.26 @@ -23,18 +31,20 @@ 1.27 # Rules to configure and make the package. 1.28 compile_rules() 1.29 { 1.30 + case "$ARCH" in 1.31 + arm) CROSS_ARGS="" ;; 1.32 + esac 1.33 cd $src 1.34 sed -i 's|\tsh $(srcdir)/MKhashsize.sh|\tash $(srcdir)/MKhashsize.sh|' \ 1.35 include/Makefile.in 1.36 ./configure \ 1.37 --libdir=/lib \ 1.38 --sysconfdir=/etc \ 1.39 - --mandir=/usr/share/man \ 1.40 --with-shared \ 1.41 --without-debug \ 1.42 --without-ada \ 1.43 - --build=$HOST_SYSTEM \ 1.44 - --host=$HOST_SYSTEM && 1.45 + --with-build-cc="gcc -D_GNU_SOURCE" \ 1.46 + $CONFIGURE_ARGS && 1.47 make && make install 1.48 } 1.49 1.50 @@ -42,5 +52,5 @@ 1.51 genpkg_rules() 1.52 { 1.53 mkdir -p $fs/lib 1.54 - cp -a $_pkg/lib/libncurses.so* $fs/lib 1.55 + cp -a $install/lib/libncurses.so* $fs/lib 1.56 }