From c3bc2bdf468cb4f8632d47d92486eadef13a263f Mon Sep 17 00:00:00 2001 From: Adam Caprez Date: Fri, 3 Aug 2018 12:25:07 -0500 Subject: [PATCH] Add recipe for connectome-workbench 1.3.1. (#10248) * Add recipe for connectome-workbench 1.3.1. * Use extended container. --- recipes/connectome-workbench/build.sh | 15 ++++++ recipes/connectome-workbench/meta.yaml | 71 ++++++++++++++++++++++++++ 2 files changed, 86 insertions(+) create mode 100755 recipes/connectome-workbench/build.sh create mode 100644 recipes/connectome-workbench/meta.yaml diff --git a/recipes/connectome-workbench/build.sh b/recipes/connectome-workbench/build.sh new file mode 100755 index 0000000000000..e5745d5946815 --- /dev/null +++ b/recipes/connectome-workbench/build.sh @@ -0,0 +1,15 @@ +#!/bin/bash + +export PKG_CONFIG_PATH=${PREFIX}/lib/pkgconfig \ + OPENMP_HEADER_DIR=${PREFIX}/include \ + OPENMP_LIB_DIR=${PREFIX}/lib \ + FREETYPE_DIR=${PREFIX} + +mkdir build +cd build +cmake -DCMAKE_INSTALL_PREFIX=${PREFIX} -DOPENSSL_ROOT_DIR=${PREFIX} \ + -DCMAKE_BUILD_TYPE=Release -DCMAKE_EXE_LINKER_FLAGS_RELEASE="-L${PREFIX}/lib" \ + -DWORKBENCH_USE_QT5=TRUE -DZLIB_ROOT=${PREFIX} -DWORKBENCH_MESA_DIR=${PREFIX} \ + -DCMAKE_PREFIX_PATH=${PREFIX} -DPKG_CONFIG_USE_CMAKE_PREFIX_PATH=True ../src +make -j ${CPU_COUNT} +make install diff --git a/recipes/connectome-workbench/meta.yaml b/recipes/connectome-workbench/meta.yaml new file mode 100644 index 0000000000000..9fa8d7b5729d9 --- /dev/null +++ b/recipes/connectome-workbench/meta.yaml @@ -0,0 +1,71 @@ +{% set name = "connectome-workbench" %} +{% set version = "1.3.1" %} +{% set sha256 = "0359619ef7559cdd2e677c1c924153bb3534505ca9baf58d9c6281eae654e2c7" %} + +package: + name: {{ name }} + version: {{ version }} + +source: + url: https://github.com/Washington-University/workbench/archive/v{{ version }}.tar.gz + sha256: {{ sha256 }} + +build: + number: 0 + skip: True # [osx] + +requirements: + build: + - {{ compiler('c') }} + - {{ compiler('cxx') }} + - cmake >=2.8 + + host: + - qt >=5.6 + - libpng + - zlib + - openssl + - openmp + - freetype + - mesa + - libglu + - xorg-libx11 + - xorg-libxext + - xorg-libxfixes + - xorg-libxcb + - xorg-libxau + - xorg-libxdmcp + + run: + - qt >=5.6 + - libpng + - zlib + - openssl + - openmp + - freetype + - mesa + - libglu + - xorg-libx11 + - xorg-libxext + - xorg-libxfixes + - xorg-libxcb + - xorg-libxau + - xorg-libxdmcp + +test: + commands: + - wb_command -help + - wb_view -help + - wb_shortcuts -help + +about: + home: https://www.humanconnectome.org/software/connectome-workbench + summary: "Connectome Workbench is an open source, freely available visualization and discovery tool used to map neuroimaging data, especially data generated by the Human Connectome Project" + license: GPL-2.0 + license_family: GPL + license_file: LICENSE + dev_url: https://github.com/Washington-University/workbench + +extra: + container: + extended-base: True