pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/lang/libBlocksRuntime
Module Name: pkgsrc
Committed By: joerg
Date: Sat Jun 2 19:11:01 UTC 2018
Added Files:
pkgsrc/lang/libBlocksRuntime: DESCR Makefile PLIST buildlink3.mk
distinfo
pkgsrc/lang/libBlocksRuntime/patches: patch-lib_BlocksRuntime_config.h
patch-lib_BlocksRuntime_runtime.c
Log Message:
Add libBlocksRuntime-6.0.0 from compiler-rt, a relatively portable
implementation of Apple's Blocks extension.
To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 pkgsrc/lang/libBlocksRuntime/DESCR \
pkgsrc/lang/libBlocksRuntime/Makefile pkgsrc/lang/libBlocksRuntime/PLIST \
pkgsrc/lang/libBlocksRuntime/buildlink3.mk \
pkgsrc/lang/libBlocksRuntime/distinfo
cvs rdiff -u -r0 -r1.1 \
pkgsrc/lang/libBlocksRuntime/patches/patch-lib_BlocksRuntime_config.h \
pkgsrc/lang/libBlocksRuntime/patches/patch-lib_BlocksRuntime_runtime.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Added files:
Index: pkgsrc/lang/libBlocksRuntime/DESCR
diff -u /dev/null pkgsrc/lang/libBlocksRuntime/DESCR:1.1
--- /dev/null Sat Jun 2 19:11:01 2018
+++ pkgsrc/lang/libBlocksRuntime/DESCR Sat Jun 2 19:11:01 2018
@@ -0,0 +1,2 @@
+This library provides a target-independ implementation of the runtime
+interface for Apple's "Blocks" extension.
Index: pkgsrc/lang/libBlocksRuntime/Makefile
diff -u /dev/null pkgsrc/lang/libBlocksRuntime/Makefile:1.1
--- /dev/null Sat Jun 2 19:11:01 2018
+++ pkgsrc/lang/libBlocksRuntime/Makefile Sat Jun 2 19:11:01 2018
@@ -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"
Index: pkgsrc/lang/libBlocksRuntime/PLIST
diff -u /dev/null pkgsrc/lang/libBlocksRuntime/PLIST:1.1
--- /dev/null Sat Jun 2 19:11:01 2018
+++ pkgsrc/lang/libBlocksRuntime/PLIST Sat Jun 2 19:11:01 2018
@@ -0,0 +1,3 @@
+@comment $NetBSD: PLIST,v 1.1 2018/06/02 19:11:01 joerg Exp $
+include/Block.h
+lib/libBlocksRuntime.la
Index: pkgsrc/lang/libBlocksRuntime/buildlink3.mk
diff -u /dev/null pkgsrc/lang/libBlocksRuntime/buildlink3.mk:1.1
--- /dev/null Sat Jun 2 19:11:01 2018
+++ pkgsrc/lang/libBlocksRuntime/buildlink3.mk Sat Jun 2 19:11:01 2018
@@ -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
Index: pkgsrc/lang/libBlocksRuntime/distinfo
diff -u /dev/null pkgsrc/lang/libBlocksRuntime/distinfo:1.1
--- /dev/null Sat Jun 2 19:11:01 2018
+++ pkgsrc/lang/libBlocksRuntime/distinfo Sat Jun 2 19:11:01 2018
@@ -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
Index: pkgsrc/lang/libBlocksRuntime/patches/patch-lib_BlocksRuntime_config.h
diff -u /dev/null pkgsrc/lang/libBlocksRuntime/patches/patch-lib_BlocksRuntime_config.h:1.1
--- /dev/null Sat Jun 2 19:11:01 2018
+++ pkgsrc/lang/libBlocksRuntime/patches/patch-lib_BlocksRuntime_config.h Sat Jun 2 19:11:01 2018
@@ -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
Index: pkgsrc/lang/libBlocksRuntime/patches/patch-lib_BlocksRuntime_runtime.c
diff -u /dev/null pkgsrc/lang/libBlocksRuntime/patches/patch-lib_BlocksRuntime_runtime.c:1.1
--- /dev/null Sat Jun 2 19:11:01 2018
+++ pkgsrc/lang/libBlocksRuntime/patches/patch-lib_BlocksRuntime_runtime.c Sat Jun 2 19:11:01 2018
@@ -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