# $Id$ PNAME="fontconfig" PVER="2.13.0" PBUILD="r1" PCAT="media-libs" DESCRIPTION="fontconfig is a library for configuring and customizing font access." HOMEPAGE="http://fontconfig.org/" DEPEND=">= media-libs/freetype-2.6 >= dev-libs/expat-2" SDEPEND=">= virtual/sed >= dev-util/gperf-3.1" SRCFILE="${PNAME}-${PVER}.tar.gz" SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" sminclude multilib mtools SRC_URI=( http://fontconfig.org/release/${SRCFILE} mirror://${PNAME}/${SRCFILE} "mirror://${PNAME}/man-2.3.1/fc-cache.man man-2.3.1" "mirror://${PNAME}/man-2.3.1/fc-list.man man-2.3.1" ) UP2DATE="updatecmd http://fontconfig.org/release/ | grep ${PNAME}- | highesttarball gz" src_prepare() { munpack ${SRCFILE} || die # utterly ugly hack- FIXME!: fix gperf size detection on x86_64 #only-m64 "sed -i '/FcObjectType/s/FC_GPERF_SIZE_T/unsigned int/' src/fcobjs.c || die" } src_compile() { mconfigure \ --disable-docs \ --x-includes=/usr/include \ --x-libraries=/usr/$(mlibdir) \ --with-default-fonts=/usr/share/fonts \ --with-add-fonts=/usr/local/share/fonts \ || die # does not like optimations mmake -j1 || die # remove Luxi TTF fonts from the list, the Type1 are much better # all-abis 'sed -i "s: