# SliTaz package receipt.

PACKAGE="pkg-config"
VERSION="0.29.2"
CATEGORY="development"
SHORT_DESC="Free desktop packages manager."
MAINTAINER="pankso@slitaz.org"
TARBALL="$PACKAGE-$VERSION.tar.gz"
WEB_SITE="http://pkgconfig.freedesktop.org/wiki/"
WGET_URL="http://pkgconfig.freedesktop.org/releases/$TARBALL"

DEPENDS="glibc-base"
BUILD_DEPENDS="gcc libtool libgio-dev pcre glib-dev"

# Rules to configure and make the package.
compile_rules()
{
	cd $src
	#  --with-internal-glib
	./configure \
		--program-prefix=$TOOLPREFIX \
		$CONFIGURE_ARGS --disable-host-tool &&
	make && make install
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
	mkdir -p $fs/usr/share
	cp -a $_pkg/usr/bin $fs/usr
	cp -a $_pkg/usr/share/aclocal $fs/usr/share
	# This is the default pkg-config so make a symling for package that dont
	# cross compile or search for /usr/bin/pkg-config.
	cd $fs/usr/bin && ln -sf ${TOOLPREFIX}pkg-config pkg-config
}