updated on Tue Jan 10 12:02:00 UTC 2012
[aur-mirror.git] / mingw32-pango / PKGBUILD
blobf6530b1ef199d0a4e58550fb44724c0897531ecd
1 # Maintainer: Rémy Oudompheng <remy@archlinux.org>
3 pkgname=mingw32-pango
4 pkgver=1.28.4
5 pkgrel=1
6 arch=(any)
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)
10 options=(!strip)
11 license=('LGPL')
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')
16 build()
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
28   ./configure \
29     --prefix=/usr/i486-mingw32 \
30     --host=i486-mingw32 \
31     --build=$CHOST \
32     --with-included-modules=yes \
33     --with-dynamic-modules=no \
34     --disable-introspection
36   make
39 package() {
40   cd "$srcdir/pango-$pkgver"
41   mkdir -p "$pkgdir/usr/i486-mingw32/lib/"
42   make install DESTDIR="$pkgdir"
44   cd "$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}