ports

morpheus ports
git clone git://git.2f30.org/ports
Log | Files | Refs | LICENSE

commit 7aa6256191f7aab92b9da87c2dd59e9df5f84ec0
parent 38a74708a45f3e1e2f30e2b4bc7aedc14d89b158
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date:   Sat, 12 Jul 2014 15:17:37 +0000

fix some more packages for cross-compile (ARM)

Signed-off-by: Hiltjo Posthuma <hiltjo@codemadness.org>

Diffstat:
Me2fsprogs/e2fsprogs.mk | 2++
Mextlinux/extlinux.mk | 2+-
Mextlinux/mkfile | 2+-
Mfile/file.mk | 7++++++-
Mfile/mkfile | 3++-
Mpcre/pcre.mk | 2++
6 files changed, 14 insertions(+), 4 deletions(-)

diff --git a/e2fsprogs/e2fsprogs.mk b/e2fsprogs/e2fsprogs.mk @@ -4,6 +4,8 @@ TARG = e2fsprogs e2fsprogs:QV: CC="$CC -static" CFLAGS="-D__uint64_t=u_int64_t" ./configure \ + --build="${TOOLCHAIN_TRIPLET}" \ + --host="${HOST_TOOLCHAIN_TRIPLET}" \ --prefix="$PREFIX" \ --disable-nls \ --bindir="$BINDIR" \ diff --git a/extlinux/extlinux.mk b/extlinux/extlinux.mk @@ -20,7 +20,7 @@ CPPFLAGS = bin2c:Q: echo "CC $target" - $CC -static -o $target ../../bin2c.c + $HOSTCC -static -o $target ../../bin2c.c bootsect_bin.c:Q: bin2c ./bin2c ../bios/core/ldlinux.bss $target syslinux_bootsect diff --git a/extlinux/mkfile b/extlinux/mkfile @@ -2,5 +2,5 @@ <v.mk src = syslinux-$v/build -url = $mirror/syslinux-$v.tar.xz +url = https://www.kernel.org/pub/linux/utils/boot/syslinux/syslinux-$v.tar.xz mkfile = ../../extlinux.mk diff --git a/file/file.mk b/file/file.mk @@ -1,3 +1,4 @@ +# TODO: bump to version 5.19 <../../v.mk BIN = file OBJ = `{ls *.c | sed 's/.$/o/'} @@ -105,4 +106,8 @@ magic.mgc:Q: file cd ../magic mkdir -p magic cp Header Localstuff Magdir/* magic/ - ../src/file -C -m magic + # use host file command to generate magic.mgc + cd magic + file -C -m magic + cp magic.mgc ../ + cd ../ diff --git a/file/mkfile b/file/mkfile @@ -2,5 +2,6 @@ <v.mk src = file-$v/src -url = $mirror/file-$v.tar.gz +# site: http://www.darwinsys.com/file/ +url = ftp://ftp.astron.com/pub/file/file-$v.tar.gz mkfile = ../../file.mk diff --git a/pcre/pcre.mk b/pcre/pcre.mk @@ -7,6 +7,8 @@ pcre:QV: export CFLAGS="$CFLAGS $DEPS_CFLAGS" export LDFLAGS="$LDFLAGS $DEPS_LDFLAGS" CC="$CC" ./configure \ + --build="${TOOLCHAIN_TRIPLET}" \ + --host="${HOST_TOOLCHAIN_TRIPLET}" \ --prefix="$PREFIX" \ --mandir="$ROOT/share/man" \ --disable-cpp \