# Description: Garbage collection and memory leak detection for C and C++
# URL: http://www.hpl.hp.com/personal/Hans_Boehm/gc/
# Maintainer: Jukka Heino, jukka dot heino at gmail dot com
# Packager: Han Boetes, han at mijncomputer dot dl
# Depends on:

name=boehm-gc
version=6.7
release=1
source=(http://www.hpl.hp.com/personal/Hans_Boehm/gc/gc_source/gc${version}.tar.gz)

build () {
    cd gc$version
    ./configure \
        --prefix=/usr \
        --enable-threads=pthreads \
        --enable-static \
        --enable-shared
    make
    make DESTDIR=$PKG install
    install -D -m 644 doc/gc.man $PKG/usr/man/man3/gc.3
    rm -rf $PKG/usr/share
}
