Commit | Line | Data |
---|---|---|
59f0d218 FF |
1 | TERMUX_PKG_HOMEPAGE=http://invisible-island.net/ncurses/ |
2 | TERMUX_PKG_DESCRIPTION="Library for text-based user interfaces in a terminal-independent manner" | |
469b1042 | 3 | _MAJOR_VERSION=6.0 |
963218b2 | 4 | _MINOR_VERSION=20170722 |
59f0d218 | 5 | TERMUX_PKG_VERSION=${_MAJOR_VERSION}.${_MINOR_VERSION} |
7e0bdf32 HG |
6 | TERMUX_PKG_SRCURL=ftp://ftp.gnu.org/gnu/ncurses/ncurses-${_MAJOR_VERSION}.tar.gz |
7 | TERMUX_PKG_SHA256=f551c24b30ce8bfb6e96d9f59b42fbea30fa3a6123384172f9e7284bcf647260 | |
59f0d218 | 8 | # --without-normal disables static libraries: |
aaff9cad FF |
9 | TERMUX_PKG_EXTRA_CONFIGURE_ARGS=" |
10 | ac_cv_header_locale_h=no | |
11 | --enable-const | |
12 | --enable-ext-colors | |
13 | --enable-ext-mouse | |
14 | --enable-overwrite | |
15 | --enable-pc-files | |
16 | --enable-widec | |
17 | --mandir=$TERMUX_PREFIX/share/man | |
18 | --without-ada | |
19 | --without-cxx-binding | |
20 | --without-debug | |
21 | --without-normal | |
22 | --without-static | |
23 | --without-tests | |
24 | --with-shared | |
25 | " | |
2e27b20c FF |
26 | TERMUX_PKG_RM_AFTER_INSTALL=" |
27 | bin/captoinfo | |
28 | bin/infotocap | |
29 | bin/ncursesw6-config | |
30 | share/man/man1/captoinfo.1m | |
31 | share/man/man1/infotocap.1m | |
32 | share/man/man1/ncursesw6-config.1 | |
33 | " | |
34 | ||
35 | termux_step_pre_configure() { | |
36 | TERMUX_PKG_EXTRA_CONFIGURE_ARGS+=" --with-pkg-config-libdir=$PKG_CONFIG_LIBDIR" | |
37 | } | |
59f0d218 | 38 | |
59f0d218 FF |
39 | termux_step_post_make_install () { |
40 | cd $TERMUX_PREFIX/lib | |
41 | for lib in form menu ncurses panel; do | |
42 | for file in lib${lib}w.so*; do | |
43 | ln -s -f $file `echo $file | sed 's/w//'` | |
44 | done | |
45 | (cd pkgconfig && ln -s -f ${lib}w.pc `echo $lib | sed 's/w//'`.pc) | |
46 | done | |
47 | ||
aed0f112 FF |
48 | # Some packages wants this: |
49 | cd $TERMUX_PREFIX/include/ | |
50 | rm -Rf ncursesw | |
51 | mkdir ncursesw | |
52 | cd ncursesw | |
53 | ln -s ../{ncurses.h,termcap.h,panel.h,unctrl.h,menu.h,form.h,tic.h,nc_tparm.h,term.h,eti.h,term_entry.h,ncurses_dll.h,curses.h} . | |
59f0d218 | 54 | } |
9ff2bc5d FF |
55 | |
56 | termux_step_post_massage () { | |
57 | # Strip away 30 years of cruft to decrease size. | |
86cb8449 | 58 | local TI=$TERMUX_PKG_MASSAGEDIR/$TERMUX_PREFIX/share/terminfo |
9ff2bc5d | 59 | mv $TI $TERMUX_PKG_TMPDIR/full-terminfo |
fc19ac86 | 60 | mkdir -p $TI/{a,d,e,n,l,p,r,s,t,v,x} |
9ff2bc5d | 61 | cp $TERMUX_PKG_TMPDIR/full-terminfo/a/ansi $TI/a/ |
85fba239 FF |
62 | cp $TERMUX_PKG_TMPDIR/full-terminfo/d/{dtterm,dumb} $TI/d/ |
63 | cp $TERMUX_PKG_TMPDIR/full-terminfo/e/eterm-color $TI/e/ | |
9ff2bc5d FF |
64 | cp $TERMUX_PKG_TMPDIR/full-terminfo/n/nsterm $TI/n/ |
65 | cp $TERMUX_PKG_TMPDIR/full-terminfo/l/linux $TI/l/ | |
66 | cp $TERMUX_PKG_TMPDIR/full-terminfo/p/putty{,-256color} $TI/p/ | |
67 | cp $TERMUX_PKG_TMPDIR/full-terminfo/r/rxvt{,-256color} $TI/r/ | |
68 | cp $TERMUX_PKG_TMPDIR/full-terminfo/s/screen{,2,-256color} $TI/s/ | |
fc19ac86 | 69 | cp $TERMUX_PKG_TMPDIR/full-terminfo/t/tmux{,-256color} $TI/t/ |
9ff2bc5d FF |
70 | cp $TERMUX_PKG_TMPDIR/full-terminfo/v/{vt52,vt100,vt102} $TI/v/ |
71 | cp $TERMUX_PKG_TMPDIR/full-terminfo/x/xterm{,-color,-new,-16color,-256color,+256color} $TI/x/ | |
86cb8449 FF |
72 | |
73 | local RXVT_TAR=$TERMUX_PKG_CACHEDIR/rxvt-unicode-9.22.tar.bz2 | |
74 | termux_download http://dist.schmorp.de/rxvt-unicode/rxvt-unicode-9.22.tar.bz2 \ | |
75 | $RXVT_TAR \ | |
76 | e94628e9bcfa0adb1115d83649f898d6edb4baced44f5d5b769c2eeb8b95addd | |
77 | cd $TERMUX_PKG_TMPDIR | |
78 | local TI_FILE=rxvt-unicode-9.22/doc/etc/rxvt-unicode.terminfo | |
79 | tar xf $RXVT_TAR $TI_FILE | |
80 | tic -x -o $TI $TI_FILE | |
9ff2bc5d | 81 | } |