Commit 4f78c359 authored by Utkarsh Ayachit's avatar Utkarsh Ayachit

Adding support for more dependencies.

parent d890537d
ExternalProject_Add(
cgns
PREFIX cgns
DEPENDS zlib hdf5
URL "http://paraview.org/files/misc/cgnslib_2.5-5.tar.gz"
URL_MD5 ae2a2e79b99d41c63e5ed5f661f70fd9
DOWNLOAD_DIR ${CMAKE_CURRENT_BINARY_DIR}/downloads
CONFIGURE_COMMAND <SOURCE_DIR>/configure
--prefix=${internal_install_root}
--enable-shared=all
--with-hdf5=${internal_install_root}
--with-szip=${internal_install_root}/lib/libsz.so
--with-zlib
--with-fortran=no
--enable-64bit
BUILD_IN_SOURCE 1
)
ExternalProject_Add(
freetype
PREFIX freetype
DEPENDS zlib
URL http://download.savannah.gnu.org/releases/freetype/freetype-2.4.8.tar.gz
URL_MD5 5d82aaa9a4abc0ebbd592783208d9c76
DOWNLOAD_DIR ${CMAKE_CURRENT_BINARY_DIR}/downloads
CONFIGURE_COMMAND <SOURCE_DIR>/configure
--prefix=${internal_install_root}
--enable-static=no
--with-sysroot=${internal_install_root}
LDFLAGS=${ldflags}
CPPFLAGS=${cppflags}
CFLAGS=${cppflags}
)
ExternalProject_Add(
hdf5
PREFIX hdf5
DEPENDS zlib szip
URL "http://www.hdfgroup.org/ftp/HDF5/current/src/hdf5-1.8.8.tar.gz"
URL_MD5 1196e668f5592bfb50d1de162eb16cff
DOWNLOAD_DIR ${CMAKE_CURRENT_BINARY_DIR}/downloads
CMAKE_ARGS
-DCMAKE_PREFIX_PATH:PATH=${internal_install_root}
-DCMAKE_INSTALL_PREFIX:PATH=${internal_install_root}
-DBUILD_SHARED_LIBS:BOOL=TRUE
-DHDF5_ENABLE_Z_LIB_SUPPORT:BOOL=TRUE
-DHDF5_ENABLE_SZIP_SUPPORT:BOOL=TRUE
-DHDF5_ENABLE_SZIP_ENCODING:BOOL=TRUE
-DSZIP_LIBRARY:FILEPATH=${internal_install_root}/lib/libsz.so
-DSZIP_INCLUDE_DIR:FILEPATH=${internal_install_root}/include
)
......@@ -9,5 +9,5 @@ ExternalProject_Add(
CMAKE_ARGS
-DCMAKE_INSTALL_PREFIX:PATH=${internal_install_root}
-DPNG_TESTS:BOOL=OFF
-DCMAKE_PREFIX_PATH=${internal_install_root}
-DCMAKE_PREFIX_PATH:PATH=${internal_install_root}
)
# FIXME: I'm not sure I was successful in making Python use the zlib we built
# :(.
set (old_ldflags $ENV{LDFLAGS})
set (old_cppflags $ENV{CPPFLAGS})
set (ENV{LDFLAGS} ${old_ldflags} -L${internal_install_root}/lib)
set (ENV{CPPFLAGS} ${old_cppflags} -I${internal_install_root}/include)
ExternalProject_Add(
python
DEPENDS zlib png
......@@ -13,8 +5,12 @@ ExternalProject_Add(
URL "http://python.org/ftp/python/2.7.2/Python-2.7.2.tgz"
URL_MD5 "0ddfe265f1b3d0a8c2459f5bf66894c7"
DOWNLOAD_DIR ${CMAKE_CURRENT_BINARY_DIR}/downloads
CONFIGURE_COMMAND <SOURCE_DIR>/configure
CONFIGURE_COMMAND <SOURCE_DIR>/configure
--prefix=${internal_install_root}
--enable-unicode
--enable-shared
LDFLAGS=${ldflags}
CPPFLAGS=${cppflags}
CFLAGS=${cppflags}
)
ExternalProject_Add(
silo
PREFIX silo
DEPENDS zlib hdf5
URL "http://paraview.org/files/misc/silo-4.8-bsd.tar.gz"
URL_MD5 03e27c977f34dc6e9a5f3864153c24fe
DOWNLOAD_DIR ${CMAKE_CURRENT_BINARY_DIR}/downloads
BUILD_IN_SOURCE 1
CONFIGURE_COMMAND <SOURCE_DIR>/configure
--prefix=${internal_install_root}
--enable-shared=yes
--enable-static=no
--enable-fortran=no
--enable-browser=no
--enable-silex=no
--with-szlib=${internal_install_root}
--with-hdf5=${internal_install_root}/include,${internal_install_root}/lib
LDFLAGS=${ldflags}
CPPFLAGS=${cppflags}
CFLAGS=${cppflags}
)
ExternalProject_Add(
szip
PREFIX szip
URL "http://www.hdfgroup.org/ftp/lib-external/szip/2.1/src/szip-2.1.tar.gz"
URL_MD5 902f831bcefb69c6b635374424acbead
DOWNLOAD_DIR ${CMAKE_CURRENT_BINARY_DIR}/downloads
CONFIGURE_COMMAND <SOURCE_DIR>/configure
--enable-encoding
--prefix=${internal_install_root}
LDFLAGS=${ldflags}
CPPFLAGS=${cppflags}
CFLAGS=${cppflags}
)
......@@ -7,7 +7,7 @@ ExternalProject_Add(
URL "http://zlib.net/zlib-1.2.5.tar.gz"
URL_MD5 c735eab2d659a96e5a594c9e8541ad63
DOWNLOAD_DIR ${CMAKE_CURRENT_BINARY_DIR}/downloads
# remove the zconf.g as a patch step.
# remove the zconf.h as a patch step.
PATCH_COMMAND cmake -E remove -f <SOURCE_DIR>/zconf.h
CMAKE_ARGS
-DCMAKE_INSTALL_PREFIX:PATH=${internal_install_root}
......
......@@ -5,6 +5,14 @@ set (CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_CURRENT_SOURCE_DIR}/CMake")
include (ParaViewModules)
set (internal_install_root "${CMAKE_CURRENT_BINARY_DIR}/install")
set (ldflags "$ENV{LDFLAGS} -L${internal_install_root}/lib")
set (cppflags "$ENV{CPPFLAGS} -I${internal_install_root}/include")
add_project(zlib)
add_project(png)
add_project(python)
add_project(freetype)
add_project(szip)
add_project(hdf5)
add_project(silo)
add_project(cgns)
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