Ports: Add npth port

This commit is contained in:
Gunnar Beutner 2021-04-14 04:31:52 +02:00 committed by Andreas Kling
parent a937182254
commit 0b7079a76a
Notes: sideshowbarker 2024-07-18 20:23:14 +09:00
3 changed files with 22 additions and 0 deletions

View File

@ -67,6 +67,7 @@ Please make sure to keep this list up to date when adding and updating ports. :^
| [`neofetch`](neofetch/) | neofetch | 7.1.0 | https://github.com/dylanaraps/neofetch |
| [`nesalizer`](nesalizer/) | Nesalizer | | https://github.com/SerenityOS/nesalizer |
| [`ninja`](ninja/) | Ninja | 1.8.2 | https://ninja-build.org/ |
| [`npth`](npth/) | New GNU Portable Threads Library | 1.6 | https://gnupg.org/software/npth/index.html |
| [`nyancat`](nyancat/) | Nyancat | | https://github.com/klange/nyancat |
| [`openssh`](openssh/) | OpenSSH | 8.3-9ca7e9c | https://github.com/openssh/openssh-portable |
| [`openssl`](openssl/) | OpenSSL | 1.0.2 | https://www.openssl.org/ |

9
Ports/npth/package.sh Executable file
View File

@ -0,0 +1,9 @@
#!/usr/bin/env -S bash ../.port_include.sh
port=npth
version=1.6
useconfigure=true
files="https://gnupg.org/ftp/gcrypt/npth/npth-${version}.tar.bz2 npth-${version}.tar.bz2"
configure() {
run ./configure --host="${SERENITY_ARCH}-pc-serenity" --build="$($workdir/build-aux/config.guess)" $configopts
}

View File

@ -0,0 +1,12 @@
diff -Naur npth-1.6/build-aux/config.sub npth-1.6.serenity/build-aux/config.sub
--- npth-1.6/build-aux/config.sub 2021-04-14 02:43:42.288159882 +0200
+++ npth-1.6.serenity/build-aux/config.sub 2016-07-13 19:03:42.000000000 +0200
@@ -1381,7 +1381,7 @@
# The portable systems comes first.
# 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* \
+ -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* \