1 # Maintainer: Rémy Oudompheng <remy@archlinux.org>
7 pkgdesc="A library for layout and rendering of text (mingw32)"
8 depends=('mingw32-cairo>=1.7.6' 'mingw32-glib2>=2.24')
9 makedepends=(mingw32-gcc)
12 url="http://www.gtk.org/"
13 source=(http://ftp.gnome.org/pub/gnome/sources/pango/1.28/pango-${pkgver}.tar.bz2)
14 sha256sums=('7eb035bcc10dd01569a214d5e2bc3437de95d9ac1cfa9f50035a687c45f05a9f')
18 cd "$srcdir/pango-$pkgver"
20 export CXX=i486-mingw32-g++
21 export CFLAGS="-O2 -pipe -march=i686 -mms-bitfields"
22 export CXXFLAGS="$CFLAGS"
23 export PKG_CONFIG_LIBDIR="/usr/i486-mingw32/lib/pkgconfig/"
24 unset LDFLAGS PKG_CONFIG_PATH
26 sed -i 's/have_libthai=true/have_libthai=false/' configure
29 --prefix=/usr/i486-mingw32 \
32 --with-included-modules=yes \
33 --with-dynamic-modules=no \
34 --disable-introspection
40 cd "$srcdir/pango-$pkgver"
41 mkdir -p "$pkgdir/usr/i486-mingw32/lib/"
42 make install DESTDIR="$pkgdir"
45 # sed -i 's/-lfontconfig//' usr/i486-mingw32/lib/pkgconfig/pangocairo.pc
46 # sed -i 's/-lfreetype//' usr/i486-mingw32/lib/pkgconfig/pangocairo.pc
47 find . -name '*.a' -o -name '*.dll' -o -name '*.exe' \
48 | xargs -rtl1 i486-mingw32-strip -g
49 rm -rf usr/i486-mingw32/{share,man}