1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # T2 SDE: package/*/readline/readline.conf
3 # Copyright (C) 2004 - 2024 The T2 SDE Project
4 # Copyright (C) 1998 - 2003 ROCK Linux Project
6 # This Copyright note is generated by scripts/Create-CopyPatch,
7 # more information can be found in the files COPYING and README.
9 # This program is free software; you can redistribute it and/or modify
10 # it under the terms of the GNU General Public License version 2.
11 # --- T2-COPYRIGHT-NOTE-END ---
13 var_remove confopt " " "--disable-shared"
14 var_remove confopt " " "--disable-static"
15 hook_add postmake 5 "cp -rv examples/ $root$docdir"
17 pkginstalled ncurses && var_append makeopt ' ' 'SHLIB_LIBS=-lncurses'
18 #pkginstalled ncurses && var_append confopt ' ' '--with-curses'
19 atstage cross && hook_add preconf 5 "echo 'bash_cv_wcwidth_broken=yes' >> config.cache"
21 pkg_readline_preconf() {
22 for x in `match_source_file -p "readline${ver:0:1}${ver:2:1}-.*"`; do
23 echo "Applying patch ${x##*/} ..."
27 # remove borked termcap dependency that messes up pkg-config
28 sed -i '/TERMCAP_PKG_CONFIG_LIB/d' readline.pc.in
30 hook_add preconf 5 "pkg_readline_preconf"