1 # Maintainer: Rémy Oudompheng <oudomphe@phare.normalesup.org>
7 pkgdesc="cairo (mingw32)"
8 depends=(mingw32-libpng mingw32-pixman mingw32-fontconfig mingw32-freetype)
9 makedepends=(mingw32-gcc)
11 license=('LGPL' 'MPL')
12 url="http://cairographics.org/"
13 source=(http://cairographics.org/releases/cairo-${pkgver}.tar.gz)
14 sha1sums=('ccce5ae03f99c505db97c286a0c9a90a926d3c6e')
18 cd "$srcdir/cairo-$pkgver"
20 export CFLAGS="$CFLAGS -mms-bitfields"
21 export PKG_CONFIG_LIBDIR="/usr/i486-mingw32/lib/pkgconfig/"
22 unset LDFLAGS PKG_CONFIG_PATH
27 #define ffs __builtin_ffs\
29 ' src/cairo-compiler-private.h
32 --prefix=/usr/i486-mingw32 \
36 --enable-xlib-xrender=no \
38 --enable-win32-font=yes \
42 sed -i "s/deplibs_check_method=.*/deplibs_check_method=pass_all/g" libtool
48 cd "$srcdir/cairo-$pkgver"
49 make install DESTDIR="$pkgdir"
52 find . -name '*.a' -o -name '*.dll' -o -name '*.exe' \
53 | xargs -rtl1 i486-mingw32-strip -g
54 rm -rf usr/i486-mingw32/share