2013-09-07 14:32:03 +00:00
|
|
|
url=$mirror/ncurses.tar.gz
|
|
|
|
|
|
|
|
fetch() {
|
|
|
|
wget -c $url -O src/ncurses.tar.gz
|
|
|
|
}
|
|
|
|
|
|
|
|
unpack() {
|
|
|
|
pushd src
|
|
|
|
[ -d ncurses-5.9 ] || tar xzf ncurses.tar.gz
|
|
|
|
popd
|
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
|
|
|
pushd src/ncurses-5.9
|
2013-09-19 13:25:40 +00:00
|
|
|
cp $top/stuff/ncurses-fallback.c ncurses/fallback.c
|
2013-09-25 13:12:49 +00:00
|
|
|
CC=x86_64-linux-musl-gcc ./configure --prefix=$libcroot --without-tests \
|
2013-09-17 10:37:13 +00:00
|
|
|
--with-normal --enable-sigwinch --disable-nls --without-dlsym \
|
2013-09-19 13:53:15 +00:00
|
|
|
--without-cxx-binding \
|
|
|
|
--with-fallbacks="linux vt100 xterm xterm256-color" </dev/ptmx || return 1
|
2013-09-25 12:47:38 +00:00
|
|
|
make -j$nprocs || return 1
|
2013-09-07 14:32:03 +00:00
|
|
|
popd
|
|
|
|
}
|
|
|
|
|
|
|
|
install() {
|
|
|
|
pushd src/ncurses-5.9
|
2013-09-17 14:40:13 +00:00
|
|
|
make install || return 1
|
2013-09-07 14:32:03 +00:00
|
|
|
popd
|
|
|
|
}
|