### this file is sourced not run
PKGVER=7.4.2
PKGBUILD=1
PKGARCH=x86_64

# BLFS post 7.5 (2014-07-29)
TARBALL=gc-$PKGVER.tar.gz
MD5SUM=12c05fd2811d989341d8c6d81f66af87
SRC_URL=http://www.hboehm.info/gc/gc_source/$TARBALL
BUNDLE=

SLACKREQ='libatomic_ops'
SLACKDESC="libgc: libgc $PKGVER (Garbage Collector library)  
libgc:  
libgc: The GC package contains the Boehm-Demers-Weiser conservative garbage 
libgc: collector, which can be used as a garbage collecting replacement for 
libgc: the C malloc function or C++ new operator. It allows you to allocate 
libgc: memory basically as you normally would, without explicitly deallocating 
libgc: memory that is no longer useful. The collector automatically recycles 
libgc: memory when it determines that it can no longer be otherwise accessed.  
libgc: 
libgc: 
libgc: 
"

### default pkg_download
### default pkg_prepare
### default pkg_package
### build
pkg_build() {
	cd /tmp/gc*
	sed -i 's#pkgdata#doc#' doc/doc.am &&
	autoreconf -fi  &&
	
	CONFFLAGS="$CONFFLAGS --enable-cplusplus --disable-static 
	--docdir=/usr/share/doc/gc-$PKGVER"
	
	pkg_build_autoconf &&
	install -v -m644 doc/gc.man /usr/share/man/man3/gc_malloc.3 &&
	ln -sfv gc_malloc.3 /usr/share/man/man3/gc.3 &&
	pkg_build_slackdesc
}


