Mercurial > mxe-octave
annotate src/ilmbase.mk @ 4066:0962acdde3be
builld: allow out of source build
* Makefile.in: add TOP_BUILD_DIR var and use TOP_DIR=srcdir, TOP_BUILD_DIR=builddir, modify paths to use TOP_DIR where needed
* binary-dist-rules.mk: use TOP_DIR and TOP_BUILD_DIR where needed
* makeinst-script.sh: use script path to determine TOPDIR, use TOPDIR where needed
* src/default-octave.mk: install octave-version to builddir
* src/stable-octave.mk: install octave-version to builddir
* src/octave.mk: install octave-version to builddir
* tools/set-mxe-env.sh.in: update fir builddir and srcdir use
author | John Donoghue |
---|---|
date | Wed, 23 Dec 2015 08:11:04 -0500 |
parents | a98f4ebb8a3c |
children | 2c3214a87b84 |
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 := |
3628
a98f4ebb8a3c
update imlbase, openexr
John Donoghue <john.donoghue@ieee.org>
parents:
3480
diff
changeset
|
6 $(PKG)_VERSION := 2.1.0 |
a98f4ebb8a3c
update imlbase, openexr
John Donoghue <john.donoghue@ieee.org>
parents:
3480
diff
changeset
|
7 $(PKG)_CHECKSUM := 306d76e7a2ac619c2f641f54b59dd95576525192 |
306
85ffa9259036
validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents:
266
diff
changeset
|
8 $(PKG)_SUBDIR := ilmbase-$($(PKG)_VERSION) |
85ffa9259036
validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents:
266
diff
changeset
|
9 $(PKG)_FILE := ilmbase-$($(PKG)_VERSION).tar.gz |
85ffa9259036
validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents:
266
diff
changeset
|
10 $(PKG)_URL := http://download.savannah.nongnu.org/releases/openexr/$($(PKG)_FILE) |
3048
5ef49fb3299d
treat gcc and binutils as build tools
John W. Eaton <jwe@octave.org>
parents:
3013
diff
changeset
|
11 $(PKG)_DEPS := |
236
e0589cbe2347
new package: ilmbase (by Martin Lambers)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
12 |
e0589cbe2347
new package: ilmbase (by Martin Lambers)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
13 define $(PKG)_UPDATE |
2525
4d0f3a9da57e
all packages: use $(WGET) portability variable
Tony Theodore <tonyt@logyst.com>
parents:
2365
diff
changeset
|
14 $(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
|
15 grep 'ilmbase-' | \ |
266
b94424e6c37f
improved the regexes for package version recognition
Volker Grabsch <vog@notjusthosting.com>
parents:
265
diff
changeset
|
16 $(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
|
17 head -1 |
e0589cbe2347
new package: ilmbase (by Martin Lambers)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
18 endef |
e0589cbe2347
new package: ilmbase (by Martin Lambers)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
19 |
e0589cbe2347
new package: ilmbase (by Martin Lambers)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
20 define $(PKG)_BUILD |
243
6c41860a7b65
enable win32 threading for package ilmbase
Volker Grabsch <vog@notjusthosting.com>
parents:
239
diff
changeset
|
21 # 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
|
22 $(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
|
23 $(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
|
24 $(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
|
25 echo '/* disabled */' > '$(1)/IlmThread/IlmThreadSemaphorePosixCompat.cpp' |
6c41860a7b65
enable win32 threading for package ilmbase
Volker Grabsch <vog@notjusthosting.com>
parents:
239
diff
changeset
|
26 # 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
|
27 # 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
|
28 cd '$(1)' && $(SHELL) ./configure \ |
3013
bcc26ffe9a0f
use variable for --host and --build configure arguments
John W. Eaton <jwe@octave.org>
parents:
3012
diff
changeset
|
29 $(HOST_AND_BUILD_CONFIGURE_OPTIONS) \ |
2855
47558e958113
Allow static/shared libraries to be configured in top-level Makefile.
John W. Eaton <jwe@octave.org>
parents:
2525
diff
changeset
|
30 $(ENABLE_SHARED_OR_STATIC) \ |
3012
100e618349f7
Improve handling of prefix directories by defining HOST_PREFIX and
John W. Eaton <jwe@octave.org>
parents:
2855
diff
changeset
|
31 --prefix='$(HOST_PREFIX)' \ |
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 |