# Description: A 2D graphics library with support for multiple output devices # URL: http://www.cairographics.org/ # Maintainer: Tilman Sauerbeck tilman at crux dot nu # Arch Maintainer: CRUX-ARM System Team, devel at crux-arm dot nu # Depends on: fontconfig libpng xorg-libxrender xorg-libpixman name=cairo version=1.8.8 release=2 source=(http://cairographics.org/releases/$name-$version.tar.gz) build() { cd $name-$version export DEFAULT_LIBS="-L$CLFS/usr/lib" export DEFAULT_CFLAGS="-I$CLFS/usr/include" export png_LIBS="$DEFAULT_LIBS -lpng12" export png_CFLAGS="$DEFAULT_CFLAGS -I$CLFS/usr/include/libpng12" export xlib_LIBS="$DEFAULT_LIBS -lX11" export xlib_CFLAGS="$DEFAULT_CFLAGS" export xlib_xrender_LIBS="$DEFAULT_LIBS -lXrender" export xlib_xrender_CFLAGS="$DEFAULT_CFLAGS" export pixman_LIBS="$DEFAULT_LIBS -lpixman-1" export pixman_CFLAGS="$DEFAULT_CFLAGS -I$CLFS/usr/include/pixman-1" export FONTCONFIG_LIBS="$DEFAULT_LIBS -lfontconfig" export FONTCONFIG_CFLAGS="$DEFAULT_CFLAGS" export FREETYPE_LIBS="$DEFAULT_LIBS -lfreetype -lz" export FREETYPE_CFLAGS="$DEFAULT_CFLAGS -I$CLFS/usr/include/freetype2" sed 's|use_png=no|use_png=yes|' -i configure ./configure --build=$CHOST \ --host=$CTARGET \ --prefix=/usr \ --enable-xlib=yes \ --enable-xlib-xrender=yes \ --enable-png=yes \ --enable-ft=yes make make DESTDIR=$PKG install rm -rf $PKG/usr/share }