Commit e95ee6dc authored by Utkarsh Ayachit's avatar Utkarsh Ayachit

Adding more dependencies.

parent 4f78c359
ExternalProject_Add(boost
PREFIX boost
URL "http://www.vtk.org/files/support/boost-1.45.0-cmake.tar.gz"
URL_MD5 1e506d26d8a74fa46050ab0ce19101cd
DOWNLOAD_DIR ${CMAKE_CURRENT_BINARY_DIR}/downloads
CMAKE_ARGS
-DCMAKE_PREFIX_PATH:PATH=${internal_install_root}
-DCMAKE_INSTALL_PREFIX:PATH=${internal_install_root}
-DBUILD_EXAMPLES:BOOL=OFF
-DBUILD_TESTING:BOOL=OFF
-DBUILD_VERSIONED:BOOL=OFF
-DENABLE_STATIC:BOOL=OFF
-DINSTALL_VERSIONED:BOOL=OFF
-DPNG_TESTS:BOOL=OFF
-DWINMANGLE_LIBNAMES:BOOL=ON
-DWITH_MPI:BOOL=OFF
-DWITH_PYTHON:BOOL=OFF
)
ExternalProject_Add(
ffmpeg
PREFIX ffmpeg
DEPENDS zlib
URL "http://ffmpeg.org/releases/ffmpeg-0.6.5.tar.gz"
URL_MD5 451054dae3b3d33a86c2c48bd12d56e7
DOWNLOAD_DIR ${CMAKE_CURRENT_BINARY_DIR}/downloads
CONFIGURE_COMMAND <SOURCE_DIR>/configure
--prefix=${internal_install_root}
--disable-avdevice
--disable-bzlib
--disable-decoders
--disable-doc
--disable-ffplay
--disable-ffprobe
--disable-ffserver
--disable-network
--disable-static
--enable-shared
--extra-cflags=${cppflags}
--extra-ldflags=${ldflags}
BUILD_IN_SOURCE 1
)
ExternalProject_Add(
fontconfig
PREFIX fontconfig
DEPENDS freetype
URL "http://www.freedesktop.org/software/fontconfig/release/fontconfig-2.8.0.tar.gz"
URL_MD5 77e15a92006ddc2adbb06f840d591c0e
DOWNLOAD_DIR ${CMAKE_CURRENT_BINARY_DIR}/downloads
BUILD_IN_SOURCE 1
CONFIGURE_COMMAND <SOURCE_DIR>/configure
--prefix=${internal_install_root}
--disable-docs
--enable-libxml2
--enable-static=no
LDFLAGS=${ldflags}
CPPFLAGS=${cppflags}
CFLAGS=${cppflags}
)
ExternalProject_Add(
libxml2
PREFIX libxml2
URL "ftp://xmlsoft.org/libxml2/libxml2-2.7.8.tar.gz"
URL_MD5 8127a65e8c3b08856093099b52599c86
DOWNLOAD_DIR ${CMAKE_CURRENT_BINARY_DIR}/downloads
CONFIGURE_COMMAND <SOURCE_DIR>/configure
--prefix=${internal_install_root}
--enable-shared
--enable-static=no
LDFLAGS=${ldflags}
CPPFLAGS=${cppflags}
CFLAGS=${cppflags}
BUILD_IN_SOURCE 1
)
ExternalProject_Add(numpy
PREFIX numpy
DEPENDS python
URL "http://fixme/numpy-1.6.1.tar.gz"
URL_MD5 2bce18c08fc4fce461656f0f4dd9103e
DOWNLOAD_DIR ${CMAKE_CURRENT_BINARY_DIR}/downloads
CONFIGURE_COMMAND ""
BUILD_IN_SOURCE 1
BUILD_COMMAND
${CMAKE_COMMAND}
-DPREFIX:PATH=${internal_install_root}
-DSOURCE_DIR:PATH=<SOURCE_DIR>
-P ${CMAKE_CURRENT_SOURCE_DIR}/CMake/numpy.install
INSTALL_COMMAND ""
)
# we need to launch python with the right environment so that the shared
# libraries are loaded correctly.
set(ENV{LD_LIBRARY_PATH} "${PREFIX}/lib:$ENV{LD_LIBRARY_PATH}")
message("COMMAND == ${PREFIX}/bin/python ${SOURCE_DIR}/setup.py install")
execute_process(COMMAND
${PREFIX}/bin/python setup.py install --prefix=${PREFIX}
WORKING_DIRECTORY ${SOURCE_DIR}
RESULT_VARIABLE rv)
if(NOT "${rv}" STREQUAL "0")
message(FATAL_ERROR "numpy.install failed")
endif()
......@@ -3,8 +3,12 @@ ExternalProject_Add(
png
DEPENDS zlib
PREFIX png
URL "ftp://ftp.simplesystems.org/pub/libpng/png/src/libpng-1.5.7.tar.gz"
URL_MD5 944b56a84b65d94054cc73d7ff965de8
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
DOWNLOAD_DIR ${CMAKE_CURRENT_BINARY_DIR}/downloads
CMAKE_ARGS
-DCMAKE_INSTALL_PREFIX:PATH=${internal_install_root}
......
ExternalProject_Add(
qt
PREFIX 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
DOWNLOAD_DIR ${CMAKE_CURRENT_BINARY_DIR}/downloads
CONFIGURE_COMMAND <SOURCE_DIR>/configure
-prefix ${internal_install_root}
-no-dbus
-no-javascript-jit
-no-openssl
-no-script
-no-scripttools
-no-xinerama
-no-phonon
-no-multimedia
-no-audio-backend
-opensource
-system-libpng
-system-zlib
-qt-libjpeg
-qt-libtiff
-webkit
-xmlpatterns
-I ${internal_install_root}/include
-I ${internal_install_root}/include/freetype2
-I ${internal_install_root}/include/fontconfig
-L ${internal_install_root}/lib
)
......@@ -16,3 +16,12 @@ add_project(szip)
add_project(hdf5)
add_project(silo)
add_project(cgns)
add_project(ffmpeg)
add_project(libxml2)
add_project(fontconfig)
add_project(qt)
add_project(numpy)
add_project(boost)
# TODO: remember to tell VTK/ParaView to use SYSTEM_* for the
# libraries we've built here.
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