Package-Name: pkg-config
Rebuild-For: automake
Homepage: http://pkgconfig.freedesktop.org/
#Source: http://www.freedesktop.org/software/pkgconfig/index.html/(releases\x2Fpkgconfig-\d+\.\d+\.\d+\.tar\.gz)/[\0-\377]*?pkgconfig-(\d+.\d+.\d+).tar.gz $1
Source: http://www.freedesktop.org/software/pkgconfig/releases//(pkgconfig-\d+\.\d+\.\d+\.tar\.gz)/[\0-\377]*?pkgconfig-(\d+.\d+.\d+).tar.gz $1
Repack:
	tar xzvfp "$(SOURCE)"
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
