# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4 # $Id$ PortSystem 1.0 PortGroup github 1.0 PortGroup muniversal 1.0 github.setup ivmai bdwgc 7_4_2 gc version [string map {_ .} ${github.version}] checksums rmd160 bcc598cc89708249bb560ba42c7cc8684a78da6f \ sha256 9a83e51a82c0215dc758dd864057ce1e82e17d1e8f9c7c69a21c7218c96f9ab5 name boehmgc conflicts boehmgc-devel categories devel platforms darwin maintainers nomaintainer license Permissive # boehmgc only uses the MIT and Permissive parts of libatomic_ops, don't # conflict on the GPL part license_noconflict libatomic_ops description The Boehm-Demers-Weiser conservative C/C++ Garbage Collector long_description \ The Boehm-Demers-Weiser conservative garbage collector can be used as \ a garbage collecting replacement for C malloc or C++ new. It is also used \ by a number of programming language implementations that use C as \ intermediate code. # needed since we use the github version; also has the benefit of teaching # glibtool about -stdlib=libc++. use_autoreconf yes # autoreconf needs pkgconfig depends_build-append \ port:pkgconfig \ port:libatomic_ops configure.args --with-threads=posix \ --enable-cplusplus configure.cppflags-append \ -D_XOPEN_SOURCE=600 -D_DARWIN_C_SOURCE variant redirect description {Redirect malloc and friends to GC routines} { configure.args-append \ --enable-redirect-malloc } platform darwin 8 { # Not needed to "force" ucontext.h on Tiger, and it actually forces POSIX # sys/mman.h which breaks the build there because Tiger's sys/mman.h # doesn't recognize _DARWIN_C_SOURCE configure.cppflags-delete \ -D_XOPEN_SOURCE=600 } test.run yes test.target check