Skip to content

Commit

Permalink
Update boost
Browse files Browse the repository at this point in the history
  • Loading branch information
tjcorona committed May 10, 2017
1 parent 8acb539 commit dc71453
Show file tree
Hide file tree
Showing 4 changed files with 60 additions and 39 deletions.
12 changes: 2 additions & 10 deletions pkgs/boost/boost.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ dependencies:
build: [bzip2, mpi, zlib, {{build_with}}]

sources:
- key: tar.bz2:oj5jgizc3fbipnrkxmn5fvaxepxminlk
url: http://downloads.sourceforge.net/boost/boost_1_59_0.tar.bz2
- key: tar.bz2:nbvp774ytlberd3zvf5zi6ppxhzkxlqd
url: http://downloads.sourceforge.net/boost/boost_1_60_0.tar.bz2

build_stages:
- name: bootstrap
Expand All @@ -17,14 +17,6 @@ build_stages:
bash: |
./bootstrap.sh --with-toolset={{toolset}} --prefix=${ARTIFACT}
- name: boost_1_55_fix_warnings
before: bjam
after: bootstrap
handler: bash
files: [boost_1_55_fix_warnings.patch]
bash: |
patch -p2 < _hashdist/boost_1_55_fix_warnings.patch
- name: set-address_model
before: bjam
handler: bash
Expand Down
14 changes: 14 additions & 0 deletions pkgs/remus.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
extends: [cmake_package]
dependencies:
build: [boost, zmq]

sources:
- url: https://gitlab.kitware.com/cmb/remus.git
key: git:1148df5bb86a2dc9bd61d19edbe6f77c582a5641

defaults:
relocatable: true

build_stages:
- name: configure
extra: ['-D BUILD_SHARED_LIBS:BOOL=ON']
31 changes: 31 additions & 0 deletions pkgs/smtk.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
extends: [cmake_package]
dependencies:
build: [boost, gdal, hdf5, netcdf4, mpi, python, remus, vtk, zmq]

sources:
- url: https://gitlab.kitware.com/tjcorona/smtk.git
key: git:9c18b1d7207d17995ce260e095e7a5e9ae5f63cb

defaults:
relocatable: true

build_stages:
- name: configure
extra: ['-D SMTK_ENABLE_VTK_SUPPORT:BOOL=ON',
'-D SMTK_ENABLE_DISCRETE_SESSION:BOOL=ON',
'-D SMTK_ENABLE_EXODUS_SESSION:BOOL=ON',
'-D SMTK_ENABLE_MESH_SESSION:BOOL=ON',
'-D SMTK_ENABLE_POLYGON_SESSION:BOOL=ON',
'-D SMTK_ENABLE_REMOTE_SESSION:BOOL=ON',
'-D SMTK_ENABLE_REMUS_SUPPORT:BOOL=ON',
'-D SMTK_ENABLE_PYTHON_WRAPPING:BOOL=ON',
'-D SMTK_USE_PYBIND11:BOOL=ON',
'-D SMTK_USE_SYSTEM_MOAB:BOOL=OFF',
'-D ENABLE_HDF5:BOOL=ON',
'-D ENABLE_NETCDF:BOOL=ON',
'-D NETCDF_ROOT:STRING=${NETCDF4_DIR}',
'-D VTK_DIR:STRING=${VTK_DIR}',
'-D PYTHON_LIBRARY:FILEPATH=${PYTHON_DIR}/lib/libpython2.7.dylib',
'-D PYTHON_EXECUTABLE:FILEPATH=${PYTHON_DIR}/bin/python2.7',
'-D PYTHON_INCLUDE_DIR:PATH=${PYTHON_DIR}/include/python2.7',
'-D NETCDF_C_LIBRARY=${NETCDF4_DIR}/lib/libnetcdf.dylib']
42 changes: 13 additions & 29 deletions pkgs/vtk/vtk.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ extends: [cmake_package]
dependencies:
build:
- python
- gdal
- setuptools
- libtiff
- when platform == 'linux':
Expand Down Expand Up @@ -36,25 +37,27 @@ build_stages:
bash: |
patch -p1 < _hashdist/vtk-5.10.1-cygwin.patch
- when: platform == 'Darwin'
files: [vtk-disable-gc.patch]
name: vtk_disable_gc_patch
handler: bash
before: setup_builddir
bash: |
patch -p1 < _hashdist/vtk-disable-gc.patch
- name: configure
extra:
extra:
- '-D BUILD_TESTING:BOOL=OFF'
- '-D BUILD_EXAMPLES:BOOL=OFF'
- '-D BUILD_SHARED_LIBS:BOOL=ON'
- '-D VTK_WRAP_PYTHON:BOOL=ON'
- '-D VTK_WRAP_TCL:BOOL=OFF'
- '-D VTK_USE_GL2PS:BOOL=ON'
- '-D VTK_PYTHON_SETUP_ARGS:STRING="--prefix=. --root=${ARTIFACT} --single-version-externally-managed"'
- '-D PYTHON_EXECUTABLE:FILEPATH="${PYTHON}"'
- '-D PYTHON_EXECUTABLE:FILEPATH=${PYTHON_DIR}/bin/python2.7'
- '-D PYTHON_INCLUDE_DIR:PATH=${PYTHON_DIR}/include/python2.7'
- '-D PYTHON_LIBRARY:FILEPATH=${PYTHON_DIR}/lib/libpython2.7.dylib'
- '-D VTK_USE_SYSTEM_TIFF:BOOL=ON'
- '-D Module_vtkGeovisCore:BOOL=ON'
- '-D Module_vtkIOGDAL:BOOL=ON'
- '-D Module_vtkViewsInfovis:BOOL=ON'
- '-D Module_vtkRenderingMatplotlib:BOOL=ON'
- '-D Module_vtkRenderingGL2PSOpenGL2:BOOL=ON'
- '-D Module_vtkTestingRendering:BOOL=ON'
- '-D Module_vtkIOParallelExodus:BOOL=ON'
- '-D GDAL_DIR:PATH=${GDAL_DIR}'

- when: vtk_use_tk
name: configure
Expand All @@ -66,25 +69,6 @@ build_stages:
mode: update
extra: ['-D VTK_USE_TK:BOOL=OFF']

- when: platform == 'Darwin'
name: rpath_fix
after: install
handler: bash
bash: |
for vtklib in ${ARTIFACT}/lib/vtk-5.10/*.dylib; do
if [ ! -L ${vtklib} ]; then
install_name_tool -id @rpath/$(basename ${vtklib}) ${vtklib}
otool -L ${vtklib} | while read line; do
set +e
lib=$(echo $line | sed 's/\(lib.*\.dylib\).*/\1/' | grep ^lib)
set -e
if [ ! -z ${lib} ]; then
install_name_tool -change ${lib} @rpath/${lib} ${vtklib}
fi
done
fi
done
profile_links:
- name: python_packages
link: 'lib/python{{pyver}}/site-packages/*'
Expand Down

0 comments on commit dc71453

Please sign in to comment.