updated on Thu Jan 19 20:01:47 UTC 2012
[aur-mirror.git] / lib32-freeimage / PKGBUILD
blob323b5bab15b0393890714cec904b7fba9b2bf057
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
9 pkgver=3.15.0
10 pkgrel=2
11 pkgdesc="Library project for developers who would like to support popular graphics image formats."
12 arch=('x86_64')
13 url="http://freeimage.sourceforge.net"
14 license=('GTL' 'custom:FIPL')
15 groups=('lib32')
16 depends=('lib32-gcc-libs')
17 source=("http://downloads.sourceforge.net/project/freeimage/Source%20Distribution/${pkgver}/FreeImage${pkgver//./}.zip"
18         'gcc4.5_ln.patch')
20 build()
22         export CC="gcc -m32"
23         export CXX="g++ -m32"
24         export PKG_CONFIG_PATH="/usr/lib32/pkgconfig"
25       
26         cp -r FreeImage FreeImagefip
27         
28         cd FreeImage
29         patch -Np1 < ${srcdir}/gcc4.5_ln.patch
30         make
31               
32         cd ${srcdir}/FreeImagefip
33         patch -Np1 < ${srcdir}/gcc4.5_ln.patch
34         make -f Makefile.fip 
36 package() 
38         cd "${srcdir}"
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')