DESCRIPTION = "A Type1 Font Rastering Library"
SECTION = "libs"
PRIORITY = "optional"
MAINTAINER = "Michael 'Mickey' Lauer <mickey@Vanille.de>"

SRC_URI = "http://www.netsw.org/graphic/font/t1lib-${PV}.tar.gz \
           file://configure.patch;patch=1 \
           file://install.patch;patch=1"

inherit autotools 

EXTRA_OECONF = "--without-x --without-athena"
EXTRA_OEMAKE = "without_doc"

do_configure() {
	gnu-configize
	oe_runconf
}

do_stage() {
	oe_libinstall -so -C lib libt1 ${STAGING_LIBDIR}
	install lib/t1lib/t1lib.h ${STAGING_INCDIR}/
	install lib/t1lib/t1libx.h ${STAGING_INCDIR}/
}