diff --git a/devel/boehm-gc/Makefile b/devel/boehm-gc/Makefile index 20095e80f32..048a2e6275d 100644 --- a/devel/boehm-gc/Makefile +++ b/devel/boehm-gc/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.52 2013/10/11 23:48:23 naddy Exp $ +# $OpenBSD: Makefile,v 1.53 2014/02/09 06:01:54 shadchin Exp $ COMMENT-main= garbage collection and memory leak detection for C and C++ COMMENT-atomic= access to hardware provided atomic memory operations @@ -7,6 +7,7 @@ VERSION= 7.2d DISTNAME= gc-${VERSION} PKGNAME-atomic= libatomic_ops-${VERSION} PKGNAME-main= boehm-gc-${VERSION} +REVISION-main= 0 WRKDIST= ${WRKDIR}/gc-7.2 MULTI_PACKAGES= -main -atomic diff --git a/devel/boehm-gc/patches/patch-include_gc_config_macros_h b/devel/boehm-gc/patches/patch-include_gc_config_macros_h new file mode 100644 index 00000000000..eedafa84bae --- /dev/null +++ b/devel/boehm-gc/patches/patch-include_gc_config_macros_h @@ -0,0 +1,21 @@ +$OpenBSD: patch-include_gc_config_macros_h,v 1.3 2014/02/09 06:01:54 shadchin Exp $ +--- include/gc_config_macros.h.orig Sat Jan 18 23:56:01 2014 ++++ include/gc_config_macros.h Sat Jan 18 23:54:59 2014 +@@ -87,14 +87,14 @@ + # if defined(__mips) && !defined(__linux__) + # define GC_IRIX_THREADS + # endif +-# if defined(__sparc) && !defined(__linux__) \ ++# if defined(__OpenBSD__) ++# define GC_OPENBSD_THREADS ++# elif defined(__sparc) && !defined(__linux__) \ + || defined(sun) && (defined(i386) || defined(__i386__) \ + || defined(__amd64__)) + # define GC_SOLARIS_THREADS + # elif defined(__APPLE__) && defined(__MACH__) + # define GC_DARWIN_THREADS +-# elif defined(__OpenBSD__) +-# define GC_OPENBSD_THREADS + # elif !defined(GC_LINUX_THREADS) && !defined(GC_HPUX_THREADS) \ + && !defined(GC_OSF1_THREADS) && !defined(GC_IRIX_THREADS) + /* FIXME: Should we really need for FreeBSD and NetBSD to check */