Last active
July 8, 2019 02:15
-
-
Save samtux/430ab75a9fad2d571d6b4ef2e9cf9208 to your computer and use it in GitHub Desktop.
PKGBUILD insight-toolkit with NeuralNetworks module and Python 3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Maintainer: Chris <christopher.r.mullins g-mail> | |
# Contributor: geosam <samuelmesa@linuxmail.org> | |
# Contributor: Andrzej Giniewicz <gginiu@gmail.com> | |
# Contributor: Thomas Dziedzic < gostrc at gmail > | |
# Contributor: joel schaerer <joel.schaerer@laposte.net> | |
pkgname=insight-toolkit | |
pkgver=5.0.0 | |
pkgrel=12 | |
pkgdesc='Cross-platform system that provides developers with an extensive suite of software tools for image analysis' | |
arch=('i686' 'x86_64') | |
url='http://www.itk.org/' | |
license=('APACHE') | |
depends=('fftw' 'libjpeg-turbo' 'libpng' 'zlib' 'libtiff' 'gdcm' 'expat' 'hdf5-cpp-fortran' 'gtest' 'eigen') | |
optdepends=('python: build python wrapping' | |
'ruby' | |
'tcl: build tcl wrapping (currently not supported)' | |
'perl: build perl wrapping (currently not supported)' | |
'java-runtime: build java wrapping (currently not supported)' | |
'swig: generate python wrappers' | |
'pcre: for wrapping' | |
'castxml-git: for wrapping and docs' | |
'clang: for swig' | |
'castxml-git: for ITK') | |
makedepends=('cmake') | |
source=("https://github.com/InsightSoftwareConsortium/ITK/releases/download/v${pkgver}/InsightToolkit-${pkgver}.tar.xz") | |
sha512sums=('942a68c72d4a51ceecf052a7dec4eab8aa62bbfc4b0cb20eee4aa28d99f1d52463c51c51aec79dac9304dbbcdfc09178d0f791a67a4a7a9eb411eb1c1078d816') | |
_usepython=true | |
build() { | |
cd "$srcdir" | |
rm -rf build | |
mkdir build | |
cd build | |
cmake \ | |
-DCMAKE_BUILD_TYPE:STRING=Release \ | |
-DBUILD_TESTING:BOOL=OFF \ | |
-DBUILD_EXAMPLES:BOOL=OFF \ | |
-DBUILD_SHARED_LIBS:BOOL=ON \ | |
-DCMAKE_INSTALL_PREFIX:FILEPATH=/usr \ | |
-DModule_ITKReview:BOOL=ON \ | |
-DModule_NeuralNetworks:BOOL=ON \ | |
-DITK_USE_SYSTEM_JPEG:BOOL=ON \ | |
-DITK_USE_SYSTEM_PNG:BOOL=ON \ | |
-DITK_USE_SYSTEM_ZLIB:BOOL=ON \ | |
-DITK_USE_SYSTEM_TIFF:BOOL=ON \ | |
-DITK_USE_SYSTEM_GDCM:BOOL=ON \ | |
-DITK_LEGACY_SILENT:BOOL=ON \ | |
$( $_usepython && echo "-DITK_WRAP_PYTHON:BOOL=ON") \ | |
$( $_usepython && echo "-DModule_ITKReview:BOOL=OFF") \ | |
$( $_usepython && echo "-DITK_USE_SYSTEM_SWIG:BOOL=ON") \ | |
$( $_usepython && echo "-DITK_USE_SYSTEM_CASTXML:BOOL=ON") \ | |
-DCMAKE_CXX_FLAGS:STRING="-std=c++98" \ | |
-DITK_USE_SYSTEM_LIBRARIES:BOOL=ON \ | |
-DITK_USE_SYSTEM_EXPAT:BOOL=ON \ | |
-DITK_USE_SYSTEM_FFTW:BOOL=ON \ | |
-DITK_USE_SYSTEM_HDF5:BOOL=ON \ | |
-DModule_ITKIOMINC:BOOL=ON \ | |
-DModule_ITKIOTransformMINC:BOOL=ON \ | |
../InsightToolkit-${pkgver} | |
make | |
} | |
package() { | |
cd "$srcdir"/build | |
make DESTDIR="${pkgdir}" install | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment