1
0
mirror of git://git.2f30.org/morpheus.git synced 2024-06-16 10:28:33 +00:00

Add $libcroot

This commit is contained in:
sin 2013-09-25 14:12:49 +01:00
parent 7b16b96176
commit acdf184cdf
10 changed files with 15 additions and 14 deletions

@ -12,7 +12,7 @@ unpack() {
build() { build() {
pushd src/curl-7.32.0 pushd src/curl-7.32.0
CC=x86_64-linux-musl-gcc ./configure --prefix=$top/cross --with-ssl \ CC=x86_64-linux-musl-gcc ./configure --prefix=$libcroot --with-ssl \
--with-random=/dev/urandom --disable-shared || return 1 --with-random=/dev/urandom --disable-shared || return 1
make -j$nprocs || return 1 make -j$nprocs || return 1
popd popd

@ -12,7 +12,7 @@ unpack() {
build() { build() {
pushd src/libevent-2.0.21-stable pushd src/libevent-2.0.21-stable
CC=x86_64-linux-musl-gcc ./configure --prefix=$top/cross --disable-shared || return 1 CC=x86_64-linux-musl-gcc ./configure --prefix=$libcroot --disable-shared || return 1
make -j$nprocs || return 1 make -j$nprocs || return 1
popd popd
} }

@ -12,7 +12,7 @@ unpack() {
build() { build() {
pushd src/libsigc++-2.3.1 pushd src/libsigc++-2.3.1
CC=x86_64-linux-musl-gcc ./configure --prefix=$top/cross --disable-shared --enable-static || return 1 CC=x86_64-linux-musl-gcc ./configure --prefix=$libcroot --disable-shared --enable-static || return 1
make -j$nprocs || return 1 make -j$nprocs || return 1
popd popd
} }

@ -12,8 +12,8 @@ unpack() {
build() { build() {
pushd src/libtorrent-0.13.3 pushd src/libtorrent-0.13.3
CC=x86_64-linux-musl-gcc ./configure --prefix=$top/cross --disable-shared || return 1 CC=x86_64-linux-musl-gcc ./configure --prefix=$libcroot --disable-shared || return 1
make CC=x86_64-linux-musl-gcc -j$nprocs || return 1 make -j$nprocs || return 1
popd popd
} }

@ -13,7 +13,7 @@ unpack() {
build() { build() {
pushd src/ncurses-5.9 pushd src/ncurses-5.9
cp $top/stuff/ncurses-fallback.c ncurses/fallback.c cp $top/stuff/ncurses-fallback.c ncurses/fallback.c
CC=x86_64-linux-musl-gcc ./configure --prefix=$top/cross --without-tests \ CC=x86_64-linux-musl-gcc ./configure --prefix=$libcroot --without-tests \
--with-normal --enable-sigwinch --disable-nls --without-dlsym \ --with-normal --enable-sigwinch --disable-nls --without-dlsym \
--without-cxx-binding \ --without-cxx-binding \
--with-fallbacks="linux vt100 xterm xterm256-color" </dev/ptmx || return 1 --with-fallbacks="linux vt100 xterm xterm256-color" </dev/ptmx || return 1

@ -12,7 +12,7 @@ unpack() {
build() { build() {
pushd src/zlib-1.2.8 pushd src/zlib-1.2.8
CC=x86_64-linux-musl-gcc ./configure --prefix=$top/cross --static || return 1 CC=x86_64-linux-musl-gcc ./configure --prefix=$libcroot --static || return 1
make -j$nprocs || return 1 make -j$nprocs || return 1
popd popd
} }

@ -12,8 +12,8 @@ unpack() {
build() { build() {
pushd src/dropbear-2013.56 pushd src/dropbear-2013.56
CC=x86_64-linux-musl-gcc ./configure CFLAGS="-I$top/cross/include" \ CC=x86_64-linux-musl-gcc ./configure CFLAGS="-I$libcroot/include" \
LDFLAGS="-static -L$top/cross/lib" --prefix=$root || return 1 LDFLAGS="-static -L$libcroot/lib" --prefix=$root || return 1
for i in UTMP WTMP PUTUTLINE PUTUTXLINE SYSLOG LASTLOG; do for i in UTMP WTMP PUTUTLINE PUTUTXLINE SYSLOG LASTLOG; do
echo "#define DISABLE_$i" >> config.h echo "#define DISABLE_$i" >> config.h
done done

@ -13,8 +13,8 @@ unpack() {
build() { build() {
pushd src/tmux-1.8 pushd src/tmux-1.8
CC=x86_64-linux-musl-gcc ./configure --prefix=$root \ CC=x86_64-linux-musl-gcc ./configure --prefix=$root \
CFLAGS="-I$top/cross/include -I$top/cross/include/ncurses" \ CFLAGS="-I$libcroot/include -I$libcroot/include/ncurses" \
LDFLAGS="-static -L$top/cross/lib" || return 1 LDFLAGS="-static -L$libcroot/lib" || return 1
make -j$nprocs || return 1 make -j$nprocs || return 1
popd popd
} }

@ -1,10 +1,11 @@
top=$(pwd) top=$(pwd)
root=$top/root root=$top/root
libcroot=$top/cross/x86_64-linux-musl
nprocs=4 nprocs=4
arch=x86_64 arch=x86_64
version=0.0 version=0.0
mirror=http://dl.2f30.org/morpheus-pkgs/$arch/$version mirror=http://dl.2f30.org/morpheus-pkgs/$arch/$version
export top root nprocs mirror export top root libcroot nprocs mirror
PATH=$top/cross/x86_64-linux-musl/bin:$PATH PATH=$libcroot/bin:$PATH
export PATH export PATH

2
stage0

@ -46,7 +46,7 @@ build_pkg_deps() {
continue continue
fi fi
deps=$(echo $line | cut -d' ' -f2-) deps=$(echo $line | cut -d' ' -f2-)
build_pkg_dep $pkg $deps build_pkg_dep "$pkg" "$deps"
break break
done < DEPS done < DEPS
} }