|
|
@ -2,7 +2,7 @@ |
|
|
|
# This copyright note is auto-generated by ./scripts/Create-CopyPatch. |
|
|
|
# |
|
|
|
# Filename: package/.../readline/readline.conf |
|
|
|
# Copyright (C) 2009 - 2016 The OpenSDE Project |
|
|
|
# Copyright (C) 2009 - 2020 The OpenSDE Project |
|
|
|
# Copyright (C) 2004 - 2006 The T2 SDE Project |
|
|
|
# Copyright (C) 1998 - 2003 Clifford Wolf |
|
|
|
# |
|
|
@ -14,13 +14,12 @@ |
|
|
|
# GNU General Public License can be found in the file COPYING. |
|
|
|
# --- SDE-COPYRIGHT-NOTE-END --- |
|
|
|
|
|
|
|
var_remove confopt " " "--disable-shared" |
|
|
|
var_remove confopt " " "--disable-static" |
|
|
|
hook_add postmake 5 "cp -rv examples/ $root/$docdir" |
|
|
|
var_append confopt ' ' '--disable-static' |
|
|
|
|
|
|
|
if pkginstalled -f ncurses; then |
|
|
|
var_append makeopt ' ' 'SHLIB_LIBS=-lncurses' |
|
|
|
var_append makeinstopt ' ' 'SHLIB_LIBS=-lncurses' |
|
|
|
var_append confopt ' ' '--with-curses' |
|
|
|
var_append makeopt ' ' 'SHLIB_LIBS=-lncursesw' |
|
|
|
var_append makeinstopt ' ' 'SHLIB_LIBS=-lncursesw' |
|
|
|
fi |
|
|
|
|
|
|
|
pkg_readline_preconf() { |
|
|
@ -43,3 +42,13 @@ hook_add preconf 5 "pkg_readline_preconf" |
|
|
|
if atstage cross; then |
|
|
|
var_append configcache ' ' 'bash_cv_wcwidth_broken=no' |
|
|
|
fi |
|
|
|
|
|
|
|
pkg_readline_postinstall() { |
|
|
|
# we move libs in a nicer place |
|
|
|
mv $root/usr/lib/lib{readline,history}.so.* $root//lib |
|
|
|
chmod -v u+w $root/lib/lib{readline,history}.so.* |
|
|
|
ln -sfv $root/lib/$(readlink $root/usr/lib/libreadline.so) $root/usr/lib/libreadline.so |
|
|
|
ln -sfv $root/lib/$(readlink $root/usr/lib/libhistory.so ) $root/usr/lib/libhistory.so |
|
|
|
} |
|
|
|
|
|
|
|
hook_add postinstall 7 "pkg_readline_postinstall" |