[build] type = "autotools" [build.flags] configure = [ "--enable-cplusplus", "--disable-static", ] post_install = ["""sed 's|GC_MALLOC 1L|gc 3|g' doc/gc.man | install -Dm644 /dev/stdin "$DESTDIR/usr/share/man/man3/gc.3""""] [dependencies] runtime = ["libcxx"] [package] description = "A garbage collector for C and C++" homepage = "https://www.hboehm.info/gc/" license = [ "LicenseRef-GC", "MIT", ] name = "gc" version = "8.2.12" [[source]] extract_dir = "$name-$version" post_extract = ["cp -rv ../license.txt .", "./autogen.sh"] url = "https://github.com/ivmai/bdwgc.git#v$version" [[manual_sources]] url = "https://www.hboehm.info/gc/license.txt"