summaryrefslogtreecommitdiff
path: root/staging/ilmbase
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2012-10-20 01:22:20 -0700
committerroot <root@rshg054.dnsready.net>2012-10-20 01:22:20 -0700
commit9598f5141ea75ffa72a3c7c85639c6f296020ef1 (patch)
tree36488f90eaa723f707c26f79ba771bb2910e8368 /staging/ilmbase
parentdcc55a1cfa32068d0759c1c8307f6c07c11aec99 (diff)
Sat Oct 20 01:22:19 PDT 2012
Diffstat (limited to 'staging/ilmbase')
-rw-r--r--staging/ilmbase/PKGBUILD35
-rw-r--r--staging/ilmbase/ilmbase-IexMath.patch12
2 files changed, 47 insertions, 0 deletions
diff --git a/staging/ilmbase/PKGBUILD b/staging/ilmbase/PKGBUILD
new file mode 100644
index 000000000..fe1618f48
--- /dev/null
+++ b/staging/ilmbase/PKGBUILD
@@ -0,0 +1,35 @@
+# $Id: PKGBUILD 356 2008-04-18 22:56:27Z aaron $
+# Maintainer: Tobias Powalowski <tpowa@archlinux.org>
+
+pkgname=ilmbase
+pkgver=1.0.3
+pkgrel=1
+depends=('gcc-libs')
+pkgdesc="Base libraries from ILM for OpenEXR"
+arch=(i686 x86_64)
+url="http://www.openexr.com"
+license=('custom')
+options=('!libtool')
+source=(https://github.com/downloads/openexr/openexr/$pkgname-$pkgver.tar.gz
+ ilmbase-IexMath.patch)
+md5sums=('d99962ec7e2bfac0647aaabf6b91d5de'
+ '9c8efaf15f60bccf79749ec879657962')
+
+build() {
+ cd "${srcdir}/$pkgname-$pkgver"
+ patch -p0 -i "${srcdir}/ilmbase-IexMath.patch"
+ ./configure --prefix=/usr
+ make
+}
+
+check() {
+ cd "${srcdir}/$pkgname-$pkgver"
+ # one of the tests fails randomly for an unknown reason
+ make check || true
+}
+
+package() {
+ cd "${srcdir}/$pkgname-$pkgver"
+ make DESTDIR="${pkgdir}" install
+ install -D -m644 COPYING "$pkgdir/usr/share/licenses/$pkgname/COPYING"
+}
diff --git a/staging/ilmbase/ilmbase-IexMath.patch b/staging/ilmbase/ilmbase-IexMath.patch
new file mode 100644
index 000000000..546034966
--- /dev/null
+++ b/staging/ilmbase/ilmbase-IexMath.patch
@@ -0,0 +1,12 @@
+--- IexMath/IexMathFpu.cpp.orig 2012-07-26 20:51:55.000000000 +0200
++++ IexMath/IexMathFpu.cpp 2012-10-04 15:30:47.000000000 +0200
+@@ -27,8 +27,7 @@
+ #endif
+
+
+-#ifdef HAVE_UCONTEXT_H
+-
++#if defined(HAVE_UCONTEXT_H) && (defined(x86_64) || defined(i386_))
+
+ #include <ucontext.h>
+ #include <signal.h>