wok-next view ncurses/receipt @ rev 20772

gnuchess: up (6.2.5)
author Aleksej Bobylev <al.bobylev@gmail.com>
date Wed Jun 06 19:46:11 2018 +0300 (2018-06-06)
parents 250165915708
children e7a485521d6a
line source
1 # SliTaz package receipt v2.
3 PACKAGE="ncurses"
4 VERSION="6.0"
5 CATEGORY="base-system"
6 SHORT_DESC="Manage display on terminals"
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="MIT"
9 WEB_SITE="https://www.gnu.org/software/ncurses/"
10 LFS="http://www.linuxfromscratch.org/lfs/view/stable/chapter06/ncurses.html"
12 TARBALL="$PACKAGE-$VERSION.tar.gz"
13 WGET_URL="http://ftp.gnu.org/gnu/ncurses/$TARBALL"
15 BUILD_DEPENDS_arm=" "
16 BUILD_DEPENDS="flex"
17 SPLIT="ncurses-libform ncurses-libmenu ncurses-libpanel ncurses-extra \
18 ncurses-dev"
20 compile_rules() {
21 sed -i '/LIBTOOL_INSTALL/d' c++/Makefile.in
23 ./configure \
24 --with-shared \
25 --without-debug \
26 --without-ada \
27 --enable-widec \
28 --with-build-cc="gcc -D_GNU_SOURCE" \
29 --enable-pc-files \
30 --with-pkg-config-libdir=/usr/lib/pkgconfig \
31 $CONFIGURE_ARGS &&
32 make && make install
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 -a 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 }