Mercurial > mxe-octave
annotate src/vtk.mk @ 4355:7f5714e37725
gnupplot: use -std=gnu++11 option when compiling gnuplot for mingw
* src/gnuplot add -std=gnu++11 to CXX
author | John D |
---|---|
date | Thu, 23 Feb 2017 14:08:40 -0500 |
parents | 13be64f9f16d |
children | d862fd40cc42 |
rev | line source |
---|---|
2333
f653602a0500
Rebrand to new project name MXE
Volker Grabsch <vog@notjusthosting.com>
parents:
2329
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. |
2061 | 3 |
4 PKG := vtk | |
5 $(PKG)_IGNORE := | |
3480
13be64f9f16d
move version info from index.html to src/*.mk files
John W. Eaton <jwe@octave.org>
parents:
2707
diff
changeset
|
6 $(PKG)_VERSION := 5.8.0 |
2061 | 7 $(PKG)_CHECKSUM := ece52f4fa92811fe927581e60ecb39a8a5f68cd9 |
8 $(PKG)_SUBDIR := VTK | |
9 $(PKG)_FILE := $(PKG)-$($(PKG)_VERSION).tar.gz | |
2367
f4f7bd9a7a17
Bugfix: Don't make use of outdated $(PKG)_WEBSITE variables
Volker Grabsch <vog@notjusthosting.com>
parents:
2365
diff
changeset
|
10 $(PKG)_URL := http://www.vtk.org/files/release/5.8/$($(PKG)_FILE) |
2061 | 11 $(PKG)_DEPS := qt expat freetype jpeg libxml2 libpng tiff zlib libodbc++ postgresql |
12 | |
13 define $(PKG)_UPDATE | |
2525
4d0f3a9da57e
all packages: use $(WGET) portability variable
Tony Theodore <tonyt@logyst.com>
parents:
2367
diff
changeset
|
14 $(WGET) -q -O- 'http://vtk.org/gitweb?p=VTK.git;a=tags' | \ |
2065
2c82136641c3
package vtk: add update macro
Mark Brand <mabrand@mabrand.nl>
parents:
2063
diff
changeset
|
15 grep 'refs/tags/v[0-9.]*"' | \ |
2c82136641c3
package vtk: add update macro
Mark Brand <mabrand@mabrand.nl>
parents:
2063
diff
changeset
|
16 $(SED) 's,.*refs/tags/v\(.*\)".*,\1,g;' | \ |
2c82136641c3
package vtk: add update macro
Mark Brand <mabrand@mabrand.nl>
parents:
2063
diff
changeset
|
17 head -1 |
2061 | 18 endef |
19 | |
20 define $(PKG)_BUILD | |
2062
e251e813dbb8
vtk patch for building without wine
Muellni <mmuellen@gmx.de>
parents:
2061
diff
changeset
|
21 |
2063
3623b7b968d0
package vtk: consolidate patch file and add tools target
Muellni <mmuellen@gmx.de>
parents:
2062
diff
changeset
|
22 # first we need a native build to create the compile tools |
2061 | 23 mkdir '$(1)/native_build' |
2120
b50bbb325aa7
package vtk: disable gui components in native build
Tony Theodore <tonyt@logyst.com>
parents:
2111
diff
changeset
|
24 cd '$(1)/native_build' && cmake \ |
b50bbb325aa7
package vtk: disable gui components in native build
Tony Theodore <tonyt@logyst.com>
parents:
2111
diff
changeset
|
25 -DBUILD_TESTING=FALSE \ |
b50bbb325aa7
package vtk: disable gui components in native build
Tony Theodore <tonyt@logyst.com>
parents:
2111
diff
changeset
|
26 -DOPENGL_INCLUDE_DIR='$(1)/Utilities/ParseOGLExt/headers' \ |
b50bbb325aa7
package vtk: disable gui components in native build
Tony Theodore <tonyt@logyst.com>
parents:
2111
diff
changeset
|
27 -DVTK_USE_RENDERING=FALSE \ |
b50bbb325aa7
package vtk: disable gui components in native build
Tony Theodore <tonyt@logyst.com>
parents:
2111
diff
changeset
|
28 .. |
2329
466e77a78672
Fix annoying whitespaces at EOL
Volker Grabsch <vog@notjusthosting.com>
parents:
2121
diff
changeset
|
29 |
2063
3623b7b968d0
package vtk: consolidate patch file and add tools target
Muellni <mmuellen@gmx.de>
parents:
2062
diff
changeset
|
30 # only the newly created CompileTools target need to be built |
3623b7b968d0
package vtk: consolidate patch file and add tools target
Muellni <mmuellen@gmx.de>
parents:
2062
diff
changeset
|
31 $(MAKE) -C '$(1)/native_build' -j '$(JOBS)' VERBOSE=1 CompileTools |
2329
466e77a78672
Fix annoying whitespaces at EOL
Volker Grabsch <vog@notjusthosting.com>
parents:
2121
diff
changeset
|
32 |
2121
d4e14e4508f2
package vtk:disable directx detection
Tony Theodore <tonyt@logyst.com>
parents:
2120
diff
changeset
|
33 # DirectX is detected on Mac OSX but requires a DX10 header - dxgi.h |
d4e14e4508f2
package vtk:disable directx detection
Tony Theodore <tonyt@logyst.com>
parents:
2120
diff
changeset
|
34 rm '$(1)/CMake/FindDirectX.cmake' |
2329
466e77a78672
Fix annoying whitespaces at EOL
Volker Grabsch <vog@notjusthosting.com>
parents:
2121
diff
changeset
|
35 |
2062
e251e813dbb8
vtk patch for building without wine
Muellni <mmuellen@gmx.de>
parents:
2061
diff
changeset
|
36 # now for the cross compilation |
2061 | 37 mkdir '$(1)/cross_build' |
38 cd '$(1)/cross_build' && cmake \ | |
39 -C '$(1)/TryRunResults.cmake'\ | |
40 -DCMAKE_TOOLCHAIN_FILE='$(CMAKE_TOOLCHAIN_FILE)'\ | |
41 -DBUILD_TESTING=FALSE\ | |
42 -DVTKCompileTools_DIR='$(1)/native_build'\ | |
43 -DVTK_USE_SYSTEM_EXPAT=TRUE\ | |
44 -DVTK_USE_SYSTEM_FREETYPE=TRUE\ | |
45 -DVTK_USE_SYSTEM_JPEG=TRUE\ | |
46 -DVTK_USE_SYSTEM_LIBXML2=TRUE\ | |
47 -DVTK_USE_SYSTEM_PNG=TRUE\ | |
48 -DVTK_USE_SYSTEM_TIFF=TRUE\ | |
49 -DVTK_USE_SYSTEM_ZLIB=TRUE\ | |
50 -DVTK_USE_QT=TRUE\ | |
51 -DVTK_USE_POSTGRES=TRUE\ | |
52 -DVTK_USE_ODBC=TRUE\ | |
53 .. | |
54 $(MAKE) -C '$(1)/cross_build' -j '$(JOBS)' install VERBOSE=1 | |
55 endef |