extra/ilmbase to 2.1.0-1

This commit is contained in:
Kevin Mihelich 2014-05-20 01:24:30 +00:00
parent 562545c18c
commit 7bfdb00f3c
3 changed files with 53 additions and 7 deletions

View file

@ -5,22 +5,34 @@
# - ARM patch from https://github.com/openexr/openexr/issues/29 # - ARM patch from https://github.com/openexr/openexr/issues/29
pkgname=ilmbase pkgname=ilmbase
pkgver=2.0.1 pkgver=2.1.0
pkgrel=2 pkgrel=1
depends=('gcc-libs') depends=('gcc-libs')
pkgdesc="Base libraries from ILM for OpenEXR" pkgdesc="Base libraries from ILM for OpenEXR"
arch=(i686 x86_64) arch=(i686 x86_64)
url="http://www.openexr.com" url="http://www.openexr.com"
license=('custom') license=('custom')
options=('!libtool')
source=(http://download.savannah.nongnu.org/releases/openexr/$pkgname-$pkgver.tar.gz source=(http://download.savannah.nongnu.org/releases/openexr/$pkgname-$pkgver.tar.gz
arm.patch) ilmbase-2.0.1-no_undefined.patch
ilmbase-1.0.3-pkgconfig.patch
arm.patch)
prepare() {
cd "${srcdir}/$pkgname-$pkgver"
patch -p1 -i ../arm.patch
# patches from fedora
patch -p1 -i ../ilmbase-2.0.1-no_undefined.patch
patch -p1 -i ../ilmbase-1.0.3-pkgconfig.patch
}
build() { build() {
cd "${srcdir}/$pkgname-$pkgver" cd "${srcdir}/$pkgname-$pkgver"
patch -p1 -i ../arm.patch
./configure --prefix=/usr ./configure --prefix=/usr
make # manually set PTHREAD_LIBS to include -lpthread until libtool bogosity is fixed,
# https://bugzilla.redhat.com/show_bug.cgi?id=661333
make PTHREAD_LIBS="-pthread -lpthread"
} }
check() { check() {
@ -34,5 +46,7 @@ package() {
make DESTDIR="${pkgdir}" install make DESTDIR="${pkgdir}" install
install -D -m644 COPYING "$pkgdir/usr/share/licenses/$pkgname/COPYING" install -D -m644 COPYING "$pkgdir/usr/share/licenses/$pkgname/COPYING"
} }
md5sums=('74c0d0d2873960bd0dc1993f8e03f0ae' md5sums=('8ba2f608191ad020e50277d8a3ba0850'
'27ff3915e03964f85a9e9fb896a93479'
'ed3eb3dfa2393adc6829cc9ca8caa0ff'
'b652c8106907d867a2f52fe93ac6c5ec') 'b652c8106907d867a2f52fe93ac6c5ec')

View file

@ -0,0 +1,8 @@
diff -up ilmbase-1.0.3/IlmBase.pc.in.pkgconfig ilmbase-1.0.3/IlmBase.pc.in
--- ilmbase-1.0.3/IlmBase.pc.in.pkgconfig 2012-07-17 18:27:25.000000000 -0500
+++ ilmbase-1.0.3/IlmBase.pc.in 2012-09-08 11:11:15.913468312 -0500
@@ -9,3 +9,4 @@ Description: Base math and exception lib
Version: @ILMBASE_VERSION@
Libs: -L${libdir} -lImath -lHalf -lIex -lIexMath -lIlmThread @PTHREAD_LIBS@
Cflags: @PTHREAD_CFLAGS@ -I${OpenEXR_includedir}
+Requires.private: gl glu

View file

@ -0,0 +1,24 @@
diff -up ilmbase-2.0.1/IlmThread/Makefile.am.no_undefined ilmbase-2.0.1/IlmThread/Makefile.am
--- ilmbase-2.0.1/IlmThread/Makefile.am.no_undefined 2013-06-18 14:51:38.000000000 -0500
+++ ilmbase-2.0.1/IlmThread/Makefile.am 2013-08-28 21:04:25.793391766 -0500
@@ -14,7 +14,7 @@ libIlmThread_la_LDFLAGS = -version-info
if LIB_SUFFIX_EXISTS
libIlmThread_la_LDFLAGS += -release @LIB_SUFFIX@
endif
-libIlmThread_la_LIBADD = ../Iex/libIex.la
+libIlmThread_la_LIBADD = ../Iex/libIex.la $(PTHREAD_LIBS)
libIlmThreadincludedir = $(includedir)/OpenEXR
diff -up ilmbase-2.0.1/IlmThread/Makefile.in.no_undefined ilmbase-2.0.1/IlmThread/Makefile.in
--- ilmbase-2.0.1/IlmThread/Makefile.in.no_undefined 2013-06-18 14:55:24.000000000 -0500
+++ ilmbase-2.0.1/IlmThread/Makefile.in 2013-08-28 21:04:55.395049371 -0500
@@ -253,7 +253,7 @@ libIlmThread_la_SOURCES = IlmThreadPool.
libIlmThread_la_LDFLAGS = -version-info @LIBTOOL_VERSION@ \
-no-undefined $(am__append_1)
-libIlmThread_la_LIBADD = ../Iex/libIex.la
+libIlmThread_la_LIBADD = ../Iex/libIex.la $(PTHREAD_LIBS)
libIlmThreadincludedir = $(includedir)/OpenEXR
libIlmThreadinclude_HEADERS = IlmThreadPool.h IlmThread.h \
IlmThreadSemaphore.h IlmThreadMutex.h \