annotate src/openexr.mk @ 641:dab071eac9c0

simplified file markers
author Volker Grabsch <vog@notjusthosting.com>
date Sat, 16 Jan 2010 23:02:02 +0100
parents e9afec55fd6b
children 29f1ba4559ae
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.
dab071eac9c0 simplified file markers
Volker Grabsch <vog@notjusthosting.com>
parents: 448
diff changeset
2 # See doc/index.html or doc/README 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
240
9a4d6e48157b new package: openexr (by Martin Lambers)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
4 # OpenEXR
306
85ffa9259036 validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents: 266
diff changeset
5 PKG := openexr
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.6.1
85ffa9259036 validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents: 266
diff changeset
8 $(PKG)_CHECKSUM := b3650e6542f0e09daadb2d467425530bc8eec333
85ffa9259036 validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents: 266
diff changeset
9 $(PKG)_SUBDIR := openexr-$($(PKG)_VERSION)
85ffa9259036 validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents: 266
diff changeset
10 $(PKG)_FILE := openexr-$($(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 ilmbase
240
9a4d6e48157b new package: openexr (by Martin Lambers)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
14
9a4d6e48157b new package: openexr (by Martin Lambers)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
15 define $(PKG)_UPDATE
9a4d6e48157b new package: openexr (by Martin Lambers)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
16 wget -q -O- 'http://www.openexr.com/downloads.html' | \
9a4d6e48157b new package: openexr (by Martin Lambers)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
17 grep 'openexr-' | \
266
b94424e6c37f improved the regexes for package version recognition
Volker Grabsch <vog@notjusthosting.com>
parents: 265
diff changeset
18 $(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
19 head -1
9a4d6e48157b new package: openexr (by Martin Lambers)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
20 endef
9a4d6e48157b new package: openexr (by Martin Lambers)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
21
9a4d6e48157b new package: openexr (by Martin Lambers)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
22 define $(PKG)_BUILD
9a4d6e48157b new package: openexr (by Martin Lambers)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
23 # unpack and build a native version of ilmbase
9a4d6e48157b new package: openexr (by Martin Lambers)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
24 cd '$(1)' && $(call UNPACK_PKG_ARCHIVE,ilmbase)
9a4d6e48157b new package: openexr (by Martin Lambers)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
25 cd '$(1)/$(ilmbase_SUBDIR)' && ./configure \
9a4d6e48157b new package: openexr (by Martin Lambers)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
26 --disable-shared \
9a4d6e48157b new package: openexr (by Martin Lambers)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
27 --prefix='$(1)/ilmbase' \
9a4d6e48157b new package: openexr (by Martin Lambers)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
28 --enable-threading=no \
9a4d6e48157b new package: openexr (by Martin Lambers)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
29 --disable-posix-sem
9a4d6e48157b new package: openexr (by Martin Lambers)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
30 $(MAKE) -C '$(1)/$(ilmbase_SUBDIR)' -j '$(JOBS)' install \
9a4d6e48157b new package: openexr (by Martin Lambers)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
31 bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS=
9a4d6e48157b new package: openexr (by Martin Lambers)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
32 # wine confuses the cross-compiling detection, so set it explicitly
9a4d6e48157b new package: openexr (by Martin Lambers)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
33 $(SED) 's,cross_compiling=no,cross_compiling=yes,' -i '$(1)/configure'
9a4d6e48157b new package: openexr (by Martin Lambers)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
34 cd '$(1)' && ./configure \
9a4d6e48157b new package: openexr (by Martin Lambers)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
35 --host='$(TARGET)' \
9a4d6e48157b new package: openexr (by Martin Lambers)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
36 --disable-shared \
9a4d6e48157b new package: openexr (by Martin Lambers)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
37 --prefix='$(PREFIX)/$(TARGET)' \
9a4d6e48157b new package: openexr (by Martin Lambers)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
38 --disable-threading \
9a4d6e48157b new package: openexr (by Martin Lambers)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
39 --disable-posix-sem \
9a4d6e48157b new package: openexr (by Martin Lambers)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
40 --disable-ilmbasetest
9a4d6e48157b new package: openexr (by Martin Lambers)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
41 # do the first build step by hand, because a program is built that
9a4d6e48157b new package: openexr (by Martin Lambers)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
42 # generates a source file
9a4d6e48157b new package: openexr (by Martin Lambers)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
43 cd '$(1)/IlmImf' && g++ \
9a4d6e48157b new package: openexr (by Martin Lambers)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
44 -I'$(1)/ilmbase/include/OpenEXR' \
9a4d6e48157b new package: openexr (by Martin Lambers)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
45 -L'$(1)/ilmbase/lib' \
9a4d6e48157b new package: openexr (by Martin Lambers)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
46 b44ExpLogTable.cpp \
9a4d6e48157b new package: openexr (by Martin Lambers)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
47 -lImath -lHalf -lIex -lIlmThread \
9a4d6e48157b new package: openexr (by Martin Lambers)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
48 -o b44ExpLogTable
9a4d6e48157b new package: openexr (by Martin Lambers)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
49 '$(1)/IlmImf/b44ExpLogTable' > '$(1)/IlmImf/b44ExpLogTable.h'
9a4d6e48157b new package: openexr (by Martin Lambers)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
50 $(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
51 endef