wok-next view ncurses/receipt @ rev 19574

All about ncurses. Carefully follow LFS receipts.
libtinfo.so included into libncursesw.so and no more need (so far).
author Aleksej Bobylev <al.bobylev@gmail.com>
date Sat Dec 24 05:45:18 2016 +0200 (2016-12-24)
parents c963361d3d54
children f1752c8b2a2a
line source
1 # SliTaz package receipt.
3 PACKAGE="ncurses"
4 VERSION="6.0"
5 CATEGORY="base-system"
6 SHORT_DESC="Library of functions to manage display on terminals."
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="MIT"
9 WEB_SITE="https://www.gnu.org/software/ncurses/"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="http://ftp.gnu.org/gnu/ncurses/$TARBALL"
13 HOST_ARCH="i486 arm"
15 DEPENDS=""
16 BUILD_DEPENDS="flex"
17 SPLIT="ncurses-libform ncurses-libmenu ncurses-libpanel ncurses-extra \
18 ncurses-dev"
20 case "$ARCH" in
21 arm) BUILD_DEPENDS="" ;;
22 esac
24 # Rules to configure and make the package.
25 compile_rules()
26 {
27 sed -i '/LIBTOOL_INSTALL/d' c++/Makefile.in
29 ./configure \
30 --with-shared \
31 --without-debug \
32 --without-ada \
33 --enable-widec \
34 --with-build-cc="gcc -D_GNU_SOURCE" \
35 --enable-pc-files \
36 --with-pkg-config-libdir=/usr/lib/pkgconfig \
37 $CONFIGURE_ARGS &&
38 make && make install
40 mkdir -p $install/lib
41 mv $install/usr/lib/libncursesw.so.6* $install/lib
42 ln -sf ../../lib/$(readlink $install/usr/lib/libncursesw.so) \
43 $install/usr/lib/libncursesw.so
45 for i in ncurses form panel menu; do
46 rm -f $install/usr/lib/lib$i.so
47 echo "INPUT(-l${i}w)" > $install/usr/lib/lib$i.so
48 chmod 755 $install/usr/lib/lib$i.so
49 ln -sf ${i}w.pc $install/usr/lib/pkgconfig/$i.pc
50 done
52 rm -f $install/usr/lib/libcursesw.so
53 echo "INPUT(-lncursesw)" > $install/usr/lib/libcursesw.so
54 chmod 755 $install/usr/lib/libcursesw.so
55 ln -sf libncurses.so $install/usr/lib/libcurses.so
57 mkdir -p $install/usr/share/doc/ncurses-$VERSION
58 cp -a doc/* $install/usr/share/doc/ncurses-$VERSION
59 }
61 # Rules to gen a SliTaz package suitable for Tazpkg.
62 genpkg_rules()
63 {
64 # binaries and library
65 cook_copy_files clear tset reset libncursesw.so*
67 # tabset
68 cook_copy_folders tabset
70 # terminfo
71 cook_copy_files ansi linux rxvt vt100 vt102* xterm xterm-256color \
72 xterm-color xterm-new xterm-vt220
73 }
75 post_remove()
76 {
77 # restore Busybox applet links
78 ln -s /bin/busybox $root/usr/bin/clear
79 ln -s /bin/busybox $root/usr/bin/reset
80 }