# $Id$ PNAME="cairo" PVER="1.10.2" PBUILD="r3" PCATEGORIE="x11-libs" DESCRIPTION="Cairo is a 2D graphics library with support for multiple output devices." HOMEPAGE="http://cairographics.org/" DEPEND=">= x11-libs/libXrender-0.9 >= x11-libs/libX11-1.4 >= x11-libs/libXft-2.2 >= media-libs/fontconfig-2.8 >= media-libs/freetype-2.4 >= sys-libs/zlib-1.2 >= media-libs/libpng-1.5 >= x11-libs/libxcb-1.7 >= x11-libs/xcb-util-0.3 >= x11-libs/pixman-0.22" SDEPEND=">= dev-util/pkgconfig-0.25 >= x11-proto/renderproto-0.11 >= x11-proto/xcb-proto-1.6" SRCFILE="${PNAME}-${PVER}.tar.gz" SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" sminclude mbuild multilib SRC_URI=( http://cairographics.org/releases/${SRCFILE} mirror://${PNAME}/${SRCFILE} ) # check stable version UP2TAG=releases # check dev version #UP2TAG=snapshots UP2DATE="updatecmd http://cairographics.org/${UP2TAG}/ | grep ]LA.*-${PNAME}- | sed 's/.*ST-${PNAME}-\([0-9\.]*\).*/\1/'" src_compile() { mconfigure \ --with-x \ --with-xlib \ --with-xlib-xrender \ --enable-freetype \ --enable-png \ --enable-xcb \ --enable-pdf \ --enable-png \ --enable-ps \ --enable-tee \ --disable-gtk-doc \ --disable-static \ || die mmake || die } postinstall() { # remove glitz, not needed anymore if [[ -n $(magequery -n glitz) ]] then echo "Automatically removing 'media-libs/glitz'..." mage uninstall glitz fi }