annotate src/openexr.mk @ 2988:aca8511e7751

qt.mk: link to correct files in bin directory
author John W. Eaton <jwe@octave.org>
date Thu, 16 May 2013 13:32:57 -0400
parents 47558e958113
children 100e618349f7
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: 2256
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 := openexr
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: 759
diff changeset
6 $(PKG)_CHECKSUM := 91d0d4e69f06de956ec7e0710fc58ec0d4c4dc2b
306
85ffa9259036 validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents: 266
diff changeset
7 $(PKG)_SUBDIR := openexr-$($(PKG)_VERSION)
85ffa9259036 validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents: 266
diff changeset
8 $(PKG)_FILE := openexr-$($(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)
2256
da0152b208dc package openexr: explicit pthreads dependency
Mark Brand <mabrand@mabrand.nl>
parents: 2161
diff changeset
10 $(PKG)_DEPS := gcc ilmbase pthreads zlib
240
9a4d6e48157b new package: openexr (by Martin Lambers)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
11
9a4d6e48157b new package: openexr (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' | \
240
9a4d6e48157b new package: openexr (by Martin Lambers)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
14 grep 'openexr-' | \
266
b94424e6c37f improved the regexes for package version recognition
Volker Grabsch <vog@notjusthosting.com>
parents: 265
diff changeset
15 $(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
16 head -1
9a4d6e48157b new package: openexr (by Martin Lambers)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
17 endef
9a4d6e48157b new package: openexr (by Martin Lambers)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
18
9a4d6e48157b new package: openexr (by Martin Lambers)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
19 define $(PKG)_BUILD
9a4d6e48157b new package: openexr (by Martin Lambers)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
20 # unpack and build a native version of ilmbase
9a4d6e48157b new package: openexr (by Martin Lambers)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
21 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
22 $(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
23 (cd '$(1)/$(ilmbase_SUBDIR)' && $(PATCH) -p1 -u) < $(PKG_PATCH))
2161
4c34b6001411 package openexr: fix for outdated config files in native ilmbase build
Tony Theodore <tonyt@logyst.com>
parents: 2153
diff changeset
24 echo 'echo $1' > '$(1)/$(ilmbase_SUBDIR)/config.sub'
1131
3f88f82599dc bugfix for package ilmbase (by Tony Theodore)
Volker Grabsch <vog@notjusthosting.com>
parents: 1130
diff changeset
25 cd '$(1)/$(ilmbase_SUBDIR)' && $(SHELL) ./configure \
2161
4c34b6001411 package openexr: fix for outdated config files in native ilmbase build
Tony Theodore <tonyt@logyst.com>
parents: 2153
diff changeset
26 --build="`config.guess`" \
2855
47558e958113 Allow static/shared libraries to be configured in top-level Makefile.
John W. Eaton <jwe@octave.org>
parents: 2525
diff changeset
27 $(ENABLE_SHARED_OR_STATIC) \
240
9a4d6e48157b new package: openexr (by Martin Lambers)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
28 --prefix='$(1)/ilmbase' \
9a4d6e48157b new package: openexr (by Martin Lambers)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
29 --enable-threading=no \
1130
a3541e7a62b0 bugfix for package ilmbase
Volker Grabsch <vog@notjusthosting.com>
parents: 1113
diff changeset
30 --disable-posix-sem \
a3541e7a62b0 bugfix for package ilmbase
Volker Grabsch <vog@notjusthosting.com>
parents: 1113
diff changeset
31 CONFIG_SHELL=$(SHELL)
240
9a4d6e48157b new package: openexr (by Martin Lambers)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
32 $(MAKE) -C '$(1)/$(ilmbase_SUBDIR)' -j '$(JOBS)' install \
9a4d6e48157b new package: openexr (by Martin Lambers)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
33 bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS=
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)' \
2153
e4c83fa61a5b replaced $(BUILD) with a more direct and less brittle construct
Volker Grabsch <vog@notjusthosting.com>
parents: 2148
diff changeset
36 --build="`config.guess`" \
2855
47558e958113 Allow static/shared libraries to be configured in top-level Makefile.
John W. Eaton <jwe@octave.org>
parents: 2525
diff changeset
37 $(ENABLE_SHARED_OR_STATIC) \
240
9a4d6e48157b new package: openexr (by Martin Lambers)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
38 --prefix='$(PREFIX)/$(TARGET)' \
9a4d6e48157b new package: openexr (by Martin Lambers)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
39 --disable-threading \
9a4d6e48157b new package: openexr (by Martin Lambers)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
40 --disable-posix-sem \
1854
31ae8c15001e bugfix for package openexr: ensure that ./configure uses the correct *-pkg-config
Volker Grabsch <vog@notjusthosting.com>
parents: 1853
diff changeset
41 --disable-ilmbasetest \
31ae8c15001e bugfix for package openexr: ensure that ./configure uses the correct *-pkg-config
Volker Grabsch <vog@notjusthosting.com>
parents: 1853
diff changeset
42 PKG_CONFIG='$(PREFIX)/bin/$(TARGET)-pkg-config'
1853
ec0fad95841c improved comment
Volker Grabsch <vog@notjusthosting.com>
parents: 1582
diff changeset
43 # build the code generator manually
240
9a4d6e48157b new package: openexr (by Martin Lambers)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
44 cd '$(1)/IlmImf' && g++ \
9a4d6e48157b new package: openexr (by Martin Lambers)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
45 -I'$(1)/ilmbase/include/OpenEXR' \
9a4d6e48157b new package: openexr (by Martin Lambers)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
46 -L'$(1)/ilmbase/lib' \
9a4d6e48157b new package: openexr (by Martin Lambers)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
47 b44ExpLogTable.cpp \
2256
da0152b208dc package openexr: explicit pthreads dependency
Mark Brand <mabrand@mabrand.nl>
parents: 2161
diff changeset
48 -lImath -lHalf -lIex -lIlmThread -lpthread \
240
9a4d6e48157b new package: openexr (by Martin Lambers)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
49 -o b44ExpLogTable
9a4d6e48157b new package: openexr (by Martin Lambers)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
50 '$(1)/IlmImf/b44ExpLogTable' > '$(1)/IlmImf/b44ExpLogTable.h'
9a4d6e48157b new package: openexr (by Martin Lambers)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
51 $(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
52 endef