From 8fbc0076a4827ddc6af92e0b9daa4c4c31450808 Mon Sep 17 00:00:00 2001 From: root Date: Fri, 19 Jul 2013 01:10:32 -0700 Subject: Fri Jul 19 01:09:18 PDT 2013 --- community/freeimage/PKGBUILD | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 community/freeimage/PKGBUILD (limited to 'community/freeimage/PKGBUILD') diff --git a/community/freeimage/PKGBUILD b/community/freeimage/PKGBUILD new file mode 100644 index 000000000..3d9a9d58e --- /dev/null +++ b/community/freeimage/PKGBUILD @@ -0,0 +1,42 @@ +# Maintainer: Sven-Hendrik Haase +# Contributor: Thomas Dziedzic < gostrc at gmail > +# Contributor: Stefan Husmann +# Contributor: Mihai Militaru +# Contributor: scippio + +pkgname=freeimage +pkgver=3.15.4 +pkgrel=1 +pkgdesc="Library project for developers who would like to support popular graphics image formats" +arch=('i686' 'x86_64') +license=('GPL' 'custom:FIPL') +url="http://freeimage.sourceforge.net/" +depends=('gcc-libs') +makedepends=('dos2unix') +source=("http://downloads.sourceforge.net/project/freeimage/Source%20Distribution/${pkgver}/FreeImage${pkgver//./}.zip") +md5sums=('9f9a3b2c3c1b4fd24fe479e8aaee86b1') + +build() { + cp -r FreeImage FreeImagefip + + export CFLAGS="$CFLAGS -fPIC -fexceptions -fvisibility=hidden -DNO_LCMS" + export CXXFLAGS="$CXXFLAGS -fPIC -fexceptions -fvisibility=hidden -DNO_LCMS" + + cd FreeImage + sed -i "1 i #include " Source/OpenEXR/IlmImf/ImfAutoArray.h + make + + cd ${srcdir}/FreeImagefip + sed -i "1 i #include " Source/OpenEXR/IlmImf/ImfAutoArray.h + make -f Makefile.fip +} + +package() { + cd FreeImage + make DESTDIR=${pkgdir} install + + cd ${srcdir}/FreeImagefip + make -f Makefile.fip DESTDIR=${pkgdir} install + + install -D -m644 ${srcdir}/FreeImage/license-fi.txt ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE +} -- cgit v1.2.3-54-g00ecf