annotate src/openexr.mk @ 1582:eb5def36aacb

fix missing dependencies
author Mark de Wever <m.de.wever@datawell.nl>
date Mon, 14 Feb 2011 20:26:33 +1100
parents df3c2fe12ee9
children ec0fad95841c
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
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 :=
1113
f1d6dd27aece update packages: ilmbase openexr imagemagick
Mark Brand <mabrand@mabrand.nl>
parents: 759
diff changeset
7 $(PKG)_VERSION := 1.7.0
f1d6dd27aece update packages: ilmbase openexr imagemagick
Mark Brand <mabrand@mabrand.nl>
parents: 759
diff changeset
8 $(PKG)_CHECKSUM := 91d0d4e69f06de956ec7e0710fc58ec0d4c4dc2b
306
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)
1582
eb5def36aacb fix missing dependencies
Mark de Wever <m.de.wever@datawell.nl>
parents: 1249
diff changeset
13 $(PKG)_DEPS := gcc ilmbase zlib
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)
1249
df3c2fe12ee9 bugfix for ilmbase: remove obsolete compiler options
Tony Theodore <tonyt@logyst.com>
parents: 1201
diff changeset
25 $(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
26 (cd '$(1)/$(ilmbase_SUBDIR)' && $(PATCH) -p1 -u) < $(PKG_PATCH))
1131
3f88f82599dc bugfix for package ilmbase (by Tony Theodore)
Volker Grabsch <vog@notjusthosting.com>
parents: 1130
diff changeset
27 cd '$(1)/$(ilmbase_SUBDIR)' && $(SHELL) ./configure \
240
9a4d6e48157b new package: openexr (by Martin Lambers)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
28 --disable-shared \
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 # wine confuses the cross-compiling detection, so set it explicitly
759
bf4bcb3370fa changed coding style: make "-i" always the first argument of $(SED) (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents: 714
diff changeset
36 $(SED) -i 's,cross_compiling=no,cross_compiling=yes,' '$(1)/configure'
240
9a4d6e48157b new package: openexr (by Martin Lambers)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
37 cd '$(1)' && ./configure \
9a4d6e48157b new package: openexr (by Martin Lambers)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
38 --host='$(TARGET)' \
9a4d6e48157b new package: openexr (by Martin Lambers)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
39 --disable-shared \
9a4d6e48157b new package: openexr (by Martin Lambers)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
40 --prefix='$(PREFIX)/$(TARGET)' \
9a4d6e48157b new package: openexr (by Martin Lambers)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
41 --disable-threading \
9a4d6e48157b new package: openexr (by Martin Lambers)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
42 --disable-posix-sem \
9a4d6e48157b new package: openexr (by Martin Lambers)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
43 --disable-ilmbasetest
9a4d6e48157b new package: openexr (by Martin Lambers)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
44 # 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
45 # generates a source file
9a4d6e48157b new package: openexr (by Martin Lambers)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
46 cd '$(1)/IlmImf' && g++ \
9a4d6e48157b new package: openexr (by Martin Lambers)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
47 -I'$(1)/ilmbase/include/OpenEXR' \
9a4d6e48157b new package: openexr (by Martin Lambers)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
48 -L'$(1)/ilmbase/lib' \
9a4d6e48157b new package: openexr (by Martin Lambers)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
49 b44ExpLogTable.cpp \
9a4d6e48157b new package: openexr (by Martin Lambers)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
50 -lImath -lHalf -lIex -lIlmThread \
9a4d6e48157b new package: openexr (by Martin Lambers)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
51 -o b44ExpLogTable
9a4d6e48157b new package: openexr (by Martin Lambers)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
52 '$(1)/IlmImf/b44ExpLogTable' > '$(1)/IlmImf/b44ExpLogTable.h'
9a4d6e48157b new package: openexr (by Martin Lambers)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
53 $(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
54 endef