Commits

Marcus Calhoun-Lopez authored dcb2ab56781
darktable: get OpenMP with one (non-default) variant
No tags

graphics/darktable/Portfile

Modified
1 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 2
3 3 PortSystem 1.0
4 4 PortGroup github 1.0
5 5 PortGroup active_variants 1.1
6 6 PortGroup app 1.0
7 7 PortGroup cmake 1.0
8 8 PortGroup cxx11 1.1
9 9 PortGroup conflicts_build 1.0
10 10
11 11 github.setup darktable-org darktable 2.2.5 release-
12 -revision 3
12 +revision 4
13 13
14 14 github.tarball_from releases
15 15 use_xz yes
16 16
17 17 checksums rmd160 1a66797ca24dc7ef06fc5bb2fbed98724d50c0f8 \
18 18 sha256 e303a42b33f78eb1f48d3b36d1df46f30873df4c5a7b49605314f61c49fbf281 \
19 19 size 3092540
20 20
21 21 set branch [join [lrange [split ${version} .] 0 1] .]
22 22 categories graphics
107 107 system "${prefix}/bin/update-desktop-database ${prefix}/share/applications"
108 108 system "${prefix}/bin/glib-compile-schemas ${prefix}/share/glib-2.0/schemas"
109 109 system "env XDG_DATA_DIRS=${prefix}/share ${prefix}/bin/update-mime-database -V ${prefix}/share/mime"
110 110 }
111 111
112 112 app.executable ${workpath}/darktable-app
113 113 app.icon packaging/macosx/Icons.icns
114 114
115 115 universal_variant no
116 116
117 -# With gcc5 or gcc6, tries to build src/osx/osx.mm with gcc which results
118 -# in a cascade of errors. Leave disabled until a solution is found
119 -# variant gcc5 description {Build with gcc5 to enable OpenMP for speed} {
120 -# depends_lib-append port:gcc5
121 -# configure.args-replace -DUSE_OPENMP=OFF -DUSE_OPENMP=ON
122 -# configure.compiler macports-gcc-5
123 -# }
124 -
125 -variant clang39 conflicts clang40 description {Build with clang 3.9 to enable OpenMP for speed} {
126 - depends_lib-append port:clang-3.9
127 - configure.args-replace -DUSE_OPENMP=OFF -DUSE_OPENMP=ON
128 - configure.compiler macports-clang-3.9
129 -}
130 -
131 -# See https://trac.macports.org/ticket/55380
132 -# High Sierra build fails with clang-3.9
133 -variant clang40 conflicts clang39 description {Build with clang 4.0 to enable OpenMP for speed} {
134 - depends_lib-append port:clang-4.0
117 +# compiling src/osx/osx.mm with GCC results in a cascade of errors
118 +variant openmp description {enable support for OpenMP} {
135 119 configure.args-replace -DUSE_OPENMP=OFF -DUSE_OPENMP=ON
136 - configure.compiler macports-clang-4.0
120 + compiler.whitelist macports-clang-7.0 macports-clang-6.0 macports-clang-5.0 \
121 + macports-clang-4.0 macports-clang-3.9 macports-clang-3.7
122 + compiler.fallback macports-clang-7.0
137 123 }
138 124
139 -if {![variant_isset clang39]} {
140 - default_variants +clang40
141 -}
142 -
143 -
144 125 notes "
145 126 Online documentation for ${name} is at:
146 127 http://www.darktable.org/usermanual/index.html.php
147 128
148 129 PDF documentation may be downloaded at:
149 130 http://www.darktable.org/resources/
150 131 "
151 132 livecheck.url https://github.com/darktable-org/darktable/releases
152 133 livecheck.regex release-(${branch}.\[0-9.\]?).tar

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

Add shortcut