mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 00:47:45 +00:00
Ports: Add GNU make 4.2! :^)
This commit is contained in:
parent
a3213659dd
commit
be7dcca1a6
2 changed files with 43 additions and 0 deletions
23
Ports/make/make-4.2-serenity.patch
Normal file
23
Ports/make/make-4.2-serenity.patch
Normal file
|
@ -0,0 +1,23 @@
|
||||||
|
diff -ru make/arscan.c make-serenity/arscan.c
|
||||||
|
--- make/arscan.c 2016-05-21 22:21:52.000000000 +0200
|
||||||
|
+++ make-serenity/arscan.c 2019-07-21 16:11:09.161133749 +0200
|
||||||
|
@@ -331,7 +331,7 @@
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef WINDOWS32
|
||||||
|
-# if !defined (__ANDROID__) && !defined (__BEOS__)
|
||||||
|
+# if !defined (__ANDROID__) && !defined (__BEOS__) && !defined (__serenity__)
|
||||||
|
# include <ar.h>
|
||||||
|
# else
|
||||||
|
/* These platforms don't have <ar.h> but have archives in the same format
|
||||||
|
diff -ru make/config/config.sub make-serenity/config/config.sub
|
||||||
|
--- make/config/config.sub 2016-05-22 15:27:16.000000000 +0200
|
||||||
|
+++ make-serenity/config/config.sub 2019-07-21 16:15:39.469065104 +0200
|
||||||
|
@@ -1374,6 +1374,7 @@
|
||||||
|
# Each alternative MUST END IN A *, to match a version number.
|
||||||
|
# -sysv* is not here because it comes later, after sysvr4.
|
||||||
|
-gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \
|
||||||
|
+ | -serenity* \
|
||||||
|
| -*vms* | -sco* | -esix* | -isc* | -aix* | -cnk* | -sunos | -sunos[34]*\
|
||||||
|
| -hpux* | -unos* | -osf* | -luna* | -dgux* | -auroraux* | -solaris* \
|
||||||
|
| -sym* | -kopensolaris* | -plan9* \
|
20
Ports/make/make.sh
Executable file
20
Ports/make/make.sh
Executable file
|
@ -0,0 +1,20 @@
|
||||||
|
#!/bin/sh
|
||||||
|
PORT_DIR=make
|
||||||
|
fetch() {
|
||||||
|
run_fetch_web "https://ftp.gnu.org/gnu/make/make-4.2.tar.bz2"
|
||||||
|
|
||||||
|
run_patch make-4.2-serenity.patch -p1
|
||||||
|
}
|
||||||
|
|
||||||
|
configure() {
|
||||||
|
run_configure_autotools \
|
||||||
|
--target=i686-pc-serenity \
|
||||||
|
--with-sysroot=/
|
||||||
|
}
|
||||||
|
build() {
|
||||||
|
run_make
|
||||||
|
}
|
||||||
|
install() {
|
||||||
|
run_make_install DESTDIR="$SERENITY_ROOT"/Root
|
||||||
|
}
|
||||||
|
. ../.port_include.sh
|
Loading…
Add table
Add a link
Reference in a new issue