Commit f470fdeb authored by Ben Boeckel's avatar Ben Boeckel
Browse files

nonfree: add an option for non-free components

Some source bits are stored internally at Kitware and we lack (source)
redistribution rights for them, so add an option which, by default,
hides genericio, acusolve, vistrails, and their dependents from the
superbuild to avoid confusion by people who don't have access to them.

Change-Id: Ie91a825c2bda811b1df826342dc22f91c211d17b
parent 874532be
......@@ -212,6 +212,8 @@ if (NOT WIN32)
include(CheckFortran)
endif()
option(USE_NONFREE_COMPONENTS "Enable the non-free parts of the superbuild" OFF)
mark_as_advanced(USE_NONFREE_COMPONENTS)
# Include all optional projects. These are the ones user can pick and choose.
# Some of these allow using system libraries too.
......@@ -267,7 +269,7 @@ else()
endif()
# Build CosmoTools on Linux and OS X
if (UNIX)
if (UNIX AND USE_NONFREE_COMPONENTS)
include(qhull)
include(diy)
include(genericio)
......@@ -277,8 +279,10 @@ else()
# REMEMBER to tell VTK/ParaView to use VTK_SYSTEM_* for the
# libraries we've built here.
include(paraview)
include(vistrails)
include(acusolve)
if (USE_NONFREE_COMPONENTS)
include(vistrails)
include(acusolve)
endif ()
# paraview.sdk is a module that is used install the ParaView SDK.
# Simply enabling this module will result in the ParaView SDK to be
......
......@@ -113,26 +113,6 @@ add_revision(osmesa
URL_MD5 b9e84efee3931c0acbccd1bb5a860554)
# Add an option to not use diy from SVN. One Debian-Etch the SVN is too old
# to work with invalid SVN certificates.
option(DIY_SKIP_SVN "If enabled, we simply download diy from a source tar" OFF)
if(DIY_SKIP_SVN)
add_revision(diy
URL "http://paraview.org/files/dependencies/diy-src.r178.tar.gz"
URL_MD5 4fba13aae93927d0f32dd6db0599ffcd)
else()
if (TRUST_SVN_CERTIFICATES_AUTOMATICALLY)
add_revision(diy
SVN_REPOSITORY https://svn.mcs.anl.gov/repos/diy/trunk
SVN_REVISION -r178
SVN_TRUST_CERT 1)
else()
add_revision(diy
SVN_REPOSITORY https://svn.mcs.anl.gov/repos/diy/trunk
SVN_REVISION -r178)
endif()
endif()
# ----------------------------------------------------------------------------
# You choose to download ParaView source form GIT or other URL/FILE tarball
option(ParaView_FROM_GIT "If enabled then the repository is fetched from git" ON)
......@@ -160,30 +140,52 @@ else()
endif()
endif()
add_revision(qhull
#------------------------------------------------------------------------------
# Optional Plugins. Doesn't affect ParaView binaries at all even if missing
# or disabled.
#------------------------------------------------------------------------------
if (USE_NONFREE_COMPONENTS)
add_revision(qhull
GIT_REPOSITORY git://github.com/gzagaris/gxzagas-qhull.git
GIT_TAG master)
add_revision(genericio
add_revision(genericio
GIT_REPOSITORY git://kwsource.kitwarein.com/genericio/genericio.git
GIT_TAG master)
#------------------------------------------------------------------------------
# Optional Plugins. Doesn't affect ParaView binaries at all even if missing
# or disabled.
#------------------------------------------------------------------------------
# Add an option to not use diy from SVN. On Debian-Etch the SVN is too old
# to work with invalid SVN certificates.
option(DIY_SKIP_SVN "If enabled, we simply download diy from a source tar" OFF)
if(DIY_SKIP_SVN)
add_revision(diy
URL "http://paraview.org/files/dependencies/diy-src.r178.tar.gz"
URL_MD5 4fba13aae93927d0f32dd6db0599ffcd)
else()
if (TRUST_SVN_CERTIFICATES_AUTOMATICALLY)
add_revision(diy
SVN_REPOSITORY https://svn.mcs.anl.gov/repos/diy/trunk
SVN_REVISION -r178
SVN_TRUST_CERT 1)
else()
add_revision(diy
SVN_REPOSITORY https://svn.mcs.anl.gov/repos/diy/trunk
SVN_REVISION -r178)
endif()
endif()
add_revision(cosmotools
add_revision(cosmotools
GIT_REPOSITORY git://public.kitware.com/cosmotools.git
GIT_TAG v0.13)
add_revision(acusolve
GIT_REPOSITORY git://kwsource.kitwarein.com/paraview/acusolvereaderplugin.git
GIT_TAG master)
add_revision(acusolve
GIT_REPOSITORY git://kwsource.kitwarein.com/paraview/acusolvereaderplugin.git
GIT_TAG master)
add_revision(vistrails
GIT_REPOSITORY git://kwsource.kitwarein.com/paraview/vistrails.git
GIT_TAG master)
add_revision(vistrails
GIT_REPOSITORY git://kwsource.kitwarein.com/paraview/vistrails.git
GIT_TAG master)
endif ()
#add_revision(mili_plugin
# URL ${CMAKE_CURRENT_SOURCE_DIR}/Externals/mili)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment