commit changes
This commit is contained in:
41
stage/toolchain/ncurses.bash
Normal file
41
stage/toolchain/ncurses.bash
Normal file
@@ -0,0 +1,41 @@
|
||||
|
||||
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
|
||||
Reference in New Issue
Block a user