Commit b887b9e9 authored by Utkarsh Ayachit's avatar Utkarsh Ayachit

consolidate all urls in a versions.cmake file.

parent 6bb49b55
......@@ -97,6 +97,10 @@ function(add_external_project name)
PREFIX ${name}
DOWNLOAD_DIR ${download_location}
INSTALL_DIR ${install_location}
# add url/mdf/git-repo etc. specified in versions.cmake
${${name}_revision}
PROCESS_ENVIRONMENT
LDFLAGS "${ldflags}"
CPPFLAGS "${cppflags}"
......@@ -113,3 +117,8 @@ function(add_external_project name)
${cmake_params}
)
endfunction()
function(add_revision name)
set(${name}_revision "${ARGN}" CACHE INTERNAL
"Revision for ${name}")
endfunction()
add_external_project(boost
DEPENDS zlib
URL "http://www.vtk.org/files/support/boost-1.45.0-cmake.tar.gz"
URL_MD5 1e506d26d8a74fa46050ab0ce19101cd
CMAKE_ARGS
-DBUILD_EXAMPLES:BOOL=OFF
-DBUILD_TESTING:BOOL=OFF
......
add_external_project(
cgns
DEPENDS zlib hdf5
URL "http://paraview.org/files/misc/cgnslib_2.5-5.tar.gz"
URL_MD5 ae2a2e79b99d41c63e5ed5f661f70fd9
CONFIGURE_COMMAND <SOURCE_DIR>/configure
--prefix=<INSTALL_DIR>
--enable-shared=all
......
add_external_project(
ffmpeg
DEPENDS zlib
URL "http://ffmpeg.org/releases/ffmpeg-0.6.5.tar.gz"
URL_MD5 451054dae3b3d33a86c2c48bd12d56e7
CONFIGURE_COMMAND <SOURCE_DIR>/configure
--prefix=<INSTALL_DIR>
--disable-avdevice
......
add_external_project(
fontconfig
DEPENDS freetype libxml2
URL "http://www.freedesktop.org/software/fontconfig/release/fontconfig-2.8.0.tar.gz"
URL_MD5 77e15a92006ddc2adbb06f840d591c0e
BUILD_IN_SOURCE 1
CONFIGURE_COMMAND <SOURCE_DIR>/configure
--prefix=<INSTALL_DIR>
......
add_external_project(
freetype
DEPENDS zlib
URL http://download.savannah.gnu.org/releases/freetype/freetype-2.4.8.tar.gz
URL_MD5 5d82aaa9a4abc0ebbd592783208d9c76
CONFIGURE_COMMAND <SOURCE_DIR>/configure
--prefix=<INSTALL_DIR>
--enable-static=no
......
add_external_project(
hdf5
DEPENDS zlib szip
URL "http://www.hdfgroup.org/ftp/HDF5/current/src/hdf5-1.8.8.tar.gz"
URL_MD5 1196e668f5592bfb50d1de162eb16cff
CMAKE_ARGS
-DBUILD_SHARED_LIBS:BOOL=TRUE
-DHDF5_ENABLE_Z_LIB_SUPPORT:BOOL=TRUE
......
add_external_project(
libxml2
URL "ftp://xmlsoft.org/libxml2/libxml2-2.7.8.tar.gz"
URL_MD5 8127a65e8c3b08856093099b52599c86
CONFIGURE_COMMAND <SOURCE_DIR>/configure
--prefix=<INSTALL_DIR>
--enable-shared
......
add_external_project(
manta
DEPENDS libxml2 zlib
URL "http://paraview.org/files/misc/manta-r2439.tar.gz"
URL_MD5 fbf4107fe2f6d7e8a5ae3dda71805bdc
CMAKE_ARGS
-DBUILD_SHARED_LIBS:BOOL=OFF
-DBUILD_TESTING:BOOL=OFF
......
add_external_project(
mesa
URL ftp://ftp.freedesktop.org/pub/mesa/7.11.2/MesaLib-7.11.2.tar.gz
URL_MD5 b9e84efee3931c0acbccd1bb5a860554
add_external_project(mesa
CONFIGURE_COMMAND <SOURCE_DIR>/configure
--prefix=<INSTALL_DIR>
--disable-static
......
add_external_project(
mpich2
URL http://www.mcs.anl.gov/research/projects/mpich2/downloads/tarballs/1.4.1p1/mpich2-1.4.1p1.tar.gz
URL_MD5 b470666749bcb4a0449a072a18e2c204
CONFIGURE_COMMAND <SOURCE_DIR>/configure
--prefix=<INSTALL_DIR>
--enable-shared
......
add_external_project(numpy
DEPENDS python
URL "http://fixme/numpy-1.6.1.tar.gz"
URL_MD5 2bce18c08fc4fce461656f0f4dd9103e
CONFIGURE_COMMAND "pwd"
INSTALL_COMMAND "pwd"
BUILD_IN_SOURCE 1
......
......@@ -31,9 +31,6 @@ endif ()
add_external_project(paraview
DEPENDS ${dependencies}
GIT_REPOSITORY git://paraview.org/ParaView.git
GIT_TAG master
CMAKE_ARGS
-DBUILD_SHARED_LIBS:BOOL=ON
-DBUILD_TESTING:BOOL=OFF
......
add_external_project(
png
add_external_project(png
DEPENDS zlib
URL "ftp://ftp.simplesystems.org/pub/libpng/png/src/libpng-1.4.8.tar.gz"
URL_MD5 49c6e05be5fa88ed815945d7ca7d4aa9
# Can't use 1.5 since Qt 4.6.* is making use of deprecated API.
# URL "ftp://ftp.simplesystems.org/pub/libpng/png/src/libpng-1.5.7.tar.gz"
# URL_MD5 944b56a84b65d94054cc73d7ff965de8
CMAKE_ARGS
-DPNG_TESTS:BOOL=OFF
# VTK uses API that gets hidden when PNG_NO_STDIO is TRUE (default).
......
add_external_project(
python
DEPENDS zlib png
URL "http://python.org/ftp/python/2.7.2/Python-2.7.2.tgz"
URL_MD5 "0ddfe265f1b3d0a8c2459f5bf66894c7"
CONFIGURE_COMMAND <SOURCE_DIR>/configure
--prefix=<INSTALL_DIR>
--enable-unicode
......
add_external_project(
qt
DEPENDS zlib png freetype fontconfig
URL "ftp://ftp.qt.nokia.com/qt/source/qt-everywhere-opensource-src-4.6.4.tar.gz"
URL_MD5 8ac880cc07a130c39607b65efd5e1421
CONFIGURE_COMMAND <SOURCE_DIR>/configure
-prefix <INSTALL_DIR>
-confirm-license
......
add_external_project(
silo
DEPENDS zlib hdf5
URL "http://paraview.org/files/misc/silo-4.8-bsd.tar.gz"
URL_MD5 03e27c977f34dc6e9a5f3864153c24fe
BUILD_IN_SOURCE 1
CONFIGURE_COMMAND <SOURCE_DIR>/configure
--prefix=<INSTALL_DIR>
......
add_external_project(
szip
URL "http://www.hdfgroup.org/ftp/lib-external/szip/2.1/src/szip-2.1.tar.gz"
URL_MD5 902f831bcefb69c6b635374424acbead
add_external_project(szip
CONFIGURE_COMMAND <SOURCE_DIR>/configure
--enable-encoding
--prefix=<INSTALL_DIR>
......
add_external_project(
fontconfig
DEPENDS freetype libxml2
URL "http://www.freedesktop.org/software/fontconfig/release/fontconfig-2.8.0.tar.gz"
URL_MD5 77e15a92006ddc2adbb06f840d591c0e
BUILD_IN_SOURCE 1
CONFIGURE_COMMAND <SOURCE_DIR>/configure
--prefix=<INSTALL_DIR>
......
add_external_project(
freetype
DEPENDS zlib
URL http://download.savannah.gnu.org/releases/freetype/freetype-2.4.8.tar.gz
URL_MD5 5d82aaa9a4abc0ebbd592783208d9c76
CONFIGURE_COMMAND <SOURCE_DIR>/configure
--prefix=<INSTALL_DIR>
--enable-static=no
......
......@@ -3,8 +3,6 @@
# file.
add_external_project(
zlib
URL "http://zlib.net/zlib-1.2.5.tar.gz"
URL_MD5 c735eab2d659a96e5a594c9e8541ad63
# remove the zconf.h as a patch step.
PATCH_COMMAND ${CMAKE_COMMAND} -E remove -f <SOURCE_DIR>/zconf.h
)
......@@ -22,6 +22,7 @@ set (ParaViewSuperBuild_CMAKE_DIR
"${CMAKE_CURRENT_SOURCE_DIR}/CMake")
include (ParaViewModules)
include (${CMAKE_CURRENT_SOURCE_DIR}/versions.cmake)
set (install_location "${CMAKE_CURRENT_BINARY_DIR}/install")
set (download_location "${CMAKE_CURRENT_BINARY_DIR}/downloads")
......@@ -79,6 +80,6 @@ SET (CMAKE_INSTALL_COMPONENT runtime)
# REMEMBER to tell VTK/ParaView to use VTK_SYSTEM_* for the
# libraries we've built here.
#add_project(paraview REQUIRED)
#add_project(paraview.bundle REQUIRED DEPENDS paraview)
add_project(paraview REQUIRED)
add_project(paraview.bundle REQUIRED)
# This maintains the links for all sources used by this superbuild.
# Simply update this file to change the revision.
# One can use different revision on different platforms.
# e.g.
# if (UNIX)
# ..
# else (APPLE)
# ..
# endif()
add_revision(zlib
URL "http://zlib.net/zlib-1.2.5.tar.gz"
URL_MD5 c735eab2d659a96e5a594c9e8541ad63)
# Can't use PNG 1.5 since Qt 4.6.* is making use of deprecated API.
# URL "ftp://ftp.simplesystems.org/pub/libpng/png/src/libpng-1.5.7.tar.gz"
# URL_MD5 944b56a84b65d94054cc73d7ff965de8
add_revision(png
URL "ftp://ftp.simplesystems.org/pub/libpng/png/src/libpng-1.4.8.tar.gz"
URL_MD5 49c6e05be5fa88ed815945d7ca7d4aa9)
add_revision(freetype
URL "http://download.savannah.gnu.org/releases/freetype/freetype-2.4.8.tar.gz"
URL_MD5 "5d82aaa9a4abc0ebbd592783208d9c76")
add_revision(szip
URL "http://www.hdfgroup.org/ftp/lib-external/szip/2.1/src/szip-2.1.tar.gz"
URL_MD5 902f831bcefb69c6b635374424acbead)
add_revision(hdf5
URL "http://www.hdfgroup.org/ftp/HDF5/current/src/hdf5-1.8.8.tar.gz"
URL_MD5 1196e668f5592bfb50d1de162eb16cff)
# 3.12 binaries are using this customized silo, not sure why. It doesn't build
# correctly on linux. I'm changing the code to use the standard silo binary.
# URL http://paraview.org/files/misc/silo-4.8-bsd.tar.gz"
add_revision(silo
URL "https://wci.llnl.gov/codes/silo/silo-4.8/silo-4.8-bsd.tar.gz"
URL_MD5 03e27c977f34dc6e9a5f3864153c24fe)
add_revision(cgns
URL "http://paraview.org/files/misc/cgnslib_2.5-5.tar.gz"
URL_MD5 ae2a2e79b99d41c63e5ed5f661f70fd9)
add_revision(ffmpeg
URL "http://ffmpeg.org/releases/ffmpeg-0.6.5.tar.gz"
URL_MD5 451054dae3b3d33a86c2c48bd12d56e7)
add_revision(libxml2
URL "ftp://xmlsoft.org/libxml2/libxml2-2.7.8.tar.gz"
URL_MD5 8127a65e8c3b08856093099b52599c86)
add_revision(fontconfig
URL "http://www.freedesktop.org/software/fontconfig/release/fontconfig-2.8.0.tar.gz"
URL_MD5 77e15a92006ddc2adbb06f840d591c0e)
add_revision(qt
URL "ftp://ftp.qt.nokia.com/qt/source/qt-everywhere-opensource-src-4.6.4.tar.gz"
URL_MD5 8ac880cc07a130c39607b65efd5e1421)
add_revision(python
URL "http://python.org/ftp/python/2.7.2/Python-2.7.2.tgz"
URL_MD5 "0ddfe265f1b3d0a8c2459f5bf66894c7")
add_revision(numpy
URL "http://fixme/numpy-1.6.1.tar.gz"
URL_MD5 2bce18c08fc4fce461656f0f4dd9103e)
add_revision(boost
URL "http://www.vtk.org/files/support/boost-1.45.0-cmake.tar.gz"
URL_MD5 1e506d26d8a74fa46050ab0ce19101cd)
add_revision(manta
URL "http://paraview.org/files/misc/manta-r2439.tar.gz"
URL_MD5 fbf4107fe2f6d7e8a5ae3dda71805bdc)
add_revision(mpich2
URL "http://www.mcs.anl.gov/research/projects/mpich2/downloads/tarballs/1.4.1p1/mpich2-1.4.1p1.tar.gz"
URL_MD5 b470666749bcb4a0449a072a18e2c204)
add_revision(mesa
URL ftp://ftp.freedesktop.org/pub/mesa/7.11.2/MesaLib-7.11.2.tar.gz
URL_MD5 b9e84efee3931c0acbccd1bb5a860554)
add_revision(paraview
GIT_REPOSITORY git://paraview.org/ParaView.git
GIT_TAG master)
Markdown is supported
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