updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / mingw32-freeimage / PKGBUILD
blob7d9b7fa5b0e121854604bd0d917fa03416bee53b
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
6 pkgver=3.15.1
7 pkgrel=1
8 pkgdesc="Library project for developers who would like to support popular graphics image formats (mingw32)"
9 arch=(any)
10 license=('GPL' 'custom:FIPL')
11 url="http://freeimage.sourceforge.net/"
12 depends=('mingw32-gcc')
13 makedepends=('hd2u')
14 options=(!strip !buildflags)
15 source=("http://downloads.sourceforge.net/sourceforge/freeimage/FreeImage${pkgver//./}.zip")
16 md5sums=('450d2ff278690b0d1d7d7d58fad083cc')
18 build() {
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
24 package() {
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