66 lines
1.1 KiB
Bash
66 lines
1.1 KiB
Bash
. "$PROJECTDIR/build/ncurses/package.env"
|
|
|
|
fetch $NCURSES_URL
|
|
|
|
cd "$SOURCES" && tar xf ncurses-$NCURSES_VERSION.tar.gz && cd ncurses-$NCURSES_VERSION
|
|
|
|
|
|
bootstrap() {
|
|
echo bootstrap
|
|
}
|
|
|
|
|
|
toolchain() {
|
|
mkdir -p build
|
|
pushd build
|
|
../configure --prefix="$SYSROOT/cross" AWK=gawk > /dev/null
|
|
make -C include > /dev/null
|
|
make -C progs tic > /dev/null
|
|
install progs/tic "$SYSROOT/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 > /dev/null
|
|
|
|
make > /dev/null && make DESTDIR="$SYSROOT" install > /dev/null
|
|
ln -s libncursesw.so "$SYSROOT/usr/lib/libncurses.so"
|
|
sed -e 's/^#if.*XOPEN.*$/#if 1/' -i "$SYSROOT/usr/include/curses.h"
|
|
}
|
|
|
|
setup() {
|
|
echo setup
|
|
}
|
|
|
|
final() {
|
|
echo final
|
|
}
|
|
|
|
case $1 in
|
|
bootstrap)
|
|
bootstrap
|
|
;;
|
|
toolchain)
|
|
toolchain
|
|
;;
|
|
setup)
|
|
setup
|
|
;;
|
|
final)
|
|
final
|
|
;;
|
|
esac
|
|
|
|
|
|
rm -rf "$SOURCES/ncurses-$NCURSES_VERSION"
|