git: 7abf90ea6000 - main - devel/linux-rl9-libatomic: Add new port

From: Nicola Vitale <nivit_at_FreeBSD.org>
Date: Mon, 26 Aug 2024 14:15:08 UTC
The branch main has been updated by nivit:

URL: https://cgit.FreeBSD.org/ports/commit/?id=7abf90ea6000d0ac15fa14acdb77f4da7f701177

commit 7abf90ea6000d0ac15fa14acdb77f4da7f701177
Author:     Nicola Vitale <nivit@FreeBSD.org>
AuthorDate: 2024-08-26 14:06:34 +0000
Commit:     Nicola Vitale <nivit@FreeBSD.org>
CommitDate: 2024-08-26 14:06:34 +0000

    devel/linux-rl9-libatomic: Add new port
    
    Libatomic is a GCC-specific fallback implementation for atomics to
    allow architectures that don't always provide a full set of atomics
    to runtime-detect the existence of them, or fall back to the use of
    mutexes. This is the Linux version.
    
    https://gcc.gnu.org/
---
 devel/Makefile                              |  1 +
 devel/linux-rl9-libatomic/Makefile          | 18 ++++++++++++++++++
 devel/linux-rl9-libatomic/distinfo          |  5 +++++
 devel/linux-rl9-libatomic/pkg-descr         |  4 ++++
 devel/linux-rl9-libatomic/pkg-plist.aarch64 |  3 +++
 devel/linux-rl9-libatomic/pkg-plist.amd64   |  3 +++
 6 files changed, 34 insertions(+)

diff --git a/devel/Makefile b/devel/Makefile
index 53e34e09a20a..8eae45a7ad9e 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -1533,6 +1533,7 @@
     SUBDIR += linux-rl9-elfutils-libelf
     SUBDIR += linux-rl9-elfutils-libs
     SUBDIR += linux-rl9-icu
+    SUBDIR += linux-rl9-libatomic
     SUBDIR += linux-rl9-libevent
     SUBDIR += linux-rl9-libgfortran
     SUBDIR += linux-rl9-libpciaccess
diff --git a/devel/linux-rl9-libatomic/Makefile b/devel/linux-rl9-libatomic/Makefile
new file mode 100644
index 000000000000..0e1b4a178cac
--- /dev/null
+++ b/devel/linux-rl9-libatomic/Makefile
@@ -0,0 +1,18 @@
+PORTNAME=	libatomic
+PORTVERSION=	11.4.1
+DISTVERSIONSUFFIX=	-3.el9
+CATEGORIES=	devel linux
+
+MAINTAINER=	nivit@FreeBSD.org
+COMMENT=	Atomic fallback implementation for GCC
+WWW=		https://gcc.gnu.org/
+
+LICENSE=	GPLv3
+
+USES=		linux:rl9
+USE_LDCONFIG=	yes
+USE_LINUX_RPM=	yes
+
+SRC_DISTFILES=	# not available
+
+.include <bsd.port.mk>
diff --git a/devel/linux-rl9-libatomic/distinfo b/devel/linux-rl9-libatomic/distinfo
new file mode 100644
index 000000000000..cabf821a5211
--- /dev/null
+++ b/devel/linux-rl9-libatomic/distinfo
@@ -0,0 +1,5 @@
+TIMESTAMP = 1724673755
+SHA256 (rocky/l/libatomic-11.4.1-3.el9.aarch64.rpm) = 106c434658881d6bab022d4395cedbc2ba44c1730bdfead3b5590fc6789a8cef
+SIZE (rocky/l/libatomic-11.4.1-3.el9.aarch64.rpm) = 35915
+SHA256 (rocky/l/libatomic-11.4.1-3.el9.x86_64.rpm) = 31916e42763c30174ed94369f72a2d4afe5cdad9fbc94cf4f764ec2940b3f46a
+SIZE (rocky/l/libatomic-11.4.1-3.el9.x86_64.rpm) = 33442
diff --git a/devel/linux-rl9-libatomic/pkg-descr b/devel/linux-rl9-libatomic/pkg-descr
new file mode 100644
index 000000000000..1d1888ba98aa
--- /dev/null
+++ b/devel/linux-rl9-libatomic/pkg-descr
@@ -0,0 +1,4 @@
+Libatomic is a GCC-specific fallback implementation for atomics to
+allow architectures that don't always provide a full set of atomics
+to runtime-detect the existence of them, or fall back to the use of
+mutexes. This is the Linux version.
diff --git a/devel/linux-rl9-libatomic/pkg-plist.aarch64 b/devel/linux-rl9-libatomic/pkg-plist.aarch64
new file mode 100644
index 000000000000..566dd83bc564
--- /dev/null
+++ b/devel/linux-rl9-libatomic/pkg-plist.aarch64
@@ -0,0 +1,3 @@
+usr/lib/.build-id/08/7bc3513e395e2da401565a5655888dc22ed3aa
+usr/lib64/libatomic.so.1
+usr/lib64/libatomic.so.1.2.0
diff --git a/devel/linux-rl9-libatomic/pkg-plist.amd64 b/devel/linux-rl9-libatomic/pkg-plist.amd64
new file mode 100644
index 000000000000..a2a138a77c7a
--- /dev/null
+++ b/devel/linux-rl9-libatomic/pkg-plist.amd64
@@ -0,0 +1,3 @@
+usr/lib/.build-id/51/f1fa43fdfe17b029254eb4aaa9e099749561ce
+usr/lib64/libatomic.so.1
+usr/lib64/libatomic.so.1.2.0