pkgsrc-Changes archive

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

CVS commit: pkgsrc/devel/libatomic



Module Name:    pkgsrc
Committed By:   maya
Date:           Tue Jun  2 21:26:03 UTC 2020

Added Files:
        pkgsrc/devel/libatomic: DESCR Makefile PLIST buildlink3.mk builtin.mk
            distinfo

Log Message:
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.


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 pkgsrc/devel/libatomic/DESCR \
    pkgsrc/devel/libatomic/Makefile pkgsrc/devel/libatomic/PLIST \
    pkgsrc/devel/libatomic/buildlink3.mk pkgsrc/devel/libatomic/builtin.mk \
    pkgsrc/devel/libatomic/distinfo

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Added files:

Index: pkgsrc/devel/libatomic/DESCR
diff -u /dev/null pkgsrc/devel/libatomic/DESCR:1.1
--- /dev/null   Tue Jun  2 21:26:04 2020
+++ pkgsrc/devel/libatomic/DESCR        Tue Jun  2 21:26:03 2020
@@ -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.
Index: pkgsrc/devel/libatomic/Makefile
diff -u /dev/null pkgsrc/devel/libatomic/Makefile:1.1
--- /dev/null   Tue Jun  2 21:26:04 2020
+++ pkgsrc/devel/libatomic/Makefile     Tue Jun  2 21:26:03 2020
@@ -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"
Index: pkgsrc/devel/libatomic/PLIST
diff -u /dev/null pkgsrc/devel/libatomic/PLIST:1.1
--- /dev/null   Tue Jun  2 21:26:04 2020
+++ pkgsrc/devel/libatomic/PLIST        Tue Jun  2 21:26:03 2020
@@ -0,0 +1,2 @@
+@comment $NetBSD: PLIST,v 1.1 2020/06/02 21:26:03 maya Exp $
+lib/libatomic.la
Index: pkgsrc/devel/libatomic/buildlink3.mk
diff -u /dev/null pkgsrc/devel/libatomic/buildlink3.mk:1.1
--- /dev/null   Tue Jun  2 21:26:04 2020
+++ pkgsrc/devel/libatomic/buildlink3.mk        Tue Jun  2 21:26:03 2020
@@ -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
Index: pkgsrc/devel/libatomic/builtin.mk
diff -u /dev/null pkgsrc/devel/libatomic/builtin.mk:1.1
--- /dev/null   Tue Jun  2 21:26:04 2020
+++ pkgsrc/devel/libatomic/builtin.mk   Tue Jun  2 21:26:03 2020
@@ -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
Index: pkgsrc/devel/libatomic/distinfo
diff -u /dev/null pkgsrc/devel/libatomic/distinfo:1.1
--- /dev/null   Tue Jun  2 21:26:04 2020
+++ pkgsrc/devel/libatomic/distinfo     Tue Jun  2 21:26:03 2020
@@ -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