annotate src/ilmbase.mk @ 2525:4d0f3a9da57e

all packages: use $(WGET) portability variable
author Tony Theodore <tonyt@logyst.com>
date Wed, 09 May 2012 01:16:05 +1000
parents b5321bdec505
children 47558e958113
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 :=
1113
f1d6dd27aece update packages: ilmbase openexr imagemagick
Mark Brand <mabrand@mabrand.nl>
parents: 930
diff changeset
6 $(PKG)_CHECKSUM := fe6a910a90cde80137153e25e175e2b211beda36
306
85ffa9259036 validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents: 266
diff changeset
7 $(PKG)_SUBDIR := ilmbase-$($(PKG)_VERSION)
85ffa9259036 validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents: 266
diff changeset
8 $(PKG)_FILE := ilmbase-$($(PKG)_VERSION).tar.gz
85ffa9259036 validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents: 266
diff changeset
9 $(PKG)_URL := http://download.savannah.nongnu.org/releases/openexr/$($(PKG)_FILE)
85ffa9259036 validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents: 266
diff changeset
10 $(PKG)_DEPS := gcc
236
e0589cbe2347 new package: ilmbase (by Martin Lambers)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
11
e0589cbe2347 new package: ilmbase (by Martin Lambers)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
12 define $(PKG)_UPDATE
2525
4d0f3a9da57e all packages: use $(WGET) portability variable
Tony Theodore <tonyt@logyst.com>
parents: 2365
diff changeset
13 $(WGET) -q -O- 'http://www.openexr.com/downloads.html' | \
236
e0589cbe2347 new package: ilmbase (by Martin Lambers)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
14 grep 'ilmbase-' | \
266
b94424e6c37f improved the regexes for package version recognition
Volker Grabsch <vog@notjusthosting.com>
parents: 265
diff changeset
15 $(SED) -n 's,.*ilmbase-\([0-9][^>]*\)\.tar.*,\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 \
236
e0589cbe2347 new package: ilmbase (by Martin Lambers)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
28 --host='$(TARGET)' \
2153
e4c83fa61a5b replaced $(BUILD) with a more direct and less brittle construct
Volker Grabsch <vog@notjusthosting.com>
parents: 2148
diff changeset
29 --build="`config.guess`" \
236
e0589cbe2347 new package: ilmbase (by Martin Lambers)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
30 --disable-shared \
e0589cbe2347 new package: ilmbase (by Martin Lambers)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
31 --prefix='$(PREFIX)/$(TARGET)' \
1130
a3541e7a62b0 bugfix for package ilmbase
Volker Grabsch <vog@notjusthosting.com>
parents: 1113
diff changeset
32 --disable-threading \
a3541e7a62b0 bugfix for package ilmbase
Volker Grabsch <vog@notjusthosting.com>
parents: 1113
diff changeset
33 CONFIG_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