wok view ncursesw/receipt @ rev 10274
ncurses*: build fail if native build system is used so use the compiler machine type
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Sat May 21 21:22:47 2011 +0200 (2011-05-21) |
parents | 70c50cf7bbf2 |
children | 3b8379165c1b |
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"
13 # Rules to configure and make the package.
14 compile_rules()
15 {
16 cd $src
17 sed -i 's|\tsh $(srcdir)/MKhashsize.sh|\tash $(srcdir)/MKhashsize.sh|' \
18 include/Makefile.in
19 ./configure \
20 --libdir=/lib \
21 --sysconfdir=/etc \
22 --with-shared \
23 --without-debug \
24 --without-ada \
25 --enable-widec \
26 --build=$HOST_SYSTEM \
27 --host=$HOST_SYSTEM &&
28 make && make install
29 }
31 # Rules to gen a SliTaz package suitable for Tazpkg.
32 genpkg_rules()
33 {
34 mkdir -p $fs/lib $fs/usr/bin
36 # Libs.
37 cp -a $_pkg/lib/libncursesw.so* $fs/lib
39 # Base progs.
40 cp $_pkg/usr/bin/clear $fs/usr/bin
41 cp $_pkg/usr/bin/tset $fs/usr/bin
42 cp $_pkg/usr/bin/reset $fs/usr/bin
43 }
45 # Overlap busybox
46 pre_install()
47 {
48 rm -f $1/usr/bin/clear
49 rm -f $1/usr/bin/reset
50 }
52 post_remove()
53 {
54 ln -s /bin/busybox /usr/bin/clear
55 ln -s /bin/busybox /usr/bin/reset
56 }