diff options
author | Tobias Gruetzmacher <tobias-git@23.gs> | 2015-07-26 21:55:58 (GMT) |
---|---|---|
committer | Tobias Gruetzmacher <tobias-git@23.gs> | 2015-08-01 10:39:10 (GMT) |
commit | 43959ad14728c654f563b7bc6c8a8fa20cfc7a15 (patch) | |
tree | d3b94254ca4f757e33bd1878034d7154a562addd /src/openexr.mk | |
parent | e43f556c60a7dfbb25548215fff168e0d1a38165 (diff) | |
download | mxe-43959ad14728c654f563b7bc6c8a8fa20cfc7a15.zip mxe-43959ad14728c654f563b7bc6c8a8fa20cfc7a15.tar.gz mxe-43959ad14728c654f563b7bc6c8a8fa20cfc7a15.tar.bz2 |
Update OpenEXR (2.2.0) & fix build.
- Update autoconf stuff, since the shipped libtool has problems with
64-bit builds (fixes #736)
- Manually execute dwaLookup, just like b44ExpLogTable
Diffstat (limited to 'src/openexr.mk')
-rw-r--r-- | src/openexr.mk | 20 |
1 files changed, 15 insertions, 5 deletions
diff --git a/src/openexr.mk b/src/openexr.mk index a371b81..78169a7 100644 --- a/src/openexr.mk +++ b/src/openexr.mk @@ -3,8 +3,8 @@ PKG := openexr $(PKG)_IGNORE := -$(PKG)_VERSION := 2.1.0 -$(PKG)_CHECKSUM := 4a3db5ea527856145844556e0ee349f45ed4cbc7 +$(PKG)_VERSION := 2.2.0 +$(PKG)_CHECKSUM := d09a68c4443b7a12a0484c073adaef348b44cb92 $(PKG)_SUBDIR := openexr-$($(PKG)_VERSION) $(PKG)_FILE := openexr-$($(PKG)_VERSION).tar.gz $(PKG)_URL := http://download.savannah.nongnu.org/releases/openexr/$($(PKG)_FILE) @@ -18,6 +18,8 @@ define $(PKG)_UPDATE endef define $(PKG)_BUILD + # Update auto-stuff, except autoheader, because if fails... + cd '$(1)' && AUTOHEADER=true autoreconf -fi # unpack and build a native version of ilmbase cd '$(1)' && $(call UNPACK_PKG_ARCHIVE,ilmbase) $(foreach PKG_PATCH,$(sort $(wildcard $(TOP_DIR)/src/ilmbase-*.patch)), @@ -39,15 +41,23 @@ define $(PKG)_BUILD --disable-posix-sem \ --disable-ilmbasetest \ PKG_CONFIG='$(PREFIX)/bin/$(TARGET)-pkg-config' \ - CXXFLAGS="-fpermissive" + CXXFLAGS="-g -O2 -fpermissive" # build the code generator manually - cd '$(1)/IlmImf' && g++ \ + cd '$(1)/IlmImf' && g++ -O2 \ -I'$(1)/ilmbase/include/OpenEXR' \ -L'$(1)/ilmbase/lib' \ b44ExpLogTable.cpp \ - -lImath -lHalf -lIex -lIlmThread -lpthread \ + -lHalf \ -o b44ExpLogTable '$(1)/IlmImf/b44ExpLogTable' > '$(1)/IlmImf/b44ExpLogTable.h' + cd '$(1)/IlmImf' && g++ -O2 \ + -I'$(1)/config' -I. \ + -I'$(1)/ilmbase/include/OpenEXR' \ + -L'$(1)/ilmbase/lib' \ + dwaLookups.cpp \ + -lHalf -lIlmThread -lIex -lpthread \ + -o dwaLookups + '$(1)/IlmImf/dwaLookups' > '$(1)/IlmImf/dwaLookups.h' $(MAKE) -C '$(1)' -j '$(JOBS)' install bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS= '$(TARGET)-g++' \ |