summaryrefslogtreecommitdiff
path: root/libre/openexr-libre
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2013-08-01 04:18:10 -0700
committerroot <root@rshg054.dnsready.net>2013-08-01 04:18:10 -0700
commit70ec180b1cca6eda5576597c2bfff9171f7815bf (patch)
treec657593166d4c6d905d057fac9c488ffbefc6965 /libre/openexr-libre
parent3391ef078ab86d3160b5e2fb3cfb794b75ce2a76 (diff)
Thu Aug 1 04:18:10 PDT 2013
Diffstat (limited to 'libre/openexr-libre')
-rw-r--r--libre/openexr-libre/PKGBUILD59
-rw-r--r--libre/openexr-libre/gcc43.patch11
2 files changed, 70 insertions, 0 deletions
diff --git a/libre/openexr-libre/PKGBUILD b/libre/openexr-libre/PKGBUILD
new file mode 100644
index 000000000..ff25fb014
--- /dev/null
+++ b/libre/openexr-libre/PKGBUILD
@@ -0,0 +1,59 @@
+# $Id: PKGBUILD 191713 2013-07-29 10:21:41Z tpowa $
+# Maintainer: Tobias Powalowski <tpowa@archlinux.org>
+# Maintainer (Parabola): André Silva <emulatorman@lavabit.com>
+
+_pkgname=openexr
+pkgname=openexr-libre
+pkgver=2.0.1
+pkgrel=1
+pkgdesc="An high dynamic-range image file format library, without embedded nonfree fonts in the documentation"
+url="http://www.openexr.com/"
+arch=('i686' 'x86_64' 'mips64el')
+license=('BSD')
+depends=('zlib' 'ilmbase')
+makedepends=('libreoffice-writer' 'jre7-openjdk-headless' 'libcups' 'libxinerama')
+replaces=$_pkgname
+conflicts=$_pkgname
+provides=$_pkgname=$pkgver
+options=('!libtool')
+source=("http://download.savannah.nongnu.org/releases/${_pkgname}/${_pkgname}-${pkgver}.tar.gz"
+ "http://repo.parabolagnulinux.org/other/${pkgname}/MultiViewOpenEXR.odt"
+ "http://repo.parabolagnulinux.org/other/${pkgname}/OpenEXRFileLayout.odt"
+ "http://repo.parabolagnulinux.org/other/${pkgname}/ReadingAndWritingImageFiles.odt"
+ "http://repo.parabolagnulinux.org/other/${pkgname}/TechnicalIntroduction.odt")
+noextract=(MultiViewOpenEXR.odt OpenEXRFileLayout.odt ReadingAndWritingImageFiles.odt TechnicalIntroduction.odt)
+
+build() {
+ cd "${srcdir}/${_pkgname}-${pkgver}"
+ ./configure --prefix=/usr
+ make
+}
+
+package() {
+ cd "${srcdir}/${_pkgname}-${pkgver}"
+
+ # remove documentation with embedded nonfree fonts
+ rm -rv "doc/"{MultiViewOpenEXR,OpenEXRFileLayout,ReadingAndWritingImageFiles,TechnicalIntroduction}.pdf
+
+ # add source documentation with free fonts
+ install -m644 -v "${srcdir}/"{MultiViewOpenEXR,OpenEXRFileLayout,ReadingAndWritingImageFiles,TechnicalIntroduction}.odt doc
+
+ # convert documentation to pdf format
+ cd doc
+
+ for x in ${noextract[@]}; do
+ libreoffice --headless --invisible --convert-to pdf ${x}
+ done
+
+ cd ..
+
+ make DESTDIR="${pkgdir}" install
+ install -D -m644 COPYING "${pkgdir}/usr/share/licenses/${_pkgname}/LICENSE"
+
+ install -m644 "doc/"{MultiViewOpenEXR,OpenEXRFileLayout,ReadingAndWritingImageFiles,TechnicalIntroduction}.odt "${pkgdir}/usr/share/doc/OpenEXR-${pkgver}"
+}
+md5sums=('4387e6050d2faa65dd5215618ff2ddce'
+ '69f117d3c91827e5de47f1e00137a4cc'
+ '4d5ffa31f9af63bd5c621c6cbac6c673'
+ 'de099240193d8a51086dfae914fff3cf'
+ 'ece8bf90d438b89c6bd9fe4a89cc318a')
diff --git a/libre/openexr-libre/gcc43.patch b/libre/openexr-libre/gcc43.patch
new file mode 100644
index 000000000..ab99eb9a1
--- /dev/null
+++ b/libre/openexr-libre/gcc43.patch
@@ -0,0 +1,11 @@
+--- exrenvmap/blurImage.cpp
++++ exrenvmap/blurImage.cpp
+@@ -39,6 +39,8 @@
+ //
+ //-----------------------------------------------------------------------------
+
++#include <cstring>
++
+ #include <blurImage.h>
+
+ #include <resizeImage.h>