Dash:
[t2.git] / package / base / readline / readline.conf
blob6104b3ab18be8e7cfd2b055defcb282215d4b6e1
1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # T2 SDE: package/*/readline/readline.conf
3 # Copyright (C) 2004 - 2021 The T2 SDE Project
4 # Copyright (C) 1998 - 2003 ROCK Linux Project
5
6 # This Copyright note is generated by scripts/Create-CopyPatch,
7 # more information can be found in the files COPYING and README.
8
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 atstage cross && hook_add preconf 5 "echo 'bash_cv_wcwidth_broken=yes' >> config.cache"
20 pkg_readline_preconf() {
21         for x in `match_source_file -p "readline${ver:0:1}${ver:2:1}-.*"`; do
22                 echo "Applying patch ${x##*/} ..."
23                 patch -p0 < $x
24         done
27 hook_add preconf 5 "pkg_readline_preconf"