From 3eac27bcb0d5c3a3b64775bb0115affba90e97f7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrgen=20Buchm=C3=BCller?= Date: Fri, 21 Aug 2015 21:26:00 +0200 Subject: [PATCH] openexr: unbreak cross The result needs testing on the cross platforms, though. There is no guarantee the shipped tables IlmImf/dwaLookup.h and IlmImf/b44ExpLogTable.h are okay to use as is. --- srcpkgs/openexr/template | 24 ++++++++++++++++++------ 1 file changed, 18 insertions(+), 6 deletions(-) diff --git a/srcpkgs/openexr/template b/srcpkgs/openexr/template index c59192c6af..41f2ee7be7 100644 --- a/srcpkgs/openexr/template +++ b/srcpkgs/openexr/template @@ -1,7 +1,7 @@ # Template file for 'openexr' pkgname=openexr version=2.2.0 -revision=2 +revision=3 build_style=gnu-configure maintainer="Juan RP " homepage="http://www.openexr.com/" @@ -9,16 +9,28 @@ license="BSD" short_desc="High dynamic-range (HDR) image file format" hostmakedepends="pkg-config" makedepends="ilmbase-devel zlib-devel" -distfiles="http://download.savannah.nongnu.org/releases/${pkgname}/${pkgname}-${version}.tar.gz" +distfiles="${NONGNU_SITE}/${pkgname}/${pkgname}-${version}.tar.gz" checksum="36a012f6c43213f840ce29a8b182700f6cf6b214bea0d5735594136b44914231" -# XXX -nocross="http://build.voidlinux.eu/builders/armv7l-musl_builder/builds/3335/steps/shell_3/logs/stdio" +LDFLAGS="-L${XBPS_CROSS_BASE}/usr/lib -lrt" -LDFLAGS="-lrt" +post_configure() { + if [ "$CROSS_BUILD" ]; then + # Don't try to rebuild these header files when cross compiling + # in the hope the shipped tables are ok to use as is. + sed -i ${wrksrc}/IlmImf/Makefile \ + -e "/BUILT_SOURCES = /s;b44ExpLogTable.h dwaLookups.h;;" \ + -e "/CLEANFILES = /s; b44ExpLogTable.h;;" \ + -e "/CLEANFILES = /s; dwaLookups.h;;" \ + -e "/b44ExpLogTable.h: b44ExpLogTable/d" \ + -e "/\.\/b44ExpLogTable > b44ExpLogTable.h/d" \ + -e "/dwaLookups.h: dwaLookups/d" \ + -e "/\.\/dwaLookups > dwaLookups.h/d" + fi +} post_install(){ - vlicense LICENSE + vlicense LICENSE } libopenexr_package() {