Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/devel/libatomic Import libatomic 10.1.0



details:   https://anonhg.NetBSD.org/pkgsrc/rev/f85f9a7829da
branches:  trunk
changeset: 433485:f85f9a7829da
user:      maya <maya%pkgsrc.org@localhost>
date:      Tue Jun 02 21:26:03 2020 +0000

description:
Import libatomic 10.1.0

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.

diffstat:

 devel/libatomic/DESCR         |   4 ++++
 devel/libatomic/Makefile      |  37 +++++++++++++++++++++++++++++++++++++
 devel/libatomic/PLIST         |   2 ++
 devel/libatomic/buildlink3.mk |  15 +++++++++++++++
 devel/libatomic/builtin.mk    |  15 +++++++++++++++
 devel/libatomic/distinfo      |   6 ++++++
 6 files changed, 79 insertions(+), 0 deletions(-)

diffs (103 lines):

diff -r 1778dbd0084c -r f85f9a7829da devel/libatomic/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/libatomic/DESCR     Tue Jun 02 21:26:03 2020 +0000
@@ -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.
diff -r 1778dbd0084c -r f85f9a7829da devel/libatomic/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/libatomic/Makefile  Tue Jun 02 21:26:03 2020 +0000
@@ -0,0 +1,37 @@
+# $NetBSD: Makefile,v 1.1 2020/06/02 21:26:03 maya Exp $
+
+DISTNAME=      gcc-10.1.0
+PKGNAME=       libatomic-10.1.0
+CATEGORIES=    devel
+MASTER_SITES=  ${MASTER_SITE_GNU:=gcc/gcc-10.1.0/}
+EXTRACT_SUFX=  .tar.xz
+
+MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=      https://gcc.gnu.org/
+COMMENT=       Atomic fallback implementation for GCC
+LICENSE=       gnu-gpl-v3
+
+USE_LANGUAGES=         c99 c++
+USE_TOOLS+=            gmake
+
+GNU_CONFIGURE=         yes
+USE_LIBTOOL=           yes
+GNU_CONFIGURE_STRICT=  no
+## Build outside ${WRKSRC}
+OBJDIR=                        ../build
+CONFIGURE_DIRS=                ${OBJDIR}
+CONFIGURE_SCRIPT=      ../${DISTNAME}/libatomic/configure
+
+CHECK_PORTABILITY_SKIP+=       contrib/*
+
+.include "../../mk/bsd.prefs.mk"
+
+.if empty(PKGSRC_COMPILER:Mgcc*)
+PKG_SKIP_REASON+=      "Uses esoteric GCC-specific features"
+.endif
+
+pre-configure:
+       ${RUN} cd ${WRKSRC} && ${MKDIR} ${OBJDIR}
+
+.include "../../mk/pthread.buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff -r 1778dbd0084c -r f85f9a7829da devel/libatomic/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/libatomic/PLIST     Tue Jun 02 21:26:03 2020 +0000
@@ -0,0 +1,2 @@
+@comment $NetBSD: PLIST,v 1.1 2020/06/02 21:26:03 maya Exp $
+lib/libatomic.la
diff -r 1778dbd0084c -r f85f9a7829da devel/libatomic/buildlink3.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/libatomic/buildlink3.mk     Tue Jun 02 21:26:03 2020 +0000
@@ -0,0 +1,15 @@
+# $NetBSD: buildlink3.mk,v 1.1 2020/06/02 21:26:03 maya Exp $
+
+BUILDLINK_TREE+=       libatomic
+
+.if !defined(LIBATOMIC_BUILDLINK3_MK)
+LIBATOMIC_BUILDLINK3_MK:=
+
+BUILDLINK_API_DEPENDS.libatomic+=      libatomic>=10.0
+BUILDLINK_ABI_DEPENDS.libatomic+=      libatomic>=10.0
+BUILDLINK_PKGSRCDIR.libatomic?=                ../../wip/libatomic
+
+.include "../../mk/pthread.buildlink3.mk"
+.endif
+
+BUILDLINK_TREE+=       -libatomic
diff -r 1778dbd0084c -r f85f9a7829da devel/libatomic/builtin.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/libatomic/builtin.mk        Tue Jun 02 21:26:03 2020 +0000
@@ -0,0 +1,15 @@
+# $NetBSD: builtin.mk,v 1.1 2020/06/02 21:26:03 maya Exp $
+
+BUILTIN_PKG:=          libatomic
+
+BUILTIN_FIND_LIBS:=    atomic
+
+.include "../../mk/buildlink3/bsd.builtin.mk"
+
+# Use builtin libatomic if the compiler isn't GCC
+# This package is broken with non-GCC compilers.
+.if !empty(BUILTIN_LIB_FOUND.atomic:M[yY][eE][sS]) && \
+    empty(PKGSRC_COMPILER:Mgcc*)
+BUILTIN_LIBNAME.libatomic=     atomic
+USE_BUILTIN.libatomic=         yes
+.endif
diff -r 1778dbd0084c -r f85f9a7829da devel/libatomic/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/libatomic/distinfo  Tue Jun 02 21:26:03 2020 +0000
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1 2020/06/02 21:26:03 maya Exp $
+
+SHA1 (gcc-10.1.0.tar.xz) = 1af8d963e4a74d05a8f2d0f795ea52d2b91f6c50
+RMD160 (gcc-10.1.0.tar.xz) = eb9c7a9c10fbe5b4ff84818b280248ab97d17769
+SHA512 (gcc-10.1.0.tar.xz) = 0cb2a74c793face751f42bc580960b00e2bfea785872a0a2155f1f1dbfaa248f9591b67f4322db0f096f8844aca9243bc02732bda106c3b6e43b02bb67eb3096
+Size (gcc-10.1.0.tar.xz) = 74591240 bytes



Home | Main Index | Thread Index | Old Index