APP=libgc
VERSION=8.0.4
BUILD=1sml
HOMEPAGE='https://www.hboehm.info/gc/'
DOWNLOAD='https://www.hboehm.info/gc/gc_source/gc-8.0.4.tar.gz'
DESC="Conservative garbage collector for C and C++"
REQUIRES="gcc-libs"

build() {
  mkandenterbuilddir
  rm -rf gc-$VERSION

  tar xf $SRCDIR/gc-$VERSION.tar.?z*
  cd gc-$VERSION
  fixbuilddirpermissions

  ./configure \
    --prefix="" \
    --sysconfdir=/etc \
    --enable-cplusplus \
    --enable-threads=pthreads \
    --disable-static \
    $BUILDDIST

  make
  make install DESTDIR=$PKG

  mkfinalpkg
}

SHA512SUMS="
2a241a485ea689a1cae45aba29b21c8ac80956c8baec7b78a218d5ab59bdaa77f2c71f2f29d05e68e553d3160323da09e064d89045d56e03c0c7e9b5c12cd091  gc-8.0.4.tar.lz
49645d28a06323675890de938182733c08b7cfeb0188a05e363e5bbd8b831e23b86f906510b515a9324ff0973472ca720e895870e6ea2c1dcbb461d5515fc823  libgc-configure.patch
2c0b627582467cfd3f59aa06d995b399262a8c20304263b2e4953de26960675ed8508cd637e8a7c0ab71ba824ebc8f1434a2a9f5aea9faac9c47526598c713d7  libgc-os_dep.patch
"
