wok-next view ncurses/receipt @ rev 21303
updated gujin (2.8.6 -> 2.8.7)
author | Hans-G?nter Theisgen |
---|---|
date | Tue Dec 10 07:57:29 2019 +0100 (2019-12-10) |
parents | d5aab818505e |
children |
line source
1 # SliTaz package receipt v2.
3 PACKAGE="ncurses"
4 VERSION="6.1"
5 CATEGORY="base-system"
6 SHORT_DESC="Manage display on terminals"
7 MAINTAINER="devel@slitaz.org"
8 LICENSE="MIT"
9 WEB_SITE="https://www.gnu.org/software/ncurses/"
10 LFS="http://www.linuxfromscratch.org/lfs/view/development/chapter06/ncurses.html"
12 TARBALL="$PACKAGE-$VERSION.tar.gz"
13 WGET_URL="http://ftp.gnu.org/gnu/ncurses/$TARBALL"
15 BUILD_DEPENDS="flex"
16 SPLIT="$PACKAGE-libform $PACKAGE-libmenu $PACKAGE-libpanel $PACKAGE-extra \
17 $PACKAGE-dev"
19 compile_rules() {
20 sed -i '/LIBTOOL_INSTALL/d' c++/Makefile.in
22 ./configure \
23 --with-shared \
24 --without-debug \
25 --without-ada \
26 --enable-widec \
27 --with-build-cc="gcc -D_GNU_SOURCE" \
28 --enable-pc-files \
29 --with-pkg-config-libdir=/usr/lib/pkgconfig \
30 $CONFIGURE_ARGS &&
31 make &&
32 make install || return 1
34 mkdir -p $install/lib
35 mv $install/usr/lib/libncursesw.so.6* $install/lib
36 ln -sf ../../lib/$(readlink $install/usr/lib/libncursesw.so) \
37 $install/usr/lib/libncursesw.so
39 for i in ncurses form panel menu; do
40 rm -f $install/usr/lib/lib$i.so
41 echo "INPUT(-l${i}w)" > $install/usr/lib/lib$i.so
42 chmod 755 $install/usr/lib/lib$i.so
43 ln -sf ${i}w.pc $install/usr/lib/pkgconfig/$i.pc
44 done
46 rm -f $install/usr/lib/libcursesw.so
47 echo "INPUT(-lncursesw)" > $install/usr/lib/libcursesw.so
48 chmod 755 $install/usr/lib/libcursesw.so
49 ln -sf libncurses.so $install/usr/lib/libcurses.so
51 mkdir -p $install/usr/share/doc/ncurses-$VERSION
52 cp -r doc/* $install/usr/share/doc/ncurses-$VERSION
54 # Fix F-keys in the terminal
55 for i in xterm xterm-256color; do
56 mv $install/usr/share/terminfo/x/$i $install/usr/share/terminfo/x/$i.orig
57 done
58 $install/usr/bin/tic $stuff/xterm-patched -o $install/usr/share/terminfo
59 ln -s xterm-256color $install/usr/share/terminfo/x/xterm
60 }
62 genpkg_rules() {
63 case $PACKAGE in
64 ncurses)
65 copy clear tset reset libncursesw.so* tabset/ \
66 linux xterm xterm-256color
67 # ansi rxvt vt100 vt102* xterm-color xterm-new xterm-vt220
68 TAGS="LFS"
69 ;;
70 ncurses-libform)
71 copy libformw.so*
72 CAT="libs|forms extension"
73 DEPENDS="ncurses"
74 ;;
75 ncurses-libmenu)
76 copy libmenuw.so*
77 CAT="libs|menus extension"
78 DEPENDS="ncurses"
79 ;;
80 ncurses-libpanel)
81 copy libpanelw.so*
82 CAT="libs|panel stack extension"
83 DEPENDS="ncurses"
84 ;;
85 ncurses-extra)
86 copy @std @rm
87 CAT="base-system|extra files"
88 DEPENDS="ncurses"
89 ;;
90 ncurses-dev)
91 copy @dev
92 ;;
93 esac
94 }