Commits

Marcus Calhoun-Lopez authored 0dd1d56311f
gdcm: new port
No tags

science/gdcm/Portfile

Added
1 +# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
2 +
3 +PortSystem 1.0
4 +PortGroup cmake 1.1
5 +PortGroup cxx11 1.1
6 +
7 +name gdcm
8 +version 3.0.1
9 +revision 0
10 +categories science graphics
11 +license BSD
12 +maintainers {mcalhoun @MarcusCalhoun-Lopez} openmaintainer
13 +platforms darwin
14 +description a C++ library for DICOM medical files
15 +long_description Grassroots DiCoM is a C++ library for DICOM medical files.
16 +
17 +homepage https://sourceforge.net/projects/gdcm/
18 +master_sites sourceforge
19 +
20 +checksums rmd160 0dd7e5458ee9747a8e310b8df44cbf974611a8be \
21 + sha256 4bd0caa18632d3af5cb672cf9b7051cd9ef5ba42eca3d31412d3c8a3166a0a27 \
22 + size 3857842
23 +
24 +depends_build-append port:pkgconfig
25 +
26 +depends_lib-append port:zlib \
27 + port:openssl \
28 + port:expat \
29 + port:jsoncpp port:json-c \
30 + port:socketxx \
31 + port:openjpeg \
32 + port:charls \
33 + port:vtk
34 +
35 +configure.args-append -DGDCM_BUILD_SHARED_LIBS=ON \
36 + -DGDCM_USE_SYSTEM_ZLIB=ON \
37 + -DGDCM_USE_SYSTEM_OPENSSL=ON \
38 + -DGDCM_USE_SYSTEM_UUID=ON \
39 + -DGDCM_USE_SYSTEM_EXPAT=ON \
40 + -DGDCM_USE_SYSTEM_JSON=ON \
41 + -DGDCM_USE_SYSTEM_PAPYRUS3=OFF \
42 + -DGDCM_USE_SYSTEM_SOCKETXX=ON \
43 + -DGDCM_USE_SYSTEM_LJPEG=OFF \
44 + -DGDCM_USE_SYSTEM_OPENJPEG=ON \
45 + -DGDCM_USE_SYSTEM_CHARLS=ON \
46 + \
47 + -DGDCM_USE_VTK=ON
48 +
49 +variant applications description {build Application} {
50 + PortGroup qt5 1.0
51 + depends_lib-append port:poppler \
52 + port:libxml2
53 + configure.args-append -DGDCM_BUILD_APPLICATIONS=ON \
54 + -DGDCM_USE_SYSTEM_POPPLER=ON \
55 + -DGDCM_USE_SYSTEM_LIBXML2=ON \
56 + -DCMAKE_CXX_STANDARD=11
57 +}
58 +
59 +# installation seems to hang
60 +#variant docs description {Build source documentation} {
61 +# depends_build-append port:doxygen \
62 +# port:libxslt
63 +# configure.args-append -DGDCM_DOCUMENTATION=ON
64 +#}

Everything looks good. We'll let you know here if there's anything you should know about.

Add shortcut