# SliTaz package receipt.

PACKAGE="gc"
VERSION="8.0.4"
CATEGORY="development"
SHORT_DESC="A garbage collector for C and C++."
MAINTAINER="pankso@slitaz.org"
TARBALL="$PACKAGE-$VERSION.tar.gz"
WEB_SITE="https://github.com/ivmai/bdwgc"
WGET_URL="http://www.hboehm.info/gc/gc_source/$TARBALL"

# Rules to configure and make the package.
compile_rules()
{
	cd $src
	./configure \
		--enable-cplusplus \
		$CONFIGURE_ARGS &&
	make &&
	make DESTDIR=$DESTDIR install &&
	# libatomic_ops
	cd $src/libatomic_ops-* &&
	./configure \
		--prefix=/usr \
		--disable-static \
		$CONFIGURE_ARGS &&
	make &&
	make DESTDIR=$DESTDIR install
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
	mkdir -p $fs/usr/lib $fs/usr/share
	cp -a $_pkg/usr/share/gc $fs/usr/share
	cp -a $_pkg/usr/lib/*.so* $fs/usr/lib
}