1 # Buildsheet autogenerated by ravenadm tool -- Do not edit.
3 NAMEBASE= boehm_garbage_collector
6 VARIANTS= standard threaded redirect
7 SDESC[threaded]= Garbage collection with posix thread support
8 SDESC[redirect]= Garbage collection with redirected malloc
9 SDESC[standard]= Garbage collection and memory leak detection
10 HOMEPAGE= https://github.com/ivmai/bdwgc/
13 DOWNLOAD_GROUPS= main old
14 SITES[main]= https://github.com/ivmai/bdwgc/releases/download/v8.2.4/
15 SITES[old]= http://www.hboehm.info/gc/gc_source/
16 DISTFILE[1]= gc-8.2.4.tar.gz:main
18 SPKGS[threaded]= complete
22 SPKGS[redirect]= complete
26 SPKGS[standard]= complete
31 OPTIONS_AVAILABLE= THREADED REDIRECT
32 OPTIONS_STANDARD= none
33 VOPTS[threaded]= THREADED=ON REDIRECT=OFF
34 VOPTS[redirect]= THREADED=OFF REDIRECT=ON
36 BUILD_DEPENDS= libatomic_ops:dev:standard
37 BUILDRUN_DEPENDS= libatomic_ops:primary:standard
39 USES= cpe cmake pkgconfig c++:primary
44 LICENSE_FILE= MIT:{{WRKSRC}}/LICENSE
47 CPE_PRODUCT= garbage_collector
48 CPE_VENDOR= boehm-demers-weiser
49 FPC_EQUIVALENT= devel/boehm-gc
51 INSTALL_REQ_TOOLCHAIN= yes
53 PLIST_SUB= GCVERSION=1.5.2
60 CMAKE_ARGS= -Denable_docs:BOOL=OFF
61 -Denable_cplusplus:BOOL=ON
63 [THREADED].DESCRIPTION= Enable posix thread support
64 [THREADED].CMAKE_ARGS_OFF= -Denable_threads:BOOL=OFF
65 [THREADED].CMAKE_ARGS_ON= -Denable_threads:BOOL=ON
66 -Denable_parallel_mark:BOOL=ON
68 [REDIRECT].DESCRIPTION= Enable malloc redirection support
69 [REDIRECT].CMAKE_ARGS_OFF= -Denable_redirect_malloc:BOOL=OFF
70 [REDIRECT].CMAKE_ARGS_ON= -Denable_redirect_malloc:BOOL=ON
73 ${REINPLACE_CMD} -e "s|%%PREFIX%%|${PREFIX}|g" ${WRKSRC}/doc/gc.man
76 ${INSTALL_MAN} ${WRKSRC}/doc/gc.man ${STAGEDIR}${MANPREFIX}/man/man3/gc.3
77 ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/lib*.so
80 cd ${WRKSRC} && awk 'x==1 {print} /Copyright &/ {x=1}' README.md > LICENSE
82 [FILE:741:descriptions/desc.primary]
83 The Boehm-Weiser garbage collection package, for C and C++ -
84 garbage collection and memory leak detection libraries.
86 A garbage collector is something which automatically frees malloc'd
87 memory for you by working out what parts of memory your program
88 no longer has pointers to. As a result, garbage collectors can also
89 inform you of memory leaks (if they find memory they can free, it means
90 you have lost all of your pointers to it, but you didn't free it).
92 C programs may be linked against either of these, and should run (with
93 GC or leak detection) without change. C++ programs must include a header
94 to use garbage collection, though leak detection should work without
95 such source code modifications. See the man page and header files.
99 3d0d3cdbe077403d3106bb40f0cbb563413d6efdbb2a7e1cd6886595dec48fc2 1210929 gc-8.2.4.tar.gz
102 [FILE:209:manifests/plist.primary]
104 libcord.so.%%SOMAJOR%%
105 libcord.so.%%SOVERSION%%
107 libgc.so.%%GCVERSION%%
108 libgccpp.so.%%CPPMAJOR%%
109 libgccpp.so.%%CPPVERSION%%
110 libgctba.so.%%TBAMAJOR%%
111 libgctba.so.%%TBAVERSION%%
114 [FILE:482:manifests/plist.dev]
115 %%THREADED-ON%%include/gc/gc_pthread_redirects.h
144 BDWgcConfigVersion.cmake
145 BDWgcTargets-release.cmake
147 lib/pkgconfig/bdw-gc.pc
150 [FILE:23:manifests/plist.man]
151 share/man/man3/gc.3.gz
154 [FILE:478:patches/patch-configure]
155 --- configure.orig 2023-05-26 18:57:16 UTC
157 @@ -17926,7 +17926,7 @@ case "$host" in
159 # We never want libdl on darwin. It is a fake libdl that just ends up making
160 # dyld calls anyway. The same applies to Cygwin.
161 - *-*-cygwin* | *-*-darwin* | *-*-msys*)
162 + *-*-cygwin* | *-*-darwin* | *-*-msys* | *-*-netbsd* | *-*-dragonfly* | *-*-freebsd* )
165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5