Mercurial > mxe-octave
annotate src/vtk.mk @ 2121:d4e14e4508f2
package vtk:disable directx detection
author | Tony Theodore <tonyt@logyst.com> |
---|---|
date | Wed, 23 Nov 2011 00:40:00 +1100 |
parents | b50bbb325aa7 |
children | 466e77a78672 |
rev | line source |
---|---|
2061 | 1 # This file is part of mingw-cross-env. |
2 # See doc/index.html for further information. | |
3 | |
4 # vtk | |
5 PKG := vtk | |
6 $(PKG)_IGNORE := | |
7 $(PKG)_VERSION := 5.8.0 | |
8 $(PKG)_CHECKSUM := ece52f4fa92811fe927581e60ecb39a8a5f68cd9 | |
9 $(PKG)_SUBDIR := VTK | |
10 $(PKG)_FILE := $(PKG)-$($(PKG)_VERSION).tar.gz | |
11 $(PKG)_WEBSITE := http://www.vtk.org/ | |
12 $(PKG)_URL := $($(PKG)_WEBSITE)files/release/5.8/$($(PKG)_FILE) | |
13 $(PKG)_DEPS := qt expat freetype jpeg libxml2 libpng tiff zlib libodbc++ postgresql | |
14 | |
15 define $(PKG)_UPDATE | |
2065
2c82136641c3
package vtk: add update macro
Mark Brand <mabrand@mabrand.nl>
parents:
2063
diff
changeset
|
16 wget -q -O- 'http://vtk.org/gitweb?p=VTK.git;a=tags' | \ |
2c82136641c3
package vtk: add update macro
Mark Brand <mabrand@mabrand.nl>
parents:
2063
diff
changeset
|
17 grep 'refs/tags/v[0-9.]*"' | \ |
2c82136641c3
package vtk: add update macro
Mark Brand <mabrand@mabrand.nl>
parents:
2063
diff
changeset
|
18 $(SED) 's,.*refs/tags/v\(.*\)".*,\1,g;' | \ |
2c82136641c3
package vtk: add update macro
Mark Brand <mabrand@mabrand.nl>
parents:
2063
diff
changeset
|
19 head -1 |
2061 | 20 endef |
21 | |
22 define $(PKG)_BUILD | |
2062
e251e813dbb8
vtk patch for building without wine
Muellni <mmuellen@gmx.de>
parents:
2061
diff
changeset
|
23 |
2063
3623b7b968d0
package vtk: consolidate patch file and add tools target
Muellni <mmuellen@gmx.de>
parents:
2062
diff
changeset
|
24 # first we need a native build to create the compile tools |
2061 | 25 mkdir '$(1)/native_build' |
2120
b50bbb325aa7
package vtk: disable gui components in native build
Tony Theodore <tonyt@logyst.com>
parents:
2111
diff
changeset
|
26 cd '$(1)/native_build' && cmake \ |
b50bbb325aa7
package vtk: disable gui components in native build
Tony Theodore <tonyt@logyst.com>
parents:
2111
diff
changeset
|
27 -DCMAKE_BUILD_TYPE='Release' \ |
b50bbb325aa7
package vtk: disable gui components in native build
Tony Theodore <tonyt@logyst.com>
parents:
2111
diff
changeset
|
28 -DBUILD_TESTING=FALSE \ |
b50bbb325aa7
package vtk: disable gui components in native build
Tony Theodore <tonyt@logyst.com>
parents:
2111
diff
changeset
|
29 -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
|
30 -DVTK_USE_RENDERING=FALSE \ |
b50bbb325aa7
package vtk: disable gui components in native build
Tony Theodore <tonyt@logyst.com>
parents:
2111
diff
changeset
|
31 .. |
2063
3623b7b968d0
package vtk: consolidate patch file and add tools target
Muellni <mmuellen@gmx.de>
parents:
2062
diff
changeset
|
32 |
3623b7b968d0
package vtk: consolidate patch file and add tools target
Muellni <mmuellen@gmx.de>
parents:
2062
diff
changeset
|
33 # 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
|
34 $(MAKE) -C '$(1)/native_build' -j '$(JOBS)' VERBOSE=1 CompileTools |
2062
e251e813dbb8
vtk patch for building without wine
Muellni <mmuellen@gmx.de>
parents:
2061
diff
changeset
|
35 |
2121
d4e14e4508f2
package vtk:disable directx detection
Tony Theodore <tonyt@logyst.com>
parents:
2120
diff
changeset
|
36 # 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
|
37 rm '$(1)/CMake/FindDirectX.cmake' |
d4e14e4508f2
package vtk:disable directx detection
Tony Theodore <tonyt@logyst.com>
parents:
2120
diff
changeset
|
38 |
2062
e251e813dbb8
vtk patch for building without wine
Muellni <mmuellen@gmx.de>
parents:
2061
diff
changeset
|
39 # now for the cross compilation |
2061 | 40 mkdir '$(1)/cross_build' |
41 cd '$(1)/cross_build' && cmake \ | |
42 -C '$(1)/TryRunResults.cmake'\ | |
43 -DCMAKE_TOOLCHAIN_FILE='$(CMAKE_TOOLCHAIN_FILE)'\ | |
44 -DBUILD_TESTING=FALSE\ | |
45 -DVTKCompileTools_DIR='$(1)/native_build'\ | |
46 -DVTK_USE_SYSTEM_EXPAT=TRUE\ | |
47 -DVTK_USE_SYSTEM_FREETYPE=TRUE\ | |
48 -DVTK_USE_SYSTEM_JPEG=TRUE\ | |
49 -DVTK_USE_SYSTEM_LIBXML2=TRUE\ | |
50 -DVTK_USE_SYSTEM_PNG=TRUE\ | |
51 -DVTK_USE_SYSTEM_TIFF=TRUE\ | |
52 -DVTK_USE_SYSTEM_ZLIB=TRUE\ | |
53 -DVTK_USE_QT=TRUE\ | |
54 -DVTK_USE_POSTGRES=TRUE\ | |
55 -DVTK_USE_ODBC=TRUE\ | |
56 .. | |
57 $(MAKE) -C '$(1)/cross_build' -j '$(JOBS)' install VERBOSE=1 | |
58 endef |