1 # Maintainer: Christofer Bertonha <chritoferbertonha@gmail.com>
6 pkgdesc='An implementation of the DICOM standard designed to be open source so that researchers may access clinical data directly.'
8 url='http://sourceforge.net/apps/mediawiki/gdcm/index.php?title=Main_Page'
10 depends=('python2' 'zlib' 'expat' 'swig' 'vtk')
11 makedepends=('cmake' 'python2' 'zlib' 'expat' 'swig' 'vtk')
14 source=("http://sourceforge.net/projects/gdcm/files/gdcm%202.x/GDCM%20${pkgver}/gdcm-${pkgver}.tar.gz")
16 md5sums=('3c431bac0fe4da166f2b71c78f0d37a6')
21 mkdir -p build && cd build
24 -DCMAKE_BUILD_TYPE:STRING=Release \
25 -DCMAKE_INSTALL_PREFIX:FILEPATH=/usr \
26 -DCMAKE_C_FLAGS:STRING=-fPIC \
27 -DCMAKE_CXX_FLAGS:STRING=-fPIC \
28 -DGDCM_BUILD_SHARED_LIBS:BOOL=ON \
29 -DGDCM_BUILD_APPLICATIONS:BOOL=ON \
30 -DGDCM_USE_SYSTEM_EXPAT:BOOL=ON \
31 -DGDCM_USE_SYSTEM_OPENJPEG:BOOL=ON \
32 -DGDCM_USE_SYSTEM_OPENSSL:BOOL=ON \
33 -DGDCM_USE_SYSTEM_POPPLER:BOOL=ON \
34 -DGDCM_USE_SYSTEM_UUID:BOOL=ON \
35 -DGDCM_USE_SYSTEM_ZLIB:BOOL=ON \
36 -DGDCM_USE_VTK:BOOL=ON \
37 -DGDCM_WRAP_PYTHON:BOOL=ON \
46 make DESTDIR=${pkgdir} install
49 mkdir -p python2.7/site-packages
51 mv gdcm{,swig}.py python2.7/site-packages
52 mv vtkgdcm.py python2.7/site-packages
53 mv _gdcmswig.so python2.7/site-packages
54 mv *Python.so* python2.7/site-packages