hblock: bump to 3.4.0
[kiss-trunc88.git] / ncurses / build
blob882e1a83d9c075d7f85c375a719ae3b16d3a7d48
1 #!/bin/sh -e
3 ./configure \
4 --prefix=/usr \
5 --mandir=/usr/share/man \
6 --enable-pc-files \
7 --disable-rpath-hack \
8 --with-pkg-config-libdir=/usr/lib/pkgconfig \
9 --with-shared \
10 --enable-widec \
11 --enable-ext-colors \
12 --without-ada \
13 --without-tests \
14 --without-debug \
15 --without-manpages \
16 --without-cxx-binding
18 make
19 make DESTDIR="$1" install
21 # Force ncurses to link against wide-character ncurses library.
22 for lib in ncurses form panel menu; do
23 rm -f "$1/usr/lib/lib${lib}.so"
24 printf '%s\n' "INPUT(-l${lib}w)" > "$1/usr/lib/lib${lib}.so"
25 chmod 755 "$1/usr/lib/lib${lib}.so"
26 ln -sf "lib${lib}w.a" "$1/usr/lib/lib${lib}.a"
27 done
29 # Some packages look for libcurses instead of libncurses when building.
30 printf '%s\n' "INPUT(-lncursesw)" > "$1/usr/lib/libcursesw.so"
31 ln -s libncurses.so "$1/usr/lib/libcurses.so"
33 # Fix pkgconfig file.
34 ln -s ncursesw.pc "$1/usr/lib/pkgconfig/ncurses.pc"