41 lines
793 B
Bash
41 lines
793 B
Bash
|
|
fetch $NCURSES_URL
|
|
|
|
cd "$SOURCES" && tar xf ncurses-$NCURSES_VERSION.tar.gz && cd ncurses-$NCURSES_VERSION
|
|
|
|
mkdir -p build
|
|
|
|
pushd build
|
|
../configure \
|
|
--prefix="$CROSS" \
|
|
AWK=gawk \
|
|
--silent \
|
|
--quiet
|
|
|
|
make -C include && make -C progs tic
|
|
install progs/tic "$CROSS/bin"
|
|
popd
|
|
|
|
./configure \
|
|
--prefix=/usr \
|
|
--host=$TARGET \
|
|
--build=$(./config.guess) \
|
|
--mandir=/usr/share/man \
|
|
--with-manpage-format=normal \
|
|
--with-shared \
|
|
--without-normal \
|
|
--with-cxx-shared \
|
|
--without-debug \
|
|
--without-ada \
|
|
--disable-stripping \
|
|
AWK=gawk \
|
|
--silent \
|
|
--quiet
|
|
|
|
make && make DESTDIR="$SYSROOT" install
|
|
|
|
ln -s libncursesw.so "$SYSROOT"/usr/lib/libncurses.so
|
|
|
|
sed -e 's/^#if.*XOPEN.*$/#if 1/' -i "$SYSROOT"/usr/include/curses.h
|
|
|
|
cd "$SOURCES" && rm -rf ncurses-$NCURSES_VERSION |