pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/lang/libBlocksRuntime Add libBlocksRuntime-6.0.0 from ...
details: https://anonhg.NetBSD.org/pkgsrc/rev/71af777c4e7c
branches: trunk
changeset: 381273:71af777c4e7c
user: joerg <joerg%pkgsrc.org@localhost>
date: Sat Jun 02 19:11:01 2018 +0000
description:
Add libBlocksRuntime-6.0.0 from compiler-rt, a relatively portable
implementation of Apple's Blocks extension.
diffstat:
lang/libBlocksRuntime/DESCR | 2 +
lang/libBlocksRuntime/Makefile | 37 ++++++++++
lang/libBlocksRuntime/PLIST | 3 +
lang/libBlocksRuntime/buildlink3.mk | 12 +++
lang/libBlocksRuntime/distinfo | 8 ++
lang/libBlocksRuntime/patches/patch-lib_BlocksRuntime_config.h | 7 +
lang/libBlocksRuntime/patches/patch-lib_BlocksRuntime_runtime.c | 17 ++++
7 files changed, 86 insertions(+), 0 deletions(-)
diffs (114 lines):
diff -r 436cad09c237 -r 71af777c4e7c lang/libBlocksRuntime/DESCR
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/libBlocksRuntime/DESCR Sat Jun 02 19:11:01 2018 +0000
@@ -0,0 +1,2 @@
+This library provides a target-independ implementation of the runtime
+interface for Apple's "Blocks" extension.
diff -r 436cad09c237 -r 71af777c4e7c lang/libBlocksRuntime/Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/libBlocksRuntime/Makefile Sat Jun 02 19:11:01 2018 +0000
@@ -0,0 +1,37 @@
+# $NetBSD: Makefile,v 1.1 2018/06/02 19:11:01 joerg Exp $
+
+VERS= 6.0.0
+DISTNAME= compiler-rt-${VERS}.src
+PKGNAME= libBlocksRuntime-${VERS}
+CATEGORIES= lang devel
+MASTER_SITES= https://releases.llvm.org/${VERS}/
+
+MAINTAINER= joerg%NetBSD.org@localhost
+HOMEPAGE= http://compiler-rt.llvm.org/
+COMMENT= Runtime support for Apple Blocks
+LICENSE= mit
+
+EXTRACT_SUFX= .tar.xz
+
+USE_LANGUAGES= c
+USE_LIBTOOL= yes
+
+INSTALLATION_DIRS+= include lib
+
+do-build:
+ cd ${WRKSRC}/lib/BlocksRuntime && ${SETENV} ${MAKE_ENV} \
+ ${LIBTOOL} --mode=compile ${COMPILE.c} data.c
+ cd ${WRKSRC}/lib/BlocksRuntime && ${SETENV} ${MAKE_ENV} \
+ ${LIBTOOL} --mode=compile ${COMPILE.c} runtime.c
+ cd ${WRKSRC}/lib/BlocksRuntime && ${SETENV} ${MAKE_ENV} \
+ ${LIBTOOL} --mode=link ${LINK.c} -o libBlocksRuntime.la \
+ data.lo runtime.lo -version-info 1:0:0 -rpath ${PREFIX}/lib
+
+do-install:
+ ${SETENV} ${MAKE_ENV} ${LIBTOOL} --mode=install ${INSTALL_LIB} \
+ ${WRKSRC}/lib/BlocksRuntime/libBlocksRuntime.la \
+ ${DESTDIR}${PREFIX}/lib/
+ ${INSTALL_DATA} ${WRKSRC}/lib/BlocksRuntime/Block.h \
+ ${DESTDIR}${PREFIX}/include/
+
+.include "../../mk/bsd.pkg.mk"
diff -r 436cad09c237 -r 71af777c4e7c lang/libBlocksRuntime/PLIST
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/libBlocksRuntime/PLIST Sat Jun 02 19:11:01 2018 +0000
@@ -0,0 +1,3 @@
+@comment $NetBSD: PLIST,v 1.1 2018/06/02 19:11:01 joerg Exp $
+include/Block.h
+lib/libBlocksRuntime.la
diff -r 436cad09c237 -r 71af777c4e7c lang/libBlocksRuntime/buildlink3.mk
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/libBlocksRuntime/buildlink3.mk Sat Jun 02 19:11:01 2018 +0000
@@ -0,0 +1,12 @@
+# $NetBSD: buildlink3.mk,v 1.1 2018/06/02 19:11:01 joerg Exp $
+
+BUILDLINK_TREE+= libBlocksRuntime
+
+.if !defined(LIBBLOCKSRUNTIME_BUILDLINK3_MK)
+LIBBLOCKSRUNTIME_BUILDLINK3_MK:=
+
+BUILDLINK_API_DEPENDS.libBlocksRuntime+= libBlocksRuntime>=6.0.0
+BUILDLINK_PKGSRCDIR.libBlocksRuntime?= ../../lang/libBlocksRuntime
+.endif # LIBBLOCKSRUNTIME_BUILDLINK3_MK
+
+BUILDLINK_TREE+= -libBlocksRuntime
diff -r 436cad09c237 -r 71af777c4e7c lang/libBlocksRuntime/distinfo
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/libBlocksRuntime/distinfo Sat Jun 02 19:11:01 2018 +0000
@@ -0,0 +1,8 @@
+$NetBSD: distinfo,v 1.1 2018/06/02 19:11:01 joerg Exp $
+
+SHA1 (compiler-rt-6.0.0.src.tar.xz) = 5725f19be611034e77196461cdb4989f4258cfa4
+RMD160 (compiler-rt-6.0.0.src.tar.xz) = 47a79826fc076f71546700f403a9b488e63d4a3f
+SHA512 (compiler-rt-6.0.0.src.tar.xz) = 717bed116ef43ebb2e18daf6fb737472edf57564947f53fe6368d3bbb080f63e986c0d1b94dbd087be998196ad7be54f4361854f8eb5214600b82449ba02c9c1
+Size (compiler-rt-6.0.0.src.tar.xz) = 1633096 bytes
+SHA1 (patch-lib_BlocksRuntime_config.h) = 8676862a391b671c955b009ee572530a8be9676e
+SHA1 (patch-lib_BlocksRuntime_runtime.c) = 4b3a78441d865df7f0c4249c4152025fef9539cb
diff -r 436cad09c237 -r 71af777c4e7c lang/libBlocksRuntime/patches/patch-lib_BlocksRuntime_config.h
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/libBlocksRuntime/patches/patch-lib_BlocksRuntime_config.h Sat Jun 02 19:11:01 2018 +0000
@@ -0,0 +1,7 @@
+$NetBSD: patch-lib_BlocksRuntime_config.h,v 1.1 2018/06/02 19:11:01 joerg Exp $
+
+--- lib/BlocksRuntime/config.h.orig 2018-05-07 16:23:52.356787945 +0000
++++ lib/BlocksRuntime/config.h
+@@ -0,0 +1,2 @@
++#define HAVE_SYNC_BOOL_COMPARE_AND_SWAP_INT
++#define HAVE_SYNC_BOOL_COMPARE_AND_SWAP_LONG
diff -r 436cad09c237 -r 71af777c4e7c lang/libBlocksRuntime/patches/patch-lib_BlocksRuntime_runtime.c
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/libBlocksRuntime/patches/patch-lib_BlocksRuntime_runtime.c Sat Jun 02 19:11:01 2018 +0000
@@ -0,0 +1,17 @@
+$NetBSD: patch-lib_BlocksRuntime_runtime.c,v 1.1 2018/06/02 19:11:01 joerg Exp $
+
+--- lib/BlocksRuntime/runtime.c.orig 2018-05-07 16:23:23.420191743 +0000
++++ lib/BlocksRuntime/runtime.c
+@@ -69,9 +69,9 @@ static __inline bool OSAtomicCompareAndS
+
+ #elif defined(HAVE_SYNC_BOOL_COMPARE_AND_SWAP_INT) && defined(HAVE_SYNC_BOOL_COMPARE_AND_SWAP_LONG)
+
+-static __inline bool OSAtomicCompareAndSwapLong(long oldl, long newl, long volatile *dst) {
+- return __sync_bool_compare_and_swap(dst, oldl, newl);
+-}
++/*static __inline bool OSAtomicCompareAndSwapLong(long oldl, long newl, long volatile *dst) {
++ * return __sync_bool_compare_and_swap(dst, oldl, newl);
++ }*/
+
+ static __inline bool OSAtomicCompareAndSwapInt(int oldi, int newi, int volatile *dst) {
+ return __sync_bool_compare_and_swap(dst, oldi, newi);
Home |
Main Index |
Thread Index |
Old Index