1 # Maintainer: Rémy Oudompheng <remy@archlinux.org>
7 pkgdesc="The GTK+ Toolkit (v2) (mingw32)"
8 url="http://www.gtk.org/"
9 depends=('mingw32-atk>=1.30' 'mingw32-pango>=1.20'
10 'mingw32-glib2>=2.28' 'mingw32-cairo>=1.6'
11 'mingw32-gdk-pixbuf2>=2.22')
12 makedepends=(mingw32-gcc)
15 source=(http://ftp.gnome.org/pub/gnome/sources/gtk+/2.24/gtk+-${pkgver}.tar.xz)
16 sha256sums=('8a3b29f667933cf52eea2db7b066723edbc80443ca9c75b7cd7cbe8c8b90b93c')
19 cd "${srcdir}/gtk+-${pkgver}"
21 export CFLAGS="-O2 -mms-bitfields"
22 export CXXFLAGS="${CFLAGS}"
23 export PKG_CONFIG_LIBDIR="/usr/i486-mingw32/lib/pkgconfig/"
24 unset LDFLAGS PKG_CONFIG_PATH
27 --prefix=/usr/i486-mingw32 \
30 --with-gdktarget=win32 \
33 --with-included-loaders=png,bmp,ico,pnm,xpm
39 cd "${srcdir}/gtk+-${pkgver}"
40 mkdir -p ${pkgdir}/usr/i486-mingw32/lib
41 make DESTDIR="${pkgdir}" install
44 find . -name '*.a' -o -name '*.dll' -o -name '*.exe' \
45 | xargs -rtl1 i486-mingw32-strip -g
47 rm -rf usr/i486-mingw32/share/{gtk-doc,man,gtk-2.0}