From 60569cf68bf909c08b80af79851eb42e0e709f4f Mon Sep 17 00:00:00 2001 From: Matheus Date: Sun, 20 Nov 2022 20:10:34 -0300 Subject: [PATCH] ports: make port --- patches/make/jinx-working-patch.patch | 13 +++++++++++++ recipes/make | 25 +++++++++++++++++++++++++ source-recipes/make | 8 ++++++++ 3 files changed, 46 insertions(+) create mode 100644 patches/make/jinx-working-patch.patch create mode 100644 recipes/make create mode 100644 source-recipes/make diff --git a/patches/make/jinx-working-patch.patch b/patches/make/jinx-working-patch.patch new file mode 100644 index 00000000..ef354a0b --- /dev/null +++ b/patches/make/jinx-working-patch.patch @@ -0,0 +1,13 @@ +diff --git make-clean/build-aux/config.sub make-workdir/build-aux/config.sub +index dba16e8..bbd0740 100755 +--- make-clean/build-aux/config.sub ++++ make-workdir/build-aux/config.sub +@@ -1723,7 +1723,7 @@ case $os in + # Now accept the basic system types. + # The portable systems comes first. + # Each alternative MUST end in a * to match a version number. +- gnu* | android* | bsd* | mach* | minix* | genix* | ultrix* | irix* \ ++ gnu* | android* | astral* | bsd* | mach* | minix* | genix* | ultrix* | irix* \ + | *vms* | esix* | aix* | cnk* | sunos | sunos[34]* \ + | hpux* | unos* | osf* | luna* | dgux* | auroraux* | solaris* \ + | sym* | plan9* | psp* | sim* | xray* | os68k* | v88r* \ diff --git a/recipes/make b/recipes/make new file mode 100644 index 00000000..a5315f85 --- /dev/null +++ b/recipes/make @@ -0,0 +1,25 @@ +name=make +revision=1 +from_source=make +imagedeps="base-devel" +hostdeps="gcc-cross binutils-cross" +deps="mlibc" + + +configure() { + + ${source_dir}/configure --host=x86_64-astral --prefix=${prefix} + +} + +build() { + + make -j${parallelism} + +} + +install() { + + make install DESTDIR="${dest_dir}" + +} diff --git a/source-recipes/make b/source-recipes/make new file mode 100644 index 00000000..1a55b1e0 --- /dev/null +++ b/source-recipes/make @@ -0,0 +1,8 @@ +name=make +version=4.4 +source_method=tarball +tarball_url="https://ftp.gnu.org/gnu/make/make-${version}.tar.gz" +tarball_sha512=4be73f494295dcfa10034531b0d920cfdb5438bc20625f863f5c878549c140e1e67195162580c53060c3c11c67a2c739c09051f02cdd283e5aa9ebcd68975a1f +regenerate() { + true +}