Mercurial > mxe-octave
annotate src/ilmbase.mk @ 306:85ffa9259036
validate downloads using SHA-1 checksums
author | Volker Grabsch <vog@notjusthosting.com> |
---|---|
date | Sun, 05 Apr 2009 14:00:17 +0200 |
parents | b94424e6c37f |
children | d2a6561bcb6d |
rev | line source |
---|---|
236
e0589cbe2347
new package: ilmbase (by Martin Lambers)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
1 # IlmBase |
e0589cbe2347
new package: ilmbase (by Martin Lambers)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
2 |
306
85ffa9259036
validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents:
266
diff
changeset
|
3 PKG := ilmbase |
85ffa9259036
validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents:
266
diff
changeset
|
4 $(PKG)_VERSION := 1.0.1 |
85ffa9259036
validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents:
266
diff
changeset
|
5 $(PKG)_CHECKSUM := 143adc547be83c6df75831ae957eef4b2706c9c0 |
85ffa9259036
validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents:
266
diff
changeset
|
6 $(PKG)_SUBDIR := ilmbase-$($(PKG)_VERSION) |
85ffa9259036
validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents:
266
diff
changeset
|
7 $(PKG)_FILE := ilmbase-$($(PKG)_VERSION).tar.gz |
85ffa9259036
validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents:
266
diff
changeset
|
8 $(PKG)_WEBSITE := http://www.openexr.com/ |
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) |
85ffa9259036
validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents:
266
diff
changeset
|
10 $(PKG)_DEPS := gcc |
236
e0589cbe2347
new package: ilmbase (by Martin Lambers)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
11 |
e0589cbe2347
new package: ilmbase (by Martin Lambers)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
12 define $(PKG)_UPDATE |
e0589cbe2347
new package: ilmbase (by Martin Lambers)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
13 wget -q -O- 'http://www.openexr.com/downloads.html' | \ |
e0589cbe2347
new package: ilmbase (by Martin Lambers)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
14 grep 'ilmbase-' | \ |
266
b94424e6c37f
improved the regexes for package version recognition
Volker Grabsch <vog@notjusthosting.com>
parents:
265
diff
changeset
|
15 $(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
|
16 head -1 |
e0589cbe2347
new package: ilmbase (by Martin Lambers)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
17 endef |
e0589cbe2347
new package: ilmbase (by Martin Lambers)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
18 |
e0589cbe2347
new package: ilmbase (by Martin Lambers)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
19 define $(PKG)_BUILD |
e0589cbe2347
new package: ilmbase (by Martin Lambers)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
20 # 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
|
21 $(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
|
22 # 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
|
23 $(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
|
24 $(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
|
25 $(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
|
26 echo '/* disabled */' > '$(1)/IlmThread/IlmThreadSemaphorePosixCompat.cpp' |
6c41860a7b65
enable win32 threading for package ilmbase
Volker Grabsch <vog@notjusthosting.com>
parents:
239
diff
changeset
|
27 # 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
|
28 # 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
|
29 cd '$(1)' && ./configure \ |
e0589cbe2347
new package: ilmbase (by Martin Lambers)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
30 --host='$(TARGET)' \ |
e0589cbe2347
new package: ilmbase (by Martin Lambers)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
31 --disable-shared \ |
e0589cbe2347
new package: ilmbase (by Martin Lambers)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
32 --prefix='$(PREFIX)/$(TARGET)' \ |
243
6c41860a7b65
enable win32 threading for package ilmbase
Volker Grabsch <vog@notjusthosting.com>
parents:
239
diff
changeset
|
33 --disable-threading |
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 |