added bash toolchain step & formatted
This commit is contained in:
@@ -7,36 +7,36 @@ cd "$SOURCES" && tar xf ncurses-$NCURSES_VERSION.tar.gz && cd ncurses-$NCURSES_V
|
||||
|
||||
|
||||
bootstrap() {
|
||||
echo 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
|
||||
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"
|
||||
./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() {
|
||||
@@ -48,13 +48,13 @@ final() {
|
||||
}
|
||||
|
||||
case $1 in
|
||||
bootstrap)
|
||||
bootstrap)
|
||||
bootstrap
|
||||
;;
|
||||
toolchain)
|
||||
toolchain
|
||||
;;
|
||||
setup)
|
||||
setup)
|
||||
setup
|
||||
;;
|
||||
final)
|
||||
|
||||
Reference in New Issue
Block a user