1 # Maintainer: Sven-Hendrik Haase <sh@lutzhaase.com>
2 # Contributor: Stefan Husmann <stefan-husmann@t-online.de>
3 # Contributor: Mihai Militaru <mihai.militaru@gmx.com>
4 # Contributor: scippio <scippio@berounet.cz>
5 pkgname=mingw32-freeimage
8 pkgdesc="Library project for developers who would like to support popular graphics image formats (mingw32)"
10 license=('GPL' 'custom:FIPL')
11 url="http://freeimage.sourceforge.net/"
12 depends=('mingw32-gcc')
14 options=(!strip !buildflags)
15 source=("http://downloads.sourceforge.net/sourceforge/freeimage/FreeImage${pkgver//./}.zip")
16 md5sums=('450d2ff278690b0d1d7d7d58fad083cc')
19 cd ${srcdir}/FreeImage
20 unset CFLAGS CXXFLAGS LDFLAGS
21 make CC="i486-mingw32-gcc" CXX="i486-mingw32-g++" LD="i486-mingw32-g++" RC="i486-mingw32-windres" AR="i486-mingw32-ar" FREEIMAGE_LIBRARY_TYPE="STATIC" -f Makefile.mingw
25 cd ${srcdir}/FreeImage
26 install -Dm644 Dist/FreeImage.h ${pkgdir}/usr/i486-mingw32/include/FreeImage.h
27 install -Dm644 Dist/FreeImage.a ${pkgdir}/usr/i486-mingw32/lib/libfreeimage.a
28 #make DESTDIR=${pkgdir} install || return 1
29 #make -f Makefile.fip || return 1
30 #make -f Makefile.fip DESTDIR=${pkgdir} install || return 1
31 #install -Dm644 $srcdir/FreeImage/license-fi.txt \
32 # $pkgdir/usr/share/licenses/$pkgname/license-fi.txt