summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Ports/AvailablePorts.md1
-rwxr-xr-xPorts/libatomic_ops/package.sh7
-rw-r--r--Ports/libatomic_ops/patches/fix-autoconf.patch12
3 files changed, 20 insertions, 0 deletions
diff --git a/Ports/AvailablePorts.md b/Ports/AvailablePorts.md
index 1f1048e08e..3a5454a304 100644
--- a/Ports/AvailablePorts.md
+++ b/Ports/AvailablePorts.md
@@ -62,6 +62,7 @@ Please make sure to keep this list up to date when adding and updating ports. :^
| [`less`](less/) | less | 530 | http://www.greenwoodsoftware.com/less/ |
| [`libarchive`](libarchive/) | libarchive | 3.5.1 | https://libarchive.org/ |
| [`libassuan`](libassuan/) | libassuan | 2.5.5 | https://gnupg.org/software/libassuan/index.html |
+| [`libatomic_ops`](libatomic_ops/) | libatomic\_ops | 7.6.10 | https://www.hboehm.info/gc/ |
| [`libexpat`](libexpat/) | Expat | 2.2.9 | https://libexpat.github.io/ |
| [`libffi`](libffi/) | libffi | 3.4.2 | https://www.sourceware.org/libffi/ |
| [`libgcrypt`](libgcrypt/) | libgcrypt | 1.9.2 | https://gnupg.org/software/libgcrypt/index.html |
diff --git a/Ports/libatomic_ops/package.sh b/Ports/libatomic_ops/package.sh
new file mode 100755
index 0000000000..cc6be68384
--- /dev/null
+++ b/Ports/libatomic_ops/package.sh
@@ -0,0 +1,7 @@
+#!/usr/bin/env -S bash ../.port_include.sh
+
+port=libatomic_ops
+version=7.6.10
+useconfigure=true
+files="https://www.hboehm.info/gc/gc_source/libatomic_ops-${version}.tar.gz libatomic_ops-${version}.tar.gz 587edf60817f56daf1e1ab38a4b3c729b8e846ff67b4f62a6157183708f099af"
+auth_type=sha256
diff --git a/Ports/libatomic_ops/patches/fix-autoconf.patch b/Ports/libatomic_ops/patches/fix-autoconf.patch
new file mode 100644
index 0000000000..12fb5ff6c1
--- /dev/null
+++ b/Ports/libatomic_ops/patches/fix-autoconf.patch
@@ -0,0 +1,12 @@
+--- libatomic_ops-7.6.10/config.sub 2021-07-18 14:24:53.950762337 +0100
++++ libatomic_ops-7.6.10/config.sub 2021-07-18 14:25:19.341651925 +0100
+@@ -1393,7 +1393,8 @@
+ | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
+ | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
+ | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \
+- | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es* | -tirtos*)
++ | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es* | -tirtos* \
++ | -serenity* )
+ # Remember, each alternative MUST END IN *, to match a version number.
+ ;;
+ -qnx*)