diff options
-rw-r--r-- | stage2-zlib.morph | 15 | ||||
-rw-r--r-- | stage2-zlib.morph.yaml | 23 | ||||
-rw-r--r-- | zlib.morph | 14 | ||||
-rw-r--r-- | zlib.morph.yaml | 12 |
4 files changed, 64 insertions, 0 deletions
diff --git a/stage2-zlib.morph b/stage2-zlib.morph new file mode 100644 index 0000000..33e529d --- /dev/null +++ b/stage2-zlib.morph @@ -0,0 +1,15 @@ +{ + "name": "stage2-zlib", + "kind": "chunk", + "max-jobs": "1", + "configure-commands": [ + "stage2-eglibc-fix-specs", + "export STAGE2_SYSROOT=\"$(dirname $(pwd))\"\nexport CC=\"$TARGET_STAGE1-gcc --sysroot=$STAGE2_SYSROOT\"\nexport CHOST=$TARGET_STAGE1\nexport CXX=false\nexport LDSHARED=\"$TARGET_STAGE1-gcc -shared -Wl,--sysroot=$STAGE2_SYSROOT\"\n./configure --prefix=\"$PREFIX\"\n" + ], + "build-commands": [ + "export STAGE2_SYSROOT=\"$(dirname $(pwd))\"\nmake\n" + ], + "install-commands": [ + "make DESTDIR=\"$DESTDIR\" install" + ] +} diff --git a/stage2-zlib.morph.yaml b/stage2-zlib.morph.yaml new file mode 100644 index 0000000..f440326 --- /dev/null +++ b/stage2-zlib.morph.yaml @@ -0,0 +1,23 @@ +name: stage2-zlib +kind: chunk +max-jobs: '1' + +configure-commands: + - stage2-eglibc-fix-specs + + # ZLib's configure is not a standard autoconf configure script + - | + export STAGE2_SYSROOT="$(dirname $(pwd))" + export CC="$TARGET_STAGE1-gcc --sysroot=$STAGE2_SYSROOT" + export CHOST=$TARGET_STAGE1 + export CXX=false + export LDSHARED="$TARGET_STAGE1-gcc -shared -Wl,--sysroot=$STAGE2_SYSROOT" + ./configure --prefix="$PREFIX" + +build-commands: + - | + export STAGE2_SYSROOT="$(dirname $(pwd))" + make + +install-commands: + - make DESTDIR="$DESTDIR" install diff --git a/zlib.morph b/zlib.morph new file mode 100644 index 0000000..5567188 --- /dev/null +++ b/zlib.morph @@ -0,0 +1,14 @@ +{ + "name": "zlib", + "kind": "chunk", + "max-jobs": "1", + "configure-commands": [ + "./configure --prefix=\"$PREFIX\"" + ], + "build-commands": [ + "make" + ], + "install-commands": [ + "make DESTDIR=\"$DESTDIR\" install" + ] +} diff --git a/zlib.morph.yaml b/zlib.morph.yaml new file mode 100644 index 0000000..93c5a21 --- /dev/null +++ b/zlib.morph.yaml @@ -0,0 +1,12 @@ +name: zlib +kind: chunk +max-jobs: '1' + +configure-commands: + - ./configure --prefix="$PREFIX" + +build-commands: + - make + +install-commands: + - make DESTDIR="$DESTDIR" install |