2019-06-25 06:58:01 -06:00
|
|
|
#!/bin/sh -e
|
|
|
|
|
|
|
|
./configure \
|
|
|
|
--prefix=/usr \
|
|
|
|
--mandir=/usr/share/man \
|
|
|
|
--enable-pc-files \
|
|
|
|
--disable-rpath-hack \
|
|
|
|
--with-pkg-config-libdir=/usr/lib/pkgconfig \
|
|
|
|
--with-shared \
|
|
|
|
--enable-widec \
|
|
|
|
--without-ada \
|
|
|
|
--without-tests \
|
|
|
|
--without-debug \
|
|
|
|
--without-cxx-binding
|
|
|
|
|
|
|
|
make
|
2023-03-02 07:40:00 -07:00
|
|
|
make DESTDIR="$1" install
|
2019-06-25 06:58:01 -06:00
|
|
|
|
2020-01-03 01:11:47 -07:00
|
|
|
# Force ncurses to link against wide-character ncurses library.
|
|
|
|
for lib in ncurses form panel menu; do
|
|
|
|
rm -f "$1/usr/lib/lib${lib}.so"
|
|
|
|
printf '%s\n' "INPUT(-l${lib}w)" > "$1/usr/lib/lib${lib}.so"
|
|
|
|
chmod 755 "$1/usr/lib/lib${lib}.so"
|
|
|
|
ln -sf "lib${lib}w.a" "$1/usr/lib/lib${lib}.a"
|
|
|
|
done
|
|
|
|
|
|
|
|
# Some packages look for libcurses instead of libncurses when building.
|
|
|
|
printf '%s\n' "INPUT(-lncursesw)" > "$1/usr/lib/libcursesw.so"
|
|
|
|
ln -s libncurses.so "$1/usr/lib/libcurses.so"
|
2020-02-15 15:43:39 -07:00
|
|
|
|
|
|
|
# Fix pkgconfig file.
|
|
|
|
ln -s ncursesw.pc "$1/usr/lib/pkgconfig/ncurses.pc"
|