Ports: Provide designated wide-char versions of ncurses
This commit is contained in:
parent
3336c382fb
commit
ed8c1e961c
Notes:
sideshowbarker
2024-07-18 02:16:58 +09:00
Author: https://github.com/timschumi Commit: https://github.com/SerenityOS/serenity/commit/ed8c1e961cd Pull-request: https://github.com/SerenityOS/serenity/pull/10503
1 changed files with 14 additions and 4 deletions
|
@ -11,7 +11,6 @@ configopts=(
|
|||
"--with-shared"
|
||||
"--without-ada"
|
||||
"--enable-widec"
|
||||
"--disable-lib-suffixes"
|
||||
)
|
||||
files="https://ftpmirror.gnu.org/gnu/ncurses/ncurses-${version}.tar.gz ncurses-${version}.tar.gz 30306e0c76e0f9f1f0de987cf1c82a5c21e1ce6568b9227f7da5b71cbea86c9d"
|
||||
auth_type="sha256"
|
||||
|
@ -21,7 +20,18 @@ pre_configure() {
|
|||
}
|
||||
|
||||
post_install() {
|
||||
ln -svf libncurses.so "${SERENITY_INSTALL_ROOT}/usr/local/lib/libcurses.so"
|
||||
ln -svf libncurses.so "${SERENITY_INSTALL_ROOT}/usr/local/lib/libtic.so"
|
||||
ln -svf libncurses.so "${SERENITY_INSTALL_ROOT}/usr/local/lib/libtinfo.so"
|
||||
# Compatibility symlinks for merged libraries.
|
||||
for lib in tinfo tic curses; do
|
||||
ln -svf libncursesw.so "${SERENITY_INSTALL_ROOT}/usr/local/lib/lib${lib}w.so"
|
||||
done
|
||||
|
||||
# Compatibility symlinks for non-w libraries.
|
||||
for lib in form menu ncurses ncurses++ panel tinfo tic curses; do
|
||||
ln -svf lib${lib}w.so "${SERENITY_INSTALL_ROOT}/usr/local/lib/lib${lib}.so"
|
||||
done
|
||||
|
||||
# Compatibility symlink for the include folder.
|
||||
# Target folder has to be removed, otherwise we will get `/usr/local/include/ncurses/ncursesw`.
|
||||
rm -rf "${SERENITY_INSTALL_ROOT}/usr/local/include/ncurses"
|
||||
ln -svf ncursesw "${SERENITY_INSTALL_ROOT}/usr/local/include/ncurses"
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue