summaryrefslogtreecommitdiffstats
path: root/src/openexr.mk
diff options
context:
space:
mode:
Diffstat (limited to 'src/openexr.mk')
-rw-r--r--src/openexr.mk16
1 files changed, 7 insertions, 9 deletions
diff --git a/src/openexr.mk b/src/openexr.mk
index f4b57fd..c8db548 100644
--- a/src/openexr.mk
+++ b/src/openexr.mk
@@ -1,16 +1,13 @@
-# This file is part of mingw-cross-env.
-# See doc/index.html for further information.
+# This file is part of MXE.
+# See index.html for further information.
-# OpenEXR
PKG := openexr
$(PKG)_IGNORE :=
-$(PKG)_VERSION := 1.7.0
$(PKG)_CHECKSUM := 91d0d4e69f06de956ec7e0710fc58ec0d4c4dc2b
$(PKG)_SUBDIR := openexr-$($(PKG)_VERSION)
$(PKG)_FILE := openexr-$($(PKG)_VERSION).tar.gz
-$(PKG)_WEBSITE := http://www.openexr.com/
$(PKG)_URL := http://download.savannah.nongnu.org/releases/openexr/$($(PKG)_FILE)
-$(PKG)_DEPS := gcc ilmbase zlib
+$(PKG)_DEPS := gcc ilmbase pthreads zlib
define $(PKG)_UPDATE
wget -q -O- 'http://www.openexr.com/downloads.html' | \
@@ -24,7 +21,9 @@ define $(PKG)_BUILD
cd '$(1)' && $(call UNPACK_PKG_ARCHIVE,ilmbase)
$(foreach PKG_PATCH,$(sort $(wildcard $(TOP_DIR)/src/ilmbase-*.patch)),
(cd '$(1)/$(ilmbase_SUBDIR)' && $(PATCH) -p1 -u) < $(PKG_PATCH))
+ echo 'echo $1' > '$(1)/$(ilmbase_SUBDIR)/config.sub'
cd '$(1)/$(ilmbase_SUBDIR)' && $(SHELL) ./configure \
+ --build="`config.guess`" \
--disable-shared \
--prefix='$(1)/ilmbase' \
--enable-threading=no \
@@ -32,10 +31,9 @@ define $(PKG)_BUILD
CONFIG_SHELL=$(SHELL)
$(MAKE) -C '$(1)/$(ilmbase_SUBDIR)' -j '$(JOBS)' install \
bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS=
- # wine confuses the cross-compiling detection, so set it explicitly
- $(SED) -i 's,cross_compiling=no,cross_compiling=yes,' '$(1)/configure'
cd '$(1)' && ./configure \
--host='$(TARGET)' \
+ --build="`config.guess`" \
--disable-shared \
--prefix='$(PREFIX)/$(TARGET)' \
--disable-threading \
@@ -47,7 +45,7 @@ define $(PKG)_BUILD
-I'$(1)/ilmbase/include/OpenEXR' \
-L'$(1)/ilmbase/lib' \
b44ExpLogTable.cpp \
- -lImath -lHalf -lIex -lIlmThread \
+ -lImath -lHalf -lIex -lIlmThread -lpthread \
-o b44ExpLogTable
'$(1)/IlmImf/b44ExpLogTable' > '$(1)/IlmImf/b44ExpLogTable.h'
$(MAKE) -C '$(1)' -j '$(JOBS)' install bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS=