Package-Name: pkgconfig
Gentoo-Package: dev-util/pkgconfig
Rebuild-For: automake
Homepage: http://www.freedesktop.org/software/pkgconfig/
Source: http://pkgconfig.freedesktop.org/releases//(pkg-?config-\d+(\.\d+)+\.tar\.gz)/[\0-\377]*?pkg-?config-(\d+(.\d+)+).tar.gz $1
Repack:
	tar xzvfp "$(SOURCE)"
	test -d pkgconfig-"$(VERSION)" || mv pkg* pkgconfig-"$(VERSION)"
Compile:
	cp -p AUTHORS COPYING ChangeLog NEWS README "$(PREFIX)/"
# Note that --enable-indirect-deps seems to be needed; e.g. the GTK
# hello-world example does not compile otherwise
	$(MAKE) -f ../Makefile configure CONFIGURE_OPTS="--enable-static --enable-indirect-deps"
	$(MAKE)
	$(MAKE) install libdir="$(PREFIX)/lib"
Install:
	$(MAKE) instbin BIN=pkg-config
	$(MAKE) instman SECTION=1 MAN=pkg-config
	rm -rf /usr/lib/pkgconfig
	ln -s "$(PREFIX)"/lib/pkgconfig /usr/lib/
	$(MAKE) instaclocal M4=pkg

/pkg/pkgconfig/
/usr/bin/pkg-config
/usr/lib/pkgconfig
/usr/man/man1/pkg-config.1.gz
/usr/share/aclocal/pkg.m4
