wok-current view ncurses/receipt @ rev 16275
Up: mercurial (2.9.2)
author | Alexander Medvedev <devl547@gmail.com> |
---|---|
date | Sat Apr 05 21:35:36 2014 +0000 (2014-04-05) |
parents | c971db4d1bba |
children | b7f4c5ebbd6a |
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 LICENSE="MIT"
10 WEB_SITE="http://invisible-island.net/ncurses/"
11 WGET_URL="ftp://invisible-island.net/ncurses/$TARBALL"
12 HOST_ARCH="i486 arm"
14 DEPENDS="ncurses-common"
15 BUILD_DEPENDS=""
17 # Rules to configure and make the package.
18 compile_rules()
19 {
20 # Ncurses need an installed /usr/bin/tic witch is in ncursesw-extra. And
21 # when cross compiling we can't use the freshly cooked binary. See cook log:
22 #
23 #** Building terminfo database, please wait...
24 #Running /usr/bin/tic to install /home/slitaz/wok/ncurses/install/usr/share/terminfo
25 #
26 if [ ! -d "/var/lib/tazpkg/installed/ncursesw-extra" ]; then
27 echo "Installing: ncursesw-extra"
28 tazpkg get-install ncursesw-extra 2>/dev/null 1>/dev/null
29 fi
30 cd $src
31 mkdir -p $DESTDIR/usr/lib/terminfo
32 sed -i 's|\tsh $(srcdir)/MKhashsize.sh|\tash $(srcdir)/MKhashsize.sh|' \
33 include/Makefile.in
34 ./configure \
35 --libdir=/lib \
36 --sysconfdir=/etc \
37 --with-shared \
38 --without-debug \
39 --without-ada \
40 --with-build-cc="gcc -D_GNU_SOURCE" \
41 $CONFIGURE_ARGS &&
42 make && make install
43 }
45 # Rules to gen a SliTaz package suitable for Tazpkg.
46 genpkg_rules()
47 {
48 mkdir -p $fs/lib
49 cp -a $install/lib/libncurses.so* $fs/lib
50 }