ports/ncurses: Enable widec support and disable test compilation

There is one test with buggy macros that does not compile and im not
feeling like making a patch for it now :^)
This commit is contained in:
2026-07-20 04:07:23 +03:00
parent e03a26cf01
commit 130c4f681c
+7 -2
View File
@@ -9,15 +9,20 @@ CONFIGURE_OPTIONS=(
"--with-pkg-config-libdir=/usr/lib/pkgconfig"
'--enable-pc-files'
'--enable-sigwinch'
'--disable-widec'
'--with-shared'
'--with-trace'
'--without-tests'
'--without-ada'
'--without-manpages'
CFLAGS='-std=c17'
)
post_install() {
for lib in ncurses ncurses++ form panel menu; do
ln -sv ${lib}w.pc "$DESTDIR/usr/lib/pkgconfig/$lib.pc"
done
ln -sv libncursesw.so "$DESTDIR/usr/lib/libncurses.so"
shellrc="$BANAN_SYSROOT/home/user/.shellrc"
grep -q 'export NCURSES_NO_UTF8_ACS=' "$shellrc" || echo 'export NCURSES_NO_UTF8_ACS=1' >> "$shellrc"
}