annotate src/ilmbase.mk @ 7207:9ed6500e56d3 default tip @

maint: Merge release to default.
author Markus Mützel <markus.muetzel@gmx.de>
date Fri, 17 May 2024 20:16:41 +0200
parents 9855517e4522
children
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: 2153
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 := ilmbase
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 :=
5236
9855517e4522 * src/ilmbase.mk: update to 2.4.0, update refs to use github
John Donoghue
parents: 5170
diff changeset
6 $(PKG)_VERSION := 2.4.0
9855517e4522 * src/ilmbase.mk: update to 2.4.0, update refs to use github
John Donoghue
parents: 5170
diff changeset
7 $(PKG)_CHECKSUM := 0b9a24b8fa6b3f7f1d8813e91234308d3e43d10f
306
85ffa9259036 validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents: 266
diff changeset
8 $(PKG)_SUBDIR := ilmbase-$($(PKG)_VERSION)
85ffa9259036 validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents: 266
diff changeset
9 $(PKG)_FILE := ilmbase-$($(PKG)_VERSION).tar.gz
5236
9855517e4522 * src/ilmbase.mk: update to 2.4.0, update refs to use github
John Donoghue
parents: 5170
diff changeset
10 $(PKG)_URL := https://github.com/openexr/openexr/archive/v$($(PKG)_VERSION).tar.gz
3048
5ef49fb3299d treat gcc and binutils as build tools
John W. Eaton <jwe@octave.org>
parents: 3013
diff changeset
11 $(PKG)_DEPS :=
236
e0589cbe2347 new package: ilmbase (by Martin Lambers)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
12
e0589cbe2347 new package: ilmbase (by Martin Lambers)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
13 define $(PKG)_UPDATE
5236
9855517e4522 * src/ilmbase.mk: update to 2.4.0, update refs to use github
John Donoghue
parents: 5170
diff changeset
14 $(WGET) -q -O- 'https://github.com/openexr/openexr/tags' | \
9855517e4522 * src/ilmbase.mk: update to 2.4.0, update refs to use github
John Donoghue
parents: 5170
diff changeset
15 $(SED) -n 's|.*releases/tag/v\([^"]*\).*|\1|p' | \
236
e0589cbe2347 new package: ilmbase (by Martin Lambers)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
16 head -1
e0589cbe2347 new package: ilmbase (by Martin Lambers)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
17 endef
e0589cbe2347 new package: ilmbase (by Martin Lambers)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
18
e0589cbe2347 new package: ilmbase (by Martin Lambers)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
19 define $(PKG)_BUILD
243
6c41860a7b65 enable win32 threading for package ilmbase
Volker Grabsch <vog@notjusthosting.com>
parents: 239
diff changeset
20 # build the win32 thread sources instead of the posix thread sources
930
2fee81bd8a39 corrected regexes in SED actions for package ilmbase
Volker Grabsch <vog@notjusthosting.com>
parents: 759
diff changeset
21 $(SED) -i 's,IlmThreadPosix\.,IlmThreadWin32.,' '$(1)/IlmThread/Makefile.in'
2fee81bd8a39 corrected regexes in SED actions for package ilmbase
Volker Grabsch <vog@notjusthosting.com>
parents: 759
diff changeset
22 $(SED) -i 's,IlmThreadSemaphorePosix\.,IlmThreadSemaphoreWin32.,' '$(1)/IlmThread/Makefile.in'
2fee81bd8a39 corrected regexes in SED actions for package ilmbase
Volker Grabsch <vog@notjusthosting.com>
parents: 759
diff changeset
23 $(SED) -i 's,IlmThreadMutexPosix\.,IlmThreadMutexWin32.,' '$(1)/IlmThread/Makefile.in'
243
6c41860a7b65 enable win32 threading for package ilmbase
Volker Grabsch <vog@notjusthosting.com>
parents: 239
diff changeset
24 echo '/* disabled */' > '$(1)/IlmThread/IlmThreadSemaphorePosixCompat.cpp'
6c41860a7b65 enable win32 threading for package ilmbase
Volker Grabsch <vog@notjusthosting.com>
parents: 239
diff changeset
25 # Because of the previous changes, '--disable-threading' will not disable
6c41860a7b65 enable win32 threading for package ilmbase
Volker Grabsch <vog@notjusthosting.com>
parents: 239
diff changeset
26 # threading. It will just disable the unwanted check for pthread.
1131
3f88f82599dc bugfix for package ilmbase (by Tony Theodore)
Volker Grabsch <vog@notjusthosting.com>
parents: 1130
diff changeset
27 cd '$(1)' && $(SHELL) ./configure \
3013
bcc26ffe9a0f use variable for --host and --build configure arguments
John W. Eaton <jwe@octave.org>
parents: 3012
diff changeset
28 $(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
29 $(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
30 --prefix='$(HOST_PREFIX)' \
1130
a3541e7a62b0 bugfix for package ilmbase
Volker Grabsch <vog@notjusthosting.com>
parents: 1113
diff changeset
31 --disable-threading \
5170
2c3214a87b84 * src/ilmbase.mk: update to v2.2.1
John Donoghue
parents: 3628
diff changeset
32 CONFIG_SHELL=$(SHELL) \
2c3214a87b84 * src/ilmbase.mk: update to v2.2.1
John Donoghue
parents: 3628
diff changeset
33 SHELL=$(SHELL)
236
e0589cbe2347 new package: ilmbase (by Martin Lambers)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
34 # do the first build step by hand, because programs are built that
e0589cbe2347 new package: ilmbase (by Martin Lambers)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
35 # generate source files
e0589cbe2347 new package: ilmbase (by Martin Lambers)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
36 cd '$(1)/Half' && g++ eLut.cpp -o eLut
e0589cbe2347 new package: ilmbase (by Martin Lambers)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
37 '$(1)/Half/eLut' > '$(1)/eLut.h'
e0589cbe2347 new package: ilmbase (by Martin Lambers)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
38 cd '$(1)/Half' && g++ toFloat.cpp -o toFloat
e0589cbe2347 new package: ilmbase (by Martin Lambers)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
39 '$(1)/Half/toFloat' > '$(1)/toFloat.h'
239
2a4b0c3def9b simplified build rules of package ilmbase
Volker Grabsch <vog@notjusthosting.com>
parents: 236
diff changeset
40 $(MAKE) -C '$(1)' -j '$(JOBS)' install bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS=
236
e0589cbe2347 new package: ilmbase (by Martin Lambers)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
41 endef