annotate src/openexr.mk @ 3628:a98f4ebb8a3c

update imlbase, openexr * src/dist-files.mk: remove ilmbase-1-gcc45-include.patch ilmbase-2-osx-cxxflags.patch * src/ilmbase-2-osx-cxxflags.patch: deleted, * src/ilmbase-1-gcc45-include.patc: deleted. * src/imlbase.mk: update to 2.1.0 * src/openexr.mk: update to 2.1.0
author John Donoghue <john.donoghue@ieee.org>
date Sun, 29 Jun 2014 14:26:38 -0400
parents 13be64f9f16d
children 6215676cc6ff
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2333
f653602a0500 Rebrand to new project name MXE
Volker Grabsch <vog@notjusthosting.com>
parents: 2256
diff changeset
1 # This file is part of MXE.
2353
99516e73b368 Move doc/index.html -> index.html
Volker Grabsch <vog@notjusthosting.com>
parents: 2349
diff changeset
2 # See index.html for further information.
414
d2a6561bcb6d add a copyright notice and license to each source file
Volker Grabsch <vog@notjusthosting.com>
parents: 306
diff changeset
3
306
85ffa9259036 validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents: 266
diff changeset
4 PKG := openexr
448
e9afec55fd6b improved version recognition, enable the notation of ignored (bad) package versions
Volker Grabsch <vog@notjusthosting.com>
parents: 417
diff changeset
5 $(PKG)_IGNORE :=
3628
a98f4ebb8a3c update imlbase, openexr
John Donoghue <john.donoghue@ieee.org>
parents: 3480
diff changeset
6 $(PKG)_VERSION := 2.1.0
a98f4ebb8a3c update imlbase, openexr
John Donoghue <john.donoghue@ieee.org>
parents: 3480
diff changeset
7 $(PKG)_CHECKSUM := 4a3db5ea527856145844556e0ee349f45ed4cbc7
306
85ffa9259036 validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents: 266
diff changeset
8 $(PKG)_SUBDIR := openexr-$($(PKG)_VERSION)
85ffa9259036 validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents: 266
diff changeset
9 $(PKG)_FILE := openexr-$($(PKG)_VERSION).tar.gz
85ffa9259036 validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents: 266
diff changeset
10 $(PKG)_URL := http://download.savannah.nongnu.org/releases/openexr/$($(PKG)_FILE)
3048
5ef49fb3299d treat gcc and binutils as build tools
John W. Eaton <jwe@octave.org>
parents: 3031
diff changeset
11 $(PKG)_DEPS := ilmbase pthreads zlib
240
9a4d6e48157b new package: openexr (by Martin Lambers)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
12
9a4d6e48157b new package: openexr (by Martin Lambers)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
13 define $(PKG)_UPDATE
2525
4d0f3a9da57e all packages: use $(WGET) portability variable
Tony Theodore <tonyt@logyst.com>
parents: 2365
diff changeset
14 $(WGET) -q -O- 'http://www.openexr.com/downloads.html' | \
240
9a4d6e48157b new package: openexr (by Martin Lambers)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
15 grep 'openexr-' | \
266
b94424e6c37f improved the regexes for package version recognition
Volker Grabsch <vog@notjusthosting.com>
parents: 265
diff changeset
16 $(SED) -n 's,.*openexr-\([0-9][^>]*\)\.tar.*,\1,p' | \
240
9a4d6e48157b new package: openexr (by Martin Lambers)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
17 head -1
9a4d6e48157b new package: openexr (by Martin Lambers)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
18 endef
9a4d6e48157b new package: openexr (by Martin Lambers)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
19
9a4d6e48157b new package: openexr (by Martin Lambers)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
20 define $(PKG)_BUILD
9a4d6e48157b new package: openexr (by Martin Lambers)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
21 # unpack and build a native version of ilmbase
3174
6e323510f5b5 Fix calls to UNPACK_PKG_ARCHIVE in src/*.mk files.
Michael Goffioul <michael.goffioul@gmail.com>
parents: 3048
diff changeset
22 cd '$(1)' && $(call UNPACK_PKG_ARCHIVE,ilmbase,$(TAR))
1249
df3c2fe12ee9 bugfix for ilmbase: remove obsolete compiler options
Tony Theodore <tonyt@logyst.com>
parents: 1201
diff changeset
23 $(foreach PKG_PATCH,$(sort $(wildcard $(TOP_DIR)/src/ilmbase-*.patch)),
df3c2fe12ee9 bugfix for ilmbase: remove obsolete compiler options
Tony Theodore <tonyt@logyst.com>
parents: 1201
diff changeset
24 (cd '$(1)/$(ilmbase_SUBDIR)' && $(PATCH) -p1 -u) < $(PKG_PATCH))
2161
4c34b6001411 package openexr: fix for outdated config files in native ilmbase build
Tony Theodore <tonyt@logyst.com>
parents: 2153
diff changeset
25 echo 'echo $1' > '$(1)/$(ilmbase_SUBDIR)/config.sub'
1131
3f88f82599dc bugfix for package ilmbase (by Tony Theodore)
Volker Grabsch <vog@notjusthosting.com>
parents: 1130
diff changeset
26 cd '$(1)/$(ilmbase_SUBDIR)' && $(SHELL) ./configure \
3013
bcc26ffe9a0f use variable for --host and --build configure arguments
John W. Eaton <jwe@octave.org>
parents: 3012
diff changeset
27 --build='$(BUILD_SYSTEM)' \
2855
47558e958113 Allow static/shared libraries to be configured in top-level Makefile.
John W. Eaton <jwe@octave.org>
parents: 2525
diff changeset
28 $(ENABLE_SHARED_OR_STATIC) \
240
9a4d6e48157b new package: openexr (by Martin Lambers)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
29 --prefix='$(1)/ilmbase' \
9a4d6e48157b new package: openexr (by Martin Lambers)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
30 --enable-threading=no \
1130
a3541e7a62b0 bugfix for package ilmbase
Volker Grabsch <vog@notjusthosting.com>
parents: 1113
diff changeset
31 --disable-posix-sem \
a3541e7a62b0 bugfix for package ilmbase
Volker Grabsch <vog@notjusthosting.com>
parents: 1113
diff changeset
32 CONFIG_SHELL=$(SHELL)
240
9a4d6e48157b new package: openexr (by Martin Lambers)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
33 $(MAKE) -C '$(1)/$(ilmbase_SUBDIR)' -j '$(JOBS)' install \
9a4d6e48157b new package: openexr (by Martin Lambers)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
34 bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS=
9a4d6e48157b new package: openexr (by Martin Lambers)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
35 cd '$(1)' && ./configure \
3013
bcc26ffe9a0f use variable for --host and --build configure arguments
John W. Eaton <jwe@octave.org>
parents: 3012
diff changeset
36 $(HOST_AND_BUILD_CONFIGURE_OPTIONS) \
2855
47558e958113 Allow static/shared libraries to be configured in top-level Makefile.
John W. Eaton <jwe@octave.org>
parents: 2525
diff changeset
37 $(ENABLE_SHARED_OR_STATIC) \
3012
100e618349f7 Improve handling of prefix directories by defining HOST_PREFIX and
John W. Eaton <jwe@octave.org>
parents: 2855
diff changeset
38 --prefix='$(HOST_PREFIX)' \
240
9a4d6e48157b new package: openexr (by Martin Lambers)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
39 --disable-threading \
9a4d6e48157b new package: openexr (by Martin Lambers)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
40 --disable-posix-sem \
1854
31ae8c15001e bugfix for package openexr: ensure that ./configure uses the correct *-pkg-config
Volker Grabsch <vog@notjusthosting.com>
parents: 1853
diff changeset
41 --disable-ilmbasetest \
3031
951da75fd09c improve handling of cross tool prefix
John W. Eaton <jwe@octave.org>
parents: 3013
diff changeset
42 PKG_CONFIG='$(MXE_PKG_CONFIG)'
1853
ec0fad95841c improved comment
Volker Grabsch <vog@notjusthosting.com>
parents: 1582
diff changeset
43 # build the code generator manually
240
9a4d6e48157b new package: openexr (by Martin Lambers)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
44 cd '$(1)/IlmImf' && g++ \
9a4d6e48157b new package: openexr (by Martin Lambers)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
45 -I'$(1)/ilmbase/include/OpenEXR' \
9a4d6e48157b new package: openexr (by Martin Lambers)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
46 -L'$(1)/ilmbase/lib' \
9a4d6e48157b new package: openexr (by Martin Lambers)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
47 b44ExpLogTable.cpp \
2256
da0152b208dc package openexr: explicit pthreads dependency
Mark Brand <mabrand@mabrand.nl>
parents: 2161
diff changeset
48 -lImath -lHalf -lIex -lIlmThread -lpthread \
240
9a4d6e48157b new package: openexr (by Martin Lambers)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
49 -o b44ExpLogTable
9a4d6e48157b new package: openexr (by Martin Lambers)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
50 '$(1)/IlmImf/b44ExpLogTable' > '$(1)/IlmImf/b44ExpLogTable.h'
9a4d6e48157b new package: openexr (by Martin Lambers)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
51 $(MAKE) -C '$(1)' -j '$(JOBS)' install bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS=
9a4d6e48157b new package: openexr (by Martin Lambers)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
52 endef