1 # Maintainer: Christofer Bertonha <chritoferbertonha@gmail.com>
2 # If no needs of all modules remove the line ITK_BUILD_ALL_MODULES below.
7 pkgdesc='Insight Segmentation and Registration Toolkit (ITK).'
9 url='http://www.itk.org/'
11 depends=('python2' 'zlib' 'libjpeg-turbo' 'libpng' 'libtiff' 'vtk' 'gdcm')
12 makedepends=('git' 'gccxml' 'cmake' 'python2' 'zlib' 'libjpeg-turbo' 'libpng' 'libtiff' 'vtk' 'gdcm')
13 provides=('insight-toolkit')
14 conflicts=('insight-toolkit')
16 _gitroot="git://itk.org/ITK.git"
21 msg "Connecting to GIT server...."
23 if [ -d $_gitname ] ; then
24 cd $_gitname && git pull origin
25 msg "The local files are updated."
31 msg "GIT checkout done or server timeout"
34 -e 's#png_set_gray_1_2_4_to_8#png_set_expand_gray_1_2_4_to_8#g' \
35 -i ${_gitname}/Modules/IO/PNG/src/itkPNGImageIO.cxx
37 msg "Starting make..."
39 mkdir -p build && cd build
41 # if our GPU have opencl or cuda enable and put below line in cmake config
42 # -DITK_USE_GPU:BOOL=ON \
45 -DCMAKE_INSTALL_PREFIX:FILEPATH=/usr \
46 -DCMAKE_BUILD_TYPE:STRING=Release \
47 -DBUILD_TESTING:BOOL=OFF \
48 -DBUILD_EXAMPLES:BOOL=OFF \
49 -DBUILD_SHARED_LIBS:BOOL=ON \
50 -DITK_BUILD_ALL_MODULES:BOOL=ON \
51 -DITK_USE_SYSTEM_GDCM:BOOL=ON \
52 -DITK_USE_SYSTEM_JPEG:BOOL=ON \
53 -DITK_USE_SYSTEM_PNG:BOOL=ON \
54 -DITK_USE_SYSTEM_TIFF:BOOL=ON \
55 -DITK_USE_SYSTEM_ZLIB:BOOL=ON \
56 -DUSE_WRAP_ITK:BOOL=ON \
57 -DWRAP_ITK_PYTHON:BOOL=ON \
58 -DWRAP_ITK_USE_SYSTEM_GCCXML:BOOL=ON \
67 make DESTDIR=${pkgdir} install