Update some toolchain build scripts

This commit is contained in:
Kevin Lange 2014-05-30 17:33:32 -07:00
parent 6296aff867
commit 18fb7cb934
2 changed files with 51 additions and 4 deletions

34
toolchain/rebuild-ncurses.sh Executable file
View File

@ -0,0 +1,34 @@
#!/bin/bash
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
. $DIR/config.sh
. $DIR/util.sh
. $DIR/activate.sh
VIRTPREFIX=/usr
REALPREFIX=$DIR/../hdd
pushd tarballs > /dev/null
rm -r "ncurses-5.9"
deco "ncurses" "ncurses-5.9.tar.gz"
patc "ncurses" "ncurses-5.9"
popd > /dev/null
pushd build
if [ ! -d ncurses-native ]; then
mkdir ncurses-native
fi
pushd ncurses-native
$DIR/tarballs/ncurses-5.9/configure --prefix=$VIRTPREFIX --host=$TARGET --with-terminfo-dirs=/usr/share/terminfo --with-default-terminfo-dir=/usr/share/terminfo --without-tests || bail
make || bail
make DESTDIR=$REALPREFIX install || bail
cp $DIR/../util/toaru.tic $REALPREFIX/$VIRTPREFIX/share/terminfo/t/toaru
cp $DIR/../util/toaru-vga.tic $REALPREFIX/$VIRTPREFIX/share/terminfo/t/toaru-vga
popd
pushd $REALPREFIX$VIRTPREFIX/bin || bail
$TARGET-strip *
popd
popd

View File

@ -3,6 +3,10 @@ DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
. $DIR/config.sh
. $DIR/util.sh
. $DIR/activate.sh
VIRTPREFIX=/usr
REALPREFIX=$DIR/../hdd
pushd tarballs > /dev/null
rm -rf "vim73"
@ -10,8 +14,17 @@ pushd tarballs > /dev/null
patc "vim" "vim73"
popd > /dev/null
pushd $DIR/tarballs/vim73
ac_cv_sizeof_int=4 vim_cv_getcwd_broken=no vim_cv_memmove_handles_overlap=yes vim_cv_stat_ignores_slash=no vim_cv_tgetent=zero vim_cv_terminfo=yes vim_cv_toupper_broken=no vim_cv_tty_group=world ./configure --host=$TARGET --target=$TARGET --prefix=$PREFIX/$TARGET --with-tlib=ncurses --enable-gui=no --disable-gtktest --disable-xim --with-features=normal --disable-gpm --without-x --disable-netbeans --enable-multibyte
make || bail
cp src/vim $DIR/../hdd/bin/vim
pushd build
pushd $DIR/tarballs/vim73
make distclean
ac_cv_sizeof_int=4 vim_cv_getcwd_broken=no vim_cv_memmove_handles_overlap=yes vim_cv_stat_ignores_slash=no vim_cv_tgetent=zero vim_cv_terminfo=yes vim_cv_toupper_broken=no vim_cv_tty_group=world ./configure --host=$TARGET --target=$TARGET --prefix=$VIRTPREFIX --with-tlib=ncurses --enable-gui=no --disable-gtktest --disable-xim --with-features=normal --disable-gpm --without-x --disable-netbeans --enable-multibyte
make || bail
make DESTDIR=$REALPREFIX install || bail
popd
pushd $REALPREFIX$VIRTPREFIX/bin || bail
$TARGET-strip *
popd
popd