Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
FSL
conda_vtk_recipe
Commits
9a777149
Commit
9a777149
authored
Nov 17, 2016
by
Duncan Mortimer
Browse files
Initial import
parents
Changes
3
Hide whitespace changes
Inline
Side-by-side
build.sh
0 → 100644
View file @
9a777149
#!/bin/bash
# FIXME: This is a hack to make sure the environment is activated.
# The reason this is required is due to the conda-build issue
# mentioned below.
#
# https://github.com/conda/conda-build/issues/910
#
source
activate
"
${
CONDA_DEFAULT_ENV
}
"
mkdir
build
cd
build
BUILD_CONFIG
=
Release
# sometimes python is suffixed, these are quick fixes to find some variables
# in a future PR we should probably switch to cmake find python scripting
PYTHON_INCLUDE
=
"
${
PREFIX
}
/include/python
${
PY_VER
}
"
if
[
!
-d
$PYTHON_INCLUDE
]
;
then
PYTHON_INCLUDE
=
"
${
PREFIX
}
/include/python
${
PY_VER
}
m"
fi
PYTHON_LIBRARY_EXT
=
"so"
if
[
`
uname
`
=
"Darwin"
]
;
then
PYTHON_LIBRARY_EXT
=
"dylib"
fi
PYTHON_LIBRARY
=
"
${
PREFIX
}
/lib/libpython
${
PY_VER
}
.
${
PYTHON_LIBRARY_EXT
}
"
if
[
!
-f
$PYTHON_LIBRARY
]
;
then
PYTHON_LIBRARY
=
"
${
PREFIX
}
/lib/libpython
${
PY_VER
}
m.
${
PYTHON_LIBRARY_EXT
}
"
fi
# choose different screen settings for OS X and Linux
if
[
`
uname
`
=
"Darwin"
]
;
then
SCREEN_ARGS
=(
"-DVTK_USE_X:BOOL=OFF"
"-DVTK_USE_COCOA:BOOL=ON"
"-DVTK_USE_CARBON:BOOL=OFF"
)
else
SCREEN_ARGS
=(
"-DVTK_USE_X:BOOL=ON"
)
fi
# now we can start configuring
cmake ..
\
-Wno-dev
\
-DCMAKE_BUILD_TYPE
=
$BUILD_CONFIG
\
-DCMAKE_INSTALL_PREFIX
:PATH
=
"
${
PREFIX
}
"
\
-DCMAKE_INSTALL_RPATH
:PATH
=
"
${
PREFIX
}
/lib"
\
-DBUILD_DOCUMENTATION
:BOOL
=
OFF
\
-DBUILD_TESTING
:BOOL
=
OFF
\
-DBUILD_EXAMPLES
:BOOL
=
OFF
\
-DBUILD_SHARED_LIBS
:BOOL
=
ON
\
-DPYTHON_EXECUTABLE
:FILEPATH
=
$PYTHON
\
-DPYTHON_INCLUDE_DIR
:PATH
=
$PYTHON_INCLUDE
\
-DPYTHON_LIBRARY
:FILEPATH
=
$PYTHON_LIBRARY
\
-DVTK_ENABLE_VTKPYTHON
:BOOL
=
OFF
\
-DVTK_WRAP_PYTHON
:BOOL
=
ON
\
-DVTK_PYTHON_VERSION
:STRING
=
"
${
PY_VER
}
"
\
-DVTK_INSTALL_PYTHON_MODULE_DIR
:PATH
=
"
${
SP_DIR
}
"
\
-DVTK_HAS_FEENABLEEXCEPT
:BOOL
=
OFF
\
-DVTK_RENDERING_BACKEND
=
OpenGL2
\
-DModule_vtkRenderingMatplotlib
=
ON
\
-DVTK_USE_SYSTEM_ZLIB
:BOOL
=
ON
\
-DVTK_USE_SYSTEM_FREETYPE
:BOOL
=
ON
\
-DVTK_USE_SYSTEM_LIBXML2
:BOOL
=
ON
\
-DVTK_USE_SYSTEM_PNG
:BOOL
=
ON
\
-DVTK_USE_SYSTEM_JPEG
:BOOL
=
ON
\
-DVTK_USE_SYSTEM_TIFF
:BOOL
=
ON
\
-DVTK_USE_SYSTEM_EXPAT
:BOOL
=
ON
\
-DVTK_USE_SYSTEM_HDF5
:BOOL
=
ON
\
-DVTK_USE_SYSTEM_JSONCPP
:BOOL
=
ON
\
${
SCREEN_ARGS
[@]
}
make
make
install
meta.yaml
0 → 100644
View file @
9a777149
{
%
set version = "7.0.0" %
}
{
%
set minor_version = ".".join(version.split(".")
[:
2
]
) %
}
package
:
name
:
vtk
version
:
{{
version
}}
source
:
url
:
http://www.vtk.org/files/release/{{ minor_version }}/VTK-{{ version }}.tar.gz
fn
:
VTK-{{ version }}.tar.gz
sha256
:
78a990a15ead79cdc752e86b83cfab7dbf5b7ef51ba409db02570dbdd9ec32c3
build
:
number
:
1
requirements
:
build
:
-
cmake
-
python
# VTK Third Party dependencies
-
zlib 1.2.*
-
freetype 2.5.*
-
hdf5 1.8.17|1.8.17.*
# [unix]
-
libxml2
-
libpng >=1.6.21,<1.7
-
jpeg 8*
-
libtiff 4.0.*
-
jsoncpp
# [unix]
-
expat
run
:
-
python
-
future
# used in the generated python wrappers
# VTK Third Party dependencies
-
zlib 1.2.*
-
freetype 2.5.*
-
hdf5 1.8.17|1.8.17.*
# [unix]
-
libxml2
-
libpng >=1.6.21,<1.7
-
jpeg 8*
-
libtiff 4.0.*
-
jsoncpp
# [unix]
-
expat
test
:
imports
:
-
vtk
-
vtk.vtkChartsCore
-
vtk.vtkCommonCore
-
vtk.vtkFiltersCore
-
vtk.vtkFiltersGeneric
-
vtk.vtkGeovisCore
-
vtk.vtkFiltersHybrid
-
vtk.vtkIOCore
-
vtk.vtkImagingCore
-
vtk.vtkInfovisCore
-
vtk.vtkRenderingCore
-
vtk.vtkViewsCore
-
vtk.vtkRenderingVolume
-
vtk.vtkInteractionWidgets
about
:
home
:
http://www.vtk.org/
license
:
BSD 3-Clause
summary
:
>
The Visualization Toolkit (VTK) is an open-source, freely available software
system for 3D computer graphics, modeling, image processing, volume
rendering, scientific visualization, and information visualization.
extra
:
recipe-maintainers
:
-
Korijn
-
ivoflipse
-
Maxyme
-
ccordoba12
-
grlee77
-
msarahan
-
patricksnape
yum_requirements.txt
0 → 100644
View file @
9a777149
libXt-devel
mesa-libGLU-devel
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment