# Description: A library for layout and rendering of text # URL: http://www.gtk.org/ # Maintainer: Tilman Sauerbeck, tilman at crux dot nu # Arch Maintainer: CRUX-ARM System Team, devel at crux-arm dot nu # Depends on: cairo glib xorg-libsm xorg-libxext xorg-libxft name=pango version=1.24.5 release=1 source=(http://download.gnome.org/sources/$name/${version%.*}/$name-$version.tar.bz2 \ pango.modules pangocairo.patch) build () { cd $name-$version patch -p0 -i $SRC/pangocairo.patch export DEFAULT_LIBS="-L$CLFS/usr/lib" export DEFAULT_CFLAGS="-I$CLFS/usr/include" 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" export XFT_LIBS="$DEFAULT_LIBS -lXft" export XFT_CFLAGS="$DEFAULT_CFLAGS" export GLIB_LIBS="$DEFAULT_LIBS -lglib-2.0 -lgthread-2.0 -pthread -lrt -lgmodule-2.0 -Wl,--export-dynamic -lgio-2.0 -lgobject-2.0" export GLIB_CFLAGS="$DEFAULT_CFLAGS -I$CLFS/usr/include/glib-2.0 -I$CLFS/usr/lib/glib-2.0/include" export CAIRO_LIBS="$DEFAULT_LIBS -lcairo -lpng12" export CAIRO_CFLAGS="$DEFAULT_CFLAGS -I$CLFS/usr/include/cairo -I$CLFS/usr/include/libpng12" ./configure --build=$CHOST \ --host=$CTARGET \ --prefix=/usr echo "#define HAVE_CAIRO 1" >> config.h echo "#define HAVE_CAIRO_PNG 1" >> config.h echo "#define HAVE_CAIRO_FREETYPE 1" >> config.h echo "#define HAVE_CAIRO_XLIB 1" >> config.h echo "#define HAVE_X 1" >> config.h echo "#define HAVE_XFT 1" >> config.h sed -i $(find . -type f -name Makefile) \ -e "s|FONTCONFIG_LIBS =.*|FONTCONFIG_LIBS = $FONTCONFIG_LIBS|" \ -e "s|FONTCONFIG_CFLAGS =.*|FONTCONFIG_CFLAGS = $FONTCONFIG_CFLAGS|" \ -e "s|FREETYPE_LIBS =.*|FREETYPE_LIBS = $FREETYPE_LIBS|" \ -e "s|FREETYPE_CFLAGS =.*|FREETYPE_CFLAGS = $FREETYPE_CFLAGS|" \ -e "s|XFT_LIBS =.*|XFT_LIBS = $XFT_LIBS|" \ -e "s|XFT_CFLAGS =.*|XFT_CFLAGS = $XFT_CFLAGS|" \ -e "s|GLIB_LIBS =.*|GLIB_LIBS = $GLIB_LIBS|" \ -e "s|GLIB_CFLAGS =.*|GLIB_CFLAGS = $GLIB_CFLAGS|" \ -e "s|CAIRO_LIBS =.*|CAIRO_LIBS = $CAIRO_LIBS|" \ -e "s|CAIRO_CFLAGS =.*|CAIRO_CFLAGS = $CAIRO_CFLAGS|" make make DESTDIR=$PKG install install -D -m 644 $SRC/pango.modules $PKG/usr/etc/pango/pango.modules rm -r $PKG/usr/share }