1 # Contributor: Thomas Dziedzic < gostrc at gmail >
2 # Contributor: Stefan Husmann <stefan-husmann@t-online.de>
3 # Contributor: Mihai Militaru <mihai.militaru@gmx.com>
4 # Contributor: scippio <scippio@berounet.cz>
5 # Contributor: Jesse Jaara <jesse.jaara@gmail.com>
6 # Contributor: Dan Vratil <vratil@progdansoft.com>
8 pkgname=lib32-freeimage
11 pkgdesc="Library project for developers who would like to support popular graphics image formats."
13 url="http://freeimage.sourceforge.net"
14 license=('GTL' 'custom:FIPL')
16 depends=('lib32-gcc-libs')
17 source=("http://downloads.sourceforge.net/project/freeimage/Source%20Distribution/${pkgver}/FreeImage${pkgver//./}.zip"
24 export PKG_CONFIG_PATH="/usr/lib32/pkgconfig"
26 cp -r FreeImage FreeImagefip
29 patch -Np1 < ${srcdir}/gcc4.5_ln.patch
32 cd ${srcdir}/FreeImagefip
33 patch -Np1 < ${srcdir}/gcc4.5_ln.patch
40 mkdir -p "${pkgdir}/usr/lib32"
41 cp FreeImage/Dist/libfreeimage-${pkgver}.so "${pkgdir}/usr/lib32/"
42 cp FreeImagefip/Dist/libfreeimageplus-${pkgver}.so "${pkgdir}/usr/lib32/"
43 ln -s libfreeimage-${pkgver}.so ${pkgdir}/usr/lib32/libfreeimage.so
44 ln -s libfreeimageplus-${pkgver}.so ${pkgdir}/usr/lib32/libfreeimageplus.so
46 md5sums=('3b4f08e4985b269beb29a2fced1ef888'
47 'f85279b2572a0a9e03775909cd9cd759')