wok-6.x view ncursesw/receipt @ rev 12797

fltk-2.0.x: fix compile_rules with LD_LIBRARY_PATH
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri May 18 10:17:05 2012 +0200 (2012-05-18)
parents fb9821d2c0ce
children 079fed3fed2d
line source
1 # SliTaz package receipt.
3 PACKAGE="ncursesw"
4 VERSION="5.9"
5 SOURCE="ncurses"
6 CATEGORY="base-system"
7 SHORT_DESC="Library of functions to manage display on terminals."
8 MAINTAINER="pankso@slitaz.org"
9 TARBALL="$SOURCE-$VERSION.tar.gz"
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="gcc"
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 sed -i 's|\tsh $(srcdir)/MKhashsize.sh|\tash $(srcdir)/MKhashsize.sh|' \
32 include/Makefile.in
33 ./configure \
34 --libdir=/lib \
35 --sysconfdir=/etc \
36 --with-shared \
37 --without-debug \
38 --without-ada \
39 --enable-widec \
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 $fs/usr/bin
50 # Libs.
51 cp -a $install/lib/libncursesw.so* $fs/lib
53 # Base progs.
54 cp $install/usr/bin/clear $fs/usr/bin
55 cp $install/usr/bin/tset $fs/usr/bin
56 cp $install/usr/bin/reset $fs/usr/bin
57 }
59 # Overlap busybox
60 pre_install()
61 {
62 rm -f $root/usr/bin/clear
63 rm -f $root/usr/bin/reset
64 }
66 post_remove()
67 {
68 ln -s /bin/busybox $root/usr/bin/clear
69 ln -s /bin/busybox $root/usr/bin/reset
70 }