wok view 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 source
1 # SliTaz package receipt.
3 PACKAGE="ncurses"
4 VERSION="5.9"
5 CATEGORY="base-system"
6 SHORT_DESC="Library of functions to manage display on terminals."
7 MAINTAINER="pankso@slitaz.org"
8 TARBALL="$PACKAGE-$VERSION.tar.gz"
9 WEB_SITE="http://invisible-island.net/ncurses/"
10 WGET_URL="ftp://invisible-island.net/ncurses/$TARBALL"
11 HOST_ARCH="i486 arm"
13 # Ncurses need an installed /usr/bin/tic witch is in ncursesw-extra. And
14 # when cross compiling we can't use the freshly cooked binary. See cook log:
15 #
16 #** Building terminfo database, please wait...
17 #Running /usr/bin/tic to install /home/slitaz/wok/ncurses/install/usr/share/terminfo
18 #
19 DEPENDS="ncurses-common"
20 BUILD_DEPENDS="gcc ncursesw-extra"
22 # Rules to compile & install the temporary toolchain.
23 cook_tmp_toolchain()
24 {
25 cd $src
26 ./configure --with-shared --without-debug \
27 --without-ada --enable-overwrite &&
28 make && make install
29 }
31 # Rules to configure and make the package.
32 compile_rules()
33 {
34 case "$ARCH" in
35 arm) CROSS_ARGS="" ;;
36 esac
37 cd $src
38 sed -i 's|\tsh $(srcdir)/MKhashsize.sh|\tash $(srcdir)/MKhashsize.sh|' \
39 include/Makefile.in
40 ./configure \
41 --libdir=/lib \
42 --sysconfdir=/etc \
43 --with-shared \
44 --without-debug \
45 --without-ada \
46 --with-build-cc="gcc -D_GNU_SOURCE" \
47 $CONFIGURE_ARGS &&
48 make && make install
49 }
51 # Rules to gen a SliTaz package suitable for Tazpkg.
52 genpkg_rules()
53 {
54 mkdir -p $fs/lib
55 cp -a $install/lib/libncurses.so* $fs/lib
56 }