# Description: Garbage collection and memory leak detection for C and C++
# URL: http://www.hpl.hp.com/personal/Hans_Boehm/gc/
# Maintainer: Simon Gloßner, viper at hometux dot de
# Packager: Han Boetes, han at mijncomputer dot dl

name=boehm-gc
version=7.0
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
}
