commit 0e903b7079e71204b4211a47ccd6d6b2a08826e4 parent abea932f60e70a4a76dd2fcde6ad080f8b688153 Author: sin <sin@2f30.org> Date: Sat, 7 Sep 2013 15:32:03 +0100 Add libevent and ncurses Diffstat:
A | cross-scripts/libevent-2.0.21 | | | 24 | ++++++++++++++++++++++++ |
A | cross-scripts/ncurses-5.9 | | | 24 | ++++++++++++++++++++++++ |
M | stage0 | | | 2 | ++ |
3 files changed, 50 insertions(+), 0 deletions(-)
diff --git a/cross-scripts/libevent-2.0.21 b/cross-scripts/libevent-2.0.21 @@ -0,0 +1,24 @@ +url=$mirror/libevent-2.0.21-stable.tar.gz + +fetch() { + wget -c $url -O src/libevent-2.0.21-stable.tar.gz +} + +unpack() { + pushd src + [ -d libevent-2.0.21-stable ] || tar xzf libevent-2.0.21-stable.tar.gz + popd +} + +build() { + pushd src/libevent-2.0.21-stable + CC=musl-gcc ./configure --prefix=$top/cross + make CC=musl-gcc -j$nprocs + popd +} + +install() { + pushd src/libevent-2.0.21-stable + make install + popd +} diff --git a/cross-scripts/ncurses-5.9 b/cross-scripts/ncurses-5.9 @@ -0,0 +1,24 @@ +url=$mirror/ncurses.tar.gz + +fetch() { + wget -c $url -O src/ncurses.tar.gz +} + +unpack() { + pushd src + [ -d ncurses-5.9 ] || tar xzf ncurses.tar.gz + popd +} + +build() { + pushd src/ncurses-5.9 + CC=musl-gcc ./configure --prefix=$top/cross + make CC=musl-gcc -j$nprocs + popd +} + +install() { + pushd src/ncurses-5.9 + make install + popd +} diff --git a/stage0 b/stage0 @@ -21,6 +21,8 @@ ln -s /bin sbin popd ./build cross-scripts/musl-0.9.13 +./build cross-scripts/libevent-2.0.21 +./build cross-scripts/ncurses-5.9 ./build cross-scripts/zlib-1.2.8 PATH=$top/cross/bin:$PATH