From a72213dce8e9ad60b6bffeecf8b49b138b586636 Mon Sep 17 00:00:00 2001 From: Adam Caprez Date: Thu, 2 Aug 2018 22:24:45 +0000 Subject: [PATCH 1/2] Add recipe for connectome-workbench 1.3.1. --- recipes/connectome-workbench/build.sh | 15 ++++++ recipes/connectome-workbench/meta.yaml | 67 ++++++++++++++++++++++++++ 2 files changed, 82 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..44032cad22abf --- /dev/null +++ b/recipes/connectome-workbench/meta.yaml @@ -0,0 +1,67 @@ +{% 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 From 670f673fcbfb2b062320f8190c63038fee25d394 Mon Sep 17 00:00:00 2001 From: Adam Caprez Date: Fri, 3 Aug 2018 16:51:16 +0000 Subject: [PATCH 2/2] Use extended container. --- recipes/connectome-workbench/meta.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/recipes/connectome-workbench/meta.yaml b/recipes/connectome-workbench/meta.yaml index 44032cad22abf..9fa8d7b5729d9 100644 --- a/recipes/connectome-workbench/meta.yaml +++ b/recipes/connectome-workbench/meta.yaml @@ -65,3 +65,7 @@ about: license_family: GPL license_file: LICENSE dev_url: https://github.com/Washington-University/workbench + +extra: + container: + extended-base: True