wok-next view ncurses/receipt @ rev 12814
glibc-base (arm): include libc_noneshared.a, ld-linux.so.3 and fix path in libc.so
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Sun May 20 23:22:04 2012 +0200 (2012-05-20) |
parents | fb9821d2c0ce |
children | 851050970033 |
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 DEPENDS="ncurses-common"
14 BUILD_DEPENDS="gcc"
16 # Rules to compile & install the temporary toolchain.
17 cook_tmp_toolchain()
18 {
19 cd $src
20 ./configure --with-shared --without-debug \
21 --without-ada --enable-overwrite &&
22 make && make install
23 }
25 # Rules to configure and make the package.
26 compile_rules()
27 {
28 # Ncurses need an installed /usr/bin/tic witch is in ncursesw-extra. And
29 # when cross compiling we can't use the freshly cooked binary. See cook log:
30 #
31 #** Building terminfo database, please wait...
32 #Running /usr/bin/tic to install /home/slitaz/wok/ncurses/install/usr/share/terminfo
33 #
34 if [ ! -d "/var/lib/tazpkg/installed/ncursesw-extra" ]; then
35 echo "Installing: ncursesw-extra"
36 tazpkg get-install ncursesw-extra 2>/dev/null 1>/dev/null
37 fi
38 cd $src
39 sed -i 's|\tsh $(srcdir)/MKhashsize.sh|\tash $(srcdir)/MKhashsize.sh|' \
40 include/Makefile.in
41 ./configure \
42 --libdir=/lib \
43 --sysconfdir=/etc \
44 --with-shared \
45 --without-debug \
46 --without-ada \
47 --with-build-cc="gcc -D_GNU_SOURCE" \
48 $CONFIGURE_ARGS &&
49 make && make install
50 }
52 # Rules to gen a SliTaz package suitable for Tazpkg.
53 genpkg_rules()
54 {
55 mkdir -p $fs/lib
56 cp -a $install/lib/libncurses.so* $fs/lib
57 }