# Depends on: cairo glib xorg-libsm xorg-libxext xorg-libxft
name=pango
version=1.24.5
-release=2
-source=(http://download.gnome.org/sources/$name/1.24/$name-$version.tar.bz2 \
- pango.modules)
+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 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"
- export CAIRO_CFLAGS="$DEFAULT_CFLAGS -I$CLFS/usr/include/cairo"
+ 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
#
# ModulesPath = /usr/lib/pango/1.6.0/modules
#
+/usr/lib/pango/1.6.0/modules/pango-khmer-fc.so KhmerScriptEngineFc PangoEngineShape PangoRenderFc khmer:*
/usr/lib/pango/1.6.0/modules/pango-hangul-fc.so HangulScriptEngineFc PangoEngineShape PangoRenderFc hangul:*
-/usr/lib/pango/1.6.0/modules/pango-arabic-lang.so ArabicScriptEngineLang PangoEngineLang PangoRenderNone arabic:*
-/usr/lib/pango/1.6.0/modules/pango-arabic-fc.so ArabicScriptEngineFc PangoEngineShape PangoRenderFc arabic:* nko:*
+/usr/lib/pango/1.6.0/modules/pango-tibetan-fc.so TibetanScriptEngineFc PangoEngineShape PangoRenderFc tibetan:*
+/usr/lib/pango/1.6.0/modules/pango-syriac-fc.so SyriacScriptEngineFc PangoEngineShape PangoRenderFc syriac:*
/usr/lib/pango/1.6.0/modules/pango-basic-x.so BasicScriptEngineX PangoEngineShape PangoRenderX common:
-/usr/lib/pango/1.6.0/modules/pango-thai-fc.so ThaiScriptEngineFc PangoEngineShape PangoRenderFc thai:* lao:*
-/usr/lib/pango/1.6.0/modules/pango-indic-fc.so devaScriptEngineFc PangoEngineShape PangoRenderFc devanagari:*
-/usr/lib/pango/1.6.0/modules/pango-indic-fc.so bengScriptEngineFc PangoEngineShape PangoRenderFc bengali:*
-/usr/lib/pango/1.6.0/modules/pango-indic-fc.so guruScriptEngineFc PangoEngineShape PangoRenderFc gurmukhi:*
-/usr/lib/pango/1.6.0/modules/pango-indic-fc.so gujrScriptEngineFc PangoEngineShape PangoRenderFc gujarati:*
-/usr/lib/pango/1.6.0/modules/pango-indic-fc.so oryaScriptEngineFc PangoEngineShape PangoRenderFc oriya:*
-/usr/lib/pango/1.6.0/modules/pango-indic-fc.so tamlScriptEngineFc PangoEngineShape PangoRenderFc tamil:*
-/usr/lib/pango/1.6.0/modules/pango-indic-fc.so teluScriptEngineFc PangoEngineShape PangoRenderFc telugu:*
-/usr/lib/pango/1.6.0/modules/pango-indic-fc.so kndaScriptEngineFc PangoEngineShape PangoRenderFc kannada:*
-/usr/lib/pango/1.6.0/modules/pango-indic-fc.so mlymScriptEngineFc PangoEngineShape PangoRenderFc malayalam:*
-/usr/lib/pango/1.6.0/modules/pango-indic-fc.so sinhScriptEngineFc PangoEngineShape PangoRenderFc sinhala:*
-/usr/lib/pango/1.6.0/modules/pango-hebrew-fc.so HebrewScriptEngineFc PangoEngineShape PangoRenderFc hebrew:*
/usr/lib/pango/1.6.0/modules/pango-basic-fc.so BasicScriptEngineFc PangoEngineShape PangoRenderFc latin:* cyrillic:* greek:* armenian:* georgian:* runic:* ogham:* bopomofo:* cherokee:* coptic:* deseret:* ethiopic:* gothic:* han:* hiragana:* katakana:* old-italic:* canadian-aboriginal:* yi:* braille:* cypriot:* limbu:* osmanya:* shavian:* linear-b:* ugaritic:* glagolitic:* cuneiform:* phoenician:* common:
-/usr/lib/pango/1.6.0/modules/pango-khmer-fc.so KhmerScriptEngineFc PangoEngineShape PangoRenderFc khmer:*
+/usr/lib/pango/1.6.0/modules/pango-arabic-fc.so ArabicScriptEngineFc PangoEngineShape PangoRenderFc arabic:* nko:*
+/usr/lib/pango/1.6.0/modules/pango-hebrew-fc.so HebrewScriptEngineFc PangoEngineShape PangoRenderFc hebrew:*
/usr/lib/pango/1.6.0/modules/pango-indic-lang.so devaIndicScriptEngineLang PangoEngineLang PangoRenderNone devanagari:*
/usr/lib/pango/1.6.0/modules/pango-indic-lang.so bengIndicScriptEngineLang PangoEngineLang PangoRenderNone bengali:*
/usr/lib/pango/1.6.0/modules/pango-indic-lang.so guruIndicScriptEngineLang PangoEngineLang PangoRenderNone gurmukhi:*
/usr/lib/pango/1.6.0/modules/pango-indic-lang.so kndaIndicScriptEngineLang PangoEngineLang PangoRenderNone kannada:*
/usr/lib/pango/1.6.0/modules/pango-indic-lang.so mlymIndicScriptEngineLang PangoEngineLang PangoRenderNone malayalam:*
/usr/lib/pango/1.6.0/modules/pango-indic-lang.so sinhIndicScriptEngineLang PangoEngineLang PangoRenderNone sinhala:*
-/usr/lib/pango/1.6.0/modules/pango-tibetan-fc.so TibetanScriptEngineFc PangoEngineShape PangoRenderFc tibetan:*
-/usr/lib/pango/1.6.0/modules/pango-syriac-fc.so SyriacScriptEngineFc PangoEngineShape PangoRenderFc syriac:*
+/usr/lib/pango/1.6.0/modules/pango-thai-fc.so ThaiScriptEngineFc PangoEngineShape PangoRenderFc thai:* lao:*
+/usr/lib/pango/1.6.0/modules/pango-arabic-lang.so ArabicScriptEngineLang PangoEngineLang PangoRenderNone arabic:*
+/usr/lib/pango/1.6.0/modules/pango-indic-fc.so devaScriptEngineFc PangoEngineShape PangoRenderFc devanagari:*
+/usr/lib/pango/1.6.0/modules/pango-indic-fc.so bengScriptEngineFc PangoEngineShape PangoRenderFc bengali:*
+/usr/lib/pango/1.6.0/modules/pango-indic-fc.so guruScriptEngineFc PangoEngineShape PangoRenderFc gurmukhi:*
+/usr/lib/pango/1.6.0/modules/pango-indic-fc.so gujrScriptEngineFc PangoEngineShape PangoRenderFc gujarati:*
+/usr/lib/pango/1.6.0/modules/pango-indic-fc.so oryaScriptEngineFc PangoEngineShape PangoRenderFc oriya:*
+/usr/lib/pango/1.6.0/modules/pango-indic-fc.so tamlScriptEngineFc PangoEngineShape PangoRenderFc tamil:*
+/usr/lib/pango/1.6.0/modules/pango-indic-fc.so teluScriptEngineFc PangoEngineShape PangoRenderFc telugu:*
+/usr/lib/pango/1.6.0/modules/pango-indic-fc.so kndaScriptEngineFc PangoEngineShape PangoRenderFc kannada:*
+/usr/lib/pango/1.6.0/modules/pango-indic-fc.so mlymScriptEngineFc PangoEngineShape PangoRenderFc malayalam:*
+/usr/lib/pango/1.6.0/modules/pango-indic-fc.so sinhScriptEngineFc PangoEngineShape PangoRenderFc sinhala:*
--- /dev/null
+--- configure 2009-07-20 20:59:52.000000000 +0000
++++ configure.new 2010-10-21 18:25:57.000000000 +0000
+@@ -20070,45 +20070,20 @@
+ LDFLAGS=$pango_save_ldflags
+ fi
+
+- if $have_cairo; then
+ HAVE_CAIRO_TRUE=
+ HAVE_CAIRO_FALSE='#'
+-else
+- HAVE_CAIRO_TRUE='#'
+- HAVE_CAIRO_FALSE=
+-fi
+
+- if $have_cairo_png; then
+ HAVE_CAIRO_PNG_TRUE=
+ HAVE_CAIRO_PNG_FALSE='#'
+-else
+- HAVE_CAIRO_PNG_TRUE='#'
+- HAVE_CAIRO_PNG_FALSE=
+-fi
+
+- if $have_cairo_ps; then
+ HAVE_CAIRO_PS_TRUE=
+ HAVE_CAIRO_PS_FALSE='#'
+-else
+- HAVE_CAIRO_PS_TRUE='#'
+- HAVE_CAIRO_PS_FALSE=
+-fi
+
+- if $have_cairo_pdf; then
+ HAVE_CAIRO_PDF_TRUE=
+ HAVE_CAIRO_PDF_FALSE='#'
+-else
+- HAVE_CAIRO_PDF_TRUE='#'
+- HAVE_CAIRO_PDF_FALSE=
+-fi
+
+- if $have_cairo_xlib; then
+ HAVE_CAIRO_XLIB_TRUE=
+ HAVE_CAIRO_XLIB_FALSE='#'
+-else
+- HAVE_CAIRO_XLIB_TRUE='#'
+- HAVE_CAIRO_XLIB_FALSE=
+-fi
+
+ if $have_cairo_win32; then
+ HAVE_CAIRO_WIN32_TRUE=
+@@ -20118,13 +20093,8 @@
+ HAVE_CAIRO_WIN32_FALSE=
+ fi
+
+- if $have_cairo_freetype; then
+ HAVE_CAIRO_FREETYPE_TRUE=
+ HAVE_CAIRO_FREETYPE_FALSE='#'
+-else
+- HAVE_CAIRO_FREETYPE_TRUE='#'
+- HAVE_CAIRO_FREETYPE_FALSE=
+-fi
+
+ if $have_cairo_atsui; then
+ HAVE_CAIRO_ATSUI_TRUE=