[Midnightbsd-cvs] mports [19348] trunk/devel: add boeh-gc-threaded
laffer1 at midnightbsd.org
laffer1 at midnightbsd.org
Sat Jun 6 12:35:37 EDT 2015
Revision: 19348
http://svnweb.midnightbsd.org/mports/?rev=19348
Author: laffer1
Date: 2015-06-06 12:35:37 -0400 (Sat, 06 Jun 2015)
Log Message:
-----------
add boeh-gc-threaded
Modified Paths:
--------------
trunk/devel/Makefile
trunk/devel/boehm-gc/Makefile
trunk/devel/boehm-gc/pkg-plist
Added Paths:
-----------
trunk/devel/boehm-gc/files/patch-include_private_gcconfig.h
trunk/devel/boehm-gc-threaded/
trunk/devel/boehm-gc-threaded/Makefile
trunk/devel/boehm-gc-threaded/pkg-descr
Modified: trunk/devel/Makefile
===================================================================
--- trunk/devel/Makefile 2015-06-06 16:32:40 UTC (rev 19347)
+++ trunk/devel/Makefile 2015-06-06 16:35:37 UTC (rev 19348)
@@ -26,6 +26,7 @@
SUBDIR += bison
SUBDIR += bisongen
SUBDIR += boehm-gc
+SUBDIR += boehm-gc-threaded
SUBDIR += boost-all
SUBDIR += boost-docs
SUBDIR += boost-jam
Modified: trunk/devel/boehm-gc/Makefile
===================================================================
--- trunk/devel/boehm-gc/Makefile 2015-06-06 16:32:40 UTC (rev 19347)
+++ trunk/devel/boehm-gc/Makefile 2015-06-06 16:35:37 UTC (rev 19348)
@@ -2,7 +2,7 @@
PORTNAME= gc
PORTVERSION= 7.4.2
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= devel
MASTER_SITES= http://www.hboehm.info/gc/gc_source/
PKGNAMEPREFIX= boehm-
@@ -21,7 +21,9 @@
BUILD_DEPENDS= ${LOCALBASE}/lib/libatomic_ops.a:${PORTSDIR}/devel/libatomic_ops
GNU_CONFIGURE= yes
-USES= libtool pathfix pkgconfig
+USES= cpe libtool pathfix pkgconfig
+CPE_VENDOR= boehm-demers-weiser
+CPE_PRODUCT= garbage_collector
USE_LDCONFIG= yes
INSTALL_TARGET= install-strip
CONFIGURE_ARGS= --enable-cplusplus --disable-static
@@ -54,6 +56,9 @@
.endif
+# no rule to get .lo from .S in subdirectory
+pre-build:
+ ${LN} -sf ${WRKSRC}/src/sparc_mach_dep.S ${WRKSRC}
.include <bsd.mport.options.mk>
Added: trunk/devel/boehm-gc/files/patch-include_private_gcconfig.h
===================================================================
--- trunk/devel/boehm-gc/files/patch-include_private_gcconfig.h (rev 0)
+++ trunk/devel/boehm-gc/files/patch-include_private_gcconfig.h 2015-06-06 16:35:37 UTC (rev 19348)
@@ -0,0 +1,38 @@
+--- ./include/private/gcconfig.h.orig
++++ ./include/private/gcconfig.h
+@@ -169,7 +169,7 @@
+ # define EWS4800
+ # endif
+ # if !defined(LINUX) && !defined(EWS4800) && !defined(NETBSD) \
+- && !defined(OPENBSD)
++ && !defined(OPENBSD) && !defined(FREEBSD)
+ # if defined(ultrix) || defined(__ultrix)
+ # define ULTRIX
+ # else
+@@ -1647,6 +1647,26 @@
+ # define DATAEND ((ptr_t)(&_end))
+ # define DYNAMIC_LOADING
+ # endif
++# ifdef FREEBSD
++# define OS_TYPE "FREEBSD"
++# define ALIGNMENT 4
++# define SIG_SUSPEND SIGUSR1
++# define SIG_THR_RESTART SIGUSR2
++# define FREEBSD_STACKBOTTOM
++# ifdef __ELF__
++# define DYNAMIC_LOADING
++# endif
++ extern char etext[];
++ extern char edata[];
++ extern char end[];
++# define NEED_FIND_LIMIT
++# define DATASTART ((ptr_t)(&etext))
++ ptr_t GC_find_limit(ptr_t, GC_bool);
++# define DATAEND (GC_find_limit (DATASTART, TRUE))
++# define DATAEND_IS_FUNC
++# define DATASTART2 ((ptr_t)(&edata))
++# define DATAEND2 ((ptr_t)(&end))
++# endif
+ # if defined(NONSTOP)
+ # define CPP_WORDSZ 32
+ # define OS_TYPE "NONSTOP"
Property changes on: trunk/devel/boehm-gc/files/patch-include_private_gcconfig.h
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Modified: trunk/devel/boehm-gc/pkg-plist
===================================================================
--- trunk/devel/boehm-gc/pkg-plist 2015-06-06 16:32:40 UTC (rev 19347)
+++ trunk/devel/boehm-gc/pkg-plist 2015-06-06 16:35:37 UTC (rev 19348)
@@ -19,10 +19,12 @@
include/gc_cpp.h
lib/libcord.so
lib/libcord.so.1
+lib/libcord.so.1.0.3
lib/libgc.so
lib/libgc.so.1
+lib/libgc.so.1.0.3
lib/libgccpp.so
lib/libgccpp.so.1
+lib/libgccpp.so.1.0.3
libdata/pkgconfig/bdw-gc.pc
man/man3/gc.3.gz
- at dirrm include/gc
Added: trunk/devel/boehm-gc-threaded/Makefile
===================================================================
--- trunk/devel/boehm-gc-threaded/Makefile (rev 0)
+++ trunk/devel/boehm-gc-threaded/Makefile 2015-06-06 16:35:37 UTC (rev 19348)
@@ -0,0 +1,14 @@
+# $MidnightBSD$
+
+PORTREVISION= 1
+
+COMMENT= Garbage collection and memory leak detection for C and C++ with threading support
+
+LICENSE= mit
+
+MASTERDIR= ${.CURDIR}/../boehm-gc
+DESCR= ${.CURDIR}/pkg-descr
+
+GC_VARIANT= threaded
+
+.include "${MASTERDIR}/Makefile"
Property changes on: trunk/devel/boehm-gc-threaded/Makefile
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/devel/boehm-gc-threaded/pkg-descr
===================================================================
--- trunk/devel/boehm-gc-threaded/pkg-descr (rev 0)
+++ trunk/devel/boehm-gc-threaded/pkg-descr 2015-06-06 16:35:37 UTC (rev 19348)
@@ -0,0 +1,19 @@
+The Boehm-Weiser garbage collection package, for C and C++ -
+garbage collection and memory leak detection libraries.
+
+A garbage collector is something which automatically frees malloc'd
+memory for you by working out what parts of memory your program
+no longer has pointers to. As a result, garbage collectors can also
+inform you of memory leaks (if they find memory they can free, it means
+you have lost all of your pointers to it, but you didn't free it).
+
+C programs may be linked against either of these, and should run (with
+GC or leak detection) without change. C++ programs must include a header
+to use garbage collection, though leak detection should work without
+such source code modifications. See the man page and header files.
+
+This package only brings Boehm-GC libraries with threading support.
+
+ps: garbage collection is addictive.
+
+WWW: http://www.hboehm.info/gc/
Property changes on: trunk/devel/boehm-gc-threaded/pkg-descr
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
More information about the Midnightbsd-cvs
mailing list