# Description: Garbage collection and memory leak detection for C and C++
# URL:         http://www.hboehm.info/
# Packager:    berlius at nutyx dot com
# Depends on:  

name=boehm-gc
version=7.4.4
release=1
source=(http://www.hboehm.info/gc/gc_source/gc-${version}.tar.gz
        https://github.com/ivmai/libatomic_ops/archive/libatomic_ops-${version//\./_}.tar.gz)

build () {

    cd gc-$version
    
    ln -s $SRC/libatomic_ops-libatomic_ops-${version//\./_} libatomic_ops

    ./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

}


