annotate src/ilmbase.mk @ 714:29f1ba4559ae

point consequently to "doc/index.html" instead of "doc/index.html or doc/README"
author Volker Grabsch <vog@notjusthosting.com>
date Mon, 08 Feb 2010 00:58:06 +0100
parents dab071eac9c0
children bf4bcb3370fa
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
641
dab071eac9c0 simplified file markers
Volker Grabsch <vog@notjusthosting.com>
parents: 448
diff changeset
1 # This file is part of mingw-cross-env.
714
29f1ba4559ae point consequently to "doc/index.html" instead of "doc/index.html or doc/README"
Volker Grabsch <vog@notjusthosting.com>
parents: 641
diff changeset
2 # See doc/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
236
e0589cbe2347 new package: ilmbase (by Martin Lambers)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
4 # IlmBase
306
85ffa9259036 validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents: 266
diff changeset
5 PKG := ilmbase
448
e9afec55fd6b improved version recognition, enable the notation of ignored (bad) package versions
Volker Grabsch <vog@notjusthosting.com>
parents: 417
diff changeset
6 $(PKG)_IGNORE :=
306
85ffa9259036 validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents: 266
diff changeset
7 $(PKG)_VERSION := 1.0.1
85ffa9259036 validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents: 266
diff changeset
8 $(PKG)_CHECKSUM := 143adc547be83c6df75831ae957eef4b2706c9c0
85ffa9259036 validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents: 266
diff changeset
9 $(PKG)_SUBDIR := ilmbase-$($(PKG)_VERSION)
85ffa9259036 validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents: 266
diff changeset
10 $(PKG)_FILE := ilmbase-$($(PKG)_VERSION).tar.gz
85ffa9259036 validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents: 266
diff changeset
11 $(PKG)_WEBSITE := http://www.openexr.com/
85ffa9259036 validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents: 266
diff changeset
12 $(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
13 $(PKG)_DEPS := gcc
236
e0589cbe2347 new package: ilmbase (by Martin Lambers)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
14
e0589cbe2347 new package: ilmbase (by Martin Lambers)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
15 define $(PKG)_UPDATE
e0589cbe2347 new package: ilmbase (by Martin Lambers)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
16 wget -q -O- 'http://www.openexr.com/downloads.html' | \
e0589cbe2347 new package: ilmbase (by Martin Lambers)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
17 grep 'ilmbase-' | \
266
b94424e6c37f improved the regexes for package version recognition
Volker Grabsch <vog@notjusthosting.com>
parents: 265
diff changeset
18 $(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
19 head -1
e0589cbe2347 new package: ilmbase (by Martin Lambers)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
20 endef
e0589cbe2347 new package: ilmbase (by Martin Lambers)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
21
e0589cbe2347 new package: ilmbase (by Martin Lambers)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
22 define $(PKG)_BUILD
e0589cbe2347 new package: ilmbase (by Martin Lambers)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
23 # wine confuses the cross-compiling detection, so set it explicitly
e0589cbe2347 new package: ilmbase (by Martin Lambers)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
24 $(SED) 's,cross_compiling=no,cross_compiling=yes,' -i '$(1)/configure'
243
6c41860a7b65 enable win32 threading for package ilmbase
Volker Grabsch <vog@notjusthosting.com>
parents: 239
diff changeset
25 # build the win32 thread sources instead of the posix thread sources
6c41860a7b65 enable win32 threading for package ilmbase
Volker Grabsch <vog@notjusthosting.com>
parents: 239
diff changeset
26 $(SED) 's,IlmThreadPosix\.,IlmThreadWin32\.,' -i '$(1)/IlmThread/Makefile.in'
6c41860a7b65 enable win32 threading for package ilmbase
Volker Grabsch <vog@notjusthosting.com>
parents: 239
diff changeset
27 $(SED) 's,IlmThreadSemaphorePosix\.,IlmThreadSemaphoreWin32\.,' -i '$(1)/IlmThread/Makefile.in'
6c41860a7b65 enable win32 threading for package ilmbase
Volker Grabsch <vog@notjusthosting.com>
parents: 239
diff changeset
28 $(SED) 's,IlmThreadMutexPosix\.,IlmThreadMutexWin32\.,' -i '$(1)/IlmThread/Makefile.in'
6c41860a7b65 enable win32 threading for package ilmbase
Volker Grabsch <vog@notjusthosting.com>
parents: 239
diff changeset
29 echo '/* disabled */' > '$(1)/IlmThread/IlmThreadSemaphorePosixCompat.cpp'
6c41860a7b65 enable win32 threading for package ilmbase
Volker Grabsch <vog@notjusthosting.com>
parents: 239
diff changeset
30 # 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
31 # threading. It will just disable the unwanted check for pthread.
236
e0589cbe2347 new package: ilmbase (by Martin Lambers)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
32 cd '$(1)' && ./configure \
e0589cbe2347 new package: ilmbase (by Martin Lambers)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
33 --host='$(TARGET)' \
e0589cbe2347 new package: ilmbase (by Martin Lambers)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
34 --disable-shared \
e0589cbe2347 new package: ilmbase (by Martin Lambers)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
35 --prefix='$(PREFIX)/$(TARGET)' \
243
6c41860a7b65 enable win32 threading for package ilmbase
Volker Grabsch <vog@notjusthosting.com>
parents: 239
diff changeset
36 --disable-threading
236
e0589cbe2347 new package: ilmbase (by Martin Lambers)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
37 # 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
38 # generate source files
e0589cbe2347 new package: ilmbase (by Martin Lambers)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
39 cd '$(1)/Half' && g++ eLut.cpp -o eLut
e0589cbe2347 new package: ilmbase (by Martin Lambers)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
40 '$(1)/Half/eLut' > '$(1)/eLut.h'
e0589cbe2347 new package: ilmbase (by Martin Lambers)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
41 cd '$(1)/Half' && g++ toFloat.cpp -o toFloat
e0589cbe2347 new package: ilmbase (by Martin Lambers)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
42 '$(1)/Half/toFloat' > '$(1)/toFloat.h'
239
2a4b0c3def9b simplified build rules of package ilmbase
Volker Grabsch <vog@notjusthosting.com>
parents: 236
diff changeset
43 $(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
44 endef