# Search PREFIX (extra packages) and /usr (base). pkg-config is the
# name build systems look for.
configure() {
	./configure --prefix="$PREFIX" --disable-static \
		--with-pkg-config-dir="$PREFIX/lib/pkgconfig:$PREFIX/share/pkgconfig:/usr/lib/pkgconfig:/usr/share/pkgconfig" \
		--with-system-libdir=/usr/lib --with-system-includedir=/usr/include
}
compile() { make; }
package() {
	make install DESTDIR="$DESTDIR"
	ln -s pkgconf "$DESTDIR$PREFIX/bin/pkg-config"
}
