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 | # $Id: $ |
---|
3 | |
---|
4 | PortSystem 1.0 |
---|
5 | PortGroup cmake 1.0 |
---|
6 | PortGroup github 1.0 |
---|
7 | github.setup bbannier ROOT 9e03e901d7 |
---|
8 | name root-devel |
---|
9 | #fetch.type svn |
---|
10 | #svn.url https://root.cern.ch/svn/root/trunk |
---|
11 | # from git-svn-id |
---|
12 | svn.revision 48358 |
---|
13 | version 5.99.01-svn${svn.revision} |
---|
14 | |
---|
15 | categories science |
---|
16 | |
---|
17 | maintainers hep.phy.cam.ac.uk:jonesc |
---|
18 | |
---|
19 | license LGPL-2.1+ |
---|
20 | |
---|
21 | description ROOT is a data analysis framework from CERN |
---|
22 | long_description The ROOT system provides a set of frameworks with all \ |
---|
23 | the functionality needed to handle and analyze large amounts \ |
---|
24 | of data in a very efficient way. This version provides a build \ |
---|
25 | of a snapshot of the ROOT 6 development version. \ |
---|
26 | For a stable release install the root port instead. |
---|
27 | homepage http://root.cern.ch/ |
---|
28 | platforms darwin |
---|
29 | |
---|
30 | conflicts root |
---|
31 | |
---|
32 | checksums rmd160 951c2c66e800e96ac0a3655c7da828feba8a0c72 \ |
---|
33 | sha256 6cc64fd0a00d6d9fcfa786a52f6028297b1d4ce83e7071479036ec9b7bd643a8 |
---|
34 | |
---|
35 | worksrcdir trunk |
---|
36 | configure.dir ${workpath}/build |
---|
37 | build.dir ${configure.dir} |
---|
38 | |
---|
39 | post-extract { |
---|
40 | file mkdir ${configure.dir} |
---|
41 | } |
---|
42 | |
---|
43 | depends_lib port:freetype \ |
---|
44 | port:xz \ |
---|
45 | port:pcre \ |
---|
46 | port:Xft2 \ |
---|
47 | port:xorg-libX11 \ |
---|
48 | port:zlib \ |
---|
49 | port:jpeg \ |
---|
50 | port:libpng \ |
---|
51 | port:giflib \ |
---|
52 | port:tiff \ |
---|
53 | port:gmp \ |
---|
54 | port:xpm \ |
---|
55 | port:expat |
---|
56 | |
---|
57 | patchfiles patch-configure.diff |
---|
58 | |
---|
59 | post-patch { |
---|
60 | reinplace "s|-lfreetype| \`freetype-config --libs\`|g" ${worksrcpath}/config/root-config.in |
---|
61 | # reinplace "s|\"/usr/include\"|\"${prefix}/include/\" \"/usr/include\"|g" ${worksrcpath}/configure |
---|
62 | # reinplace "s|/usr/lib |${prefix}/lib /usr/lib |g" ${worksrcpath}/configure |
---|
63 | # reinplace "s|/usr/include |${prefix}/include /usr/include |g" ${worksrcpath}/configure |
---|
64 | # reinplace "s|\"/usr/lib\"|\"${prefix}/lib/\" \"/usr/lib\"g|" ${worksrcpath}/configure |
---|
65 | } |
---|
66 | |
---|
67 | pre-configure { |
---|
68 | # configure.args-append \ |
---|
69 | # --with-cc=${configure.cc} \ |
---|
70 | # --with-cxx=${configure.cxx} \ |
---|
71 | # --with-ld=${configure.cxx} |
---|
72 | # if { ${configure.f77} != "" } { |
---|
73 | # configure.args-append --with-f77=${configure.f77} |
---|
74 | # } |
---|
75 | # # the build type (32 or 64 bit) -must- be for first argument |
---|
76 | # if {${build_arch} == "i386" || ${build_arch} == "ppc"} { |
---|
77 | # configure.pre_args macosx --prefix=${prefix} |
---|
78 | # } else { |
---|
79 | # configure.pre_args macosx64 --prefix=${prefix} |
---|
80 | # } |
---|
81 | } |
---|
82 | |
---|
83 | # I somehow miss (some of) the following variables |
---|
84 | # CMAKE_INSTALL_BINDIR bin |
---|
85 | # CMAKE_INSTALL_DATADIR |
---|
86 | # CMAKE_INSTALL_DATAROOTDIR share |
---|
87 | # CMAKE_INSTALL_DOCDIR |
---|
88 | # CMAKE_INSTALL_INCLUDEDIR include |
---|
89 | # CMAKE_INSTALL_LIBDIR lib |
---|
90 | |
---|
91 | |
---|
92 | #-DCMAKE_INSTALL_PREFIX=${prefix} |
---|
93 | |
---|
94 | configure.args-append -Dbuiltin_freetype=OFF \ |
---|
95 | -Dbuiltin_glew=OFF \ |
---|
96 | -Dbuiltin_lzma=OFF \ |
---|
97 | -Dbuiltin_pcre=OFF \ |
---|
98 | -Dbuiltin_zlib=OFF \ |
---|
99 | -Dfftw3=OFF \ |
---|
100 | -Dkrb5=OFF \ |
---|
101 | -Dldap=OFF \ |
---|
102 | -Dmysql=OFF \ |
---|
103 | -Dodbc=OFF \ |
---|
104 | -Dopengl=OFF \ |
---|
105 | -Dpythia6=OFF \ |
---|
106 | -Dpythia8=OFF \ |
---|
107 | -Droofit=OFF \ |
---|
108 | -Dssl=OFF \ |
---|
109 | -Dxml=OFF \ |
---|
110 | -Dpython=OFF \ |
---|
111 | -Dfitsio=OFF \ |
---|
112 | -Dgsl_shared=OFF \ |
---|
113 | -Dpgsql=OFF \ |
---|
114 | -Ddcache=OFF \ |
---|
115 | -Dchirp=OFF \ |
---|
116 | -Dhdfs=OFF \ |
---|
117 | -Druby=OFF \ |
---|
118 | -Dminuit2=OFF \ |
---|
119 | -Dtmva=OFF \ |
---|
120 | -Dqt=OFF \ |
---|
121 | -Dqtgsi=OFF \ |
---|
122 | -Dbonjour=OFF \ |
---|
123 | -Dgviz=OFF \ |
---|
124 | -Dsoversion=OFF \ |
---|
125 | -Dcocoa=OFF \ |
---|
126 | -Dcxx11=OFF \ |
---|
127 | -Dbuiltin_ftgl=ON \ |
---|
128 | -Dmathmore=ON \ |
---|
129 | -Dgenvector=ON \ |
---|
130 | -Dmemstat=ON \ |
---|
131 | -Dunuran=ON \ |
---|
132 | -Dtable=ON |
---|
133 | |
---|
134 | configure.post_args ${worksrcpath} |
---|
135 | |
---|
136 | # missing CMAKE_INSTALL_DOCDIR |
---|
137 | # --docdir=${prefix}/share/doc/root \ |
---|
138 | # missing CMAKE_INSTALL_LIBDIR |
---|
139 | # --libdir=${prefix}/lib/root \ |
---|
140 | # missing |
---|
141 | # --testdir=${prefix}/share/root/test \ |
---|
142 | # missing |
---|
143 | # --tutdir=${prefix}/share/root/tutorials \ |
---|
144 | # missing |
---|
145 | # --etcdir=${prefix}/etc/root \ |
---|
146 | # -> builtin_freetype, builtin_glew, builtin_pcre, builtin_zlib, builtin_lzma |
---|
147 | # (but there are some other variables: builtin_afterimage, builtin_cfitsio, builtin_llvm, builtin_xrootd) |
---|
148 | # builtin_gsl: excluded with gsl_shared |
---|
149 | # --disable-builtin-freetype \ |
---|
150 | # --disable-builtin-glew \ |
---|
151 | # --disable-builtin-pcre \ |
---|
152 | # --disable-builtin-zlib \ |
---|
153 | # --disable-builtin-lzma \ |
---|
154 | # -> fftw3 |
---|
155 | # --disable-fftw3 \ |
---|
156 | # -> krb5 |
---|
157 | # --disable-krb5 \ |
---|
158 | # -> ldap |
---|
159 | # --disable-ldap \ |
---|
160 | # -> mysql |
---|
161 | # --disable-mysql \ |
---|
162 | # -> odbc |
---|
163 | # --disable-odbc \ |
---|
164 | # -> opengl |
---|
165 | # --disable-opengl \ |
---|
166 | # -> pythia6 |
---|
167 | # --disable-pythia6 \ |
---|
168 | # -> pythia8 |
---|
169 | # --disable-pythia8 \ |
---|
170 | # ->>> all as expected |
---|
171 | # --disable-roofit \ |
---|
172 | # --disable-ssl \ |
---|
173 | # --disable-xml \ |
---|
174 | # --disable-python \ |
---|
175 | # --disable-fitsio \ |
---|
176 | # --disable-gsl-shared \ |
---|
177 | # --disable-pgsql \ |
---|
178 | # --disable-dcache \ |
---|
179 | # --disable-chirp \ |
---|
180 | # --disable-hdfs \ |
---|
181 | # --disable-ruby \ |
---|
182 | # --disable-minuit2 \ |
---|
183 | # --disable-tmva \ |
---|
184 | # --disable-qt \ |
---|
185 | # --disable-qtgsi \ |
---|
186 | # --disable-bonjour \ |
---|
187 | # --disable-gviz \ |
---|
188 | # --disable-soversion \ |
---|
189 | # -> cocoa |
---|
190 | # --disable-cocoa \ |
---|
191 | # -> cxx11 |
---|
192 | # --disable-c++11 \ |
---|
193 | # -> builtin_ftgl |
---|
194 | # --enable-builtin-ftgl \ |
---|
195 | # -> mathmore |
---|
196 | # --enable-mathmore \ |
---|
197 | # -> genvector |
---|
198 | # --enable-genvector \ |
---|
199 | # -> memstat |
---|
200 | # --enable-memstat \ |
---|
201 | # -> unuran |
---|
202 | # --enable-unuran \ |
---|
203 | # -> table |
---|
204 | # --enable-table \ |
---|
205 | # doesn't exist |
---|
206 | # --enable-fink |
---|
207 | |
---|
208 | universal_variant no |
---|
209 | |
---|
210 | default_variants +ssl +xml +gsl +minuit2 +tmva +roofit +graphviz +opengl +soversion |
---|
211 | |
---|
212 | variant soversion description {Build with soversion support} { |
---|
213 | configure.args-delete -Dsoversion=OFF |
---|
214 | configure.args-append -Dsoversion=ON |
---|
215 | } |
---|
216 | |
---|
217 | variant graphviz description {Build with graphviz support} { |
---|
218 | configure.args-delete -Dgviz=OFF |
---|
219 | configure.args-append -Dgviz=ON \ |
---|
220 | -DGRAPHVIZ_INCLUDE_DIR="${prefix}/include" \ |
---|
221 | -DGRAPHVIZ_CDT_LIBRARY="${prefix}/lib/libcdt.dylib" \ |
---|
222 | -DGRAPHVIZ_GRAPH_LIBRARY="${prefix}/lib/libgraph.dylib" \ |
---|
223 | -DGRAPHVIZ_GVC_LIBRARY="${prefix}/lib/libgvc.dylib" \ |
---|
224 | -DGRAPHVIZ_PATHPLAN_LIBRARY="${prefix}/lib/libpathplan.dylib" |
---|
225 | depends_lib-append path:bin/dot:graphviz |
---|
226 | } |
---|
227 | |
---|
228 | # TODO |
---|
229 | #variant avahi description {Build with avahi support} { |
---|
230 | # configure.args-delete --disable-bonjour |
---|
231 | # configure.args-append --enable-bonjour \ |
---|
232 | # --with-avahi-incdir="${prefix}/include" \ |
---|
233 | # --with-avahi-libdir="${prefix}/lib" |
---|
234 | # depends_lib-append port:avahi |
---|
235 | #} |
---|
236 | |
---|
237 | # TODO |
---|
238 | #variant fftw3 description {Build with fftw3 support} { |
---|
239 | # configure.args-delete --disable-fftw3 |
---|
240 | # configure.args-append --enable-fftw3 \ |
---|
241 | # --with-fftw3-incdir="${prefix}/include" \ |
---|
242 | # --with-fftw3-libdir="${prefix}/lib" |
---|
243 | # depends_lib-append port:fftw-3 |
---|
244 | #} |
---|
245 | |
---|
246 | variant gsl description {Build with gsl support} { |
---|
247 | configure.args-delete -Dgsl_shared=OFF |
---|
248 | configure.args-append -Dgsl_shared=ON \ |
---|
249 | -DGSL_CONFIG_EXECUTABLE="${prefix}/bin/gsl-config" |
---|
250 | depends_lib-append port:gsl |
---|
251 | } |
---|
252 | |
---|
253 | |
---|
254 | # TODO |
---|
255 | #variant fitsio description {Build with fitsio support} { |
---|
256 | # configure.args-delete --disable-fitsio |
---|
257 | # configure.args-append --enable-fitsio \ |
---|
258 | # --with-cfitsio-incdir="${prefix}/include" \ |
---|
259 | # --with-cfitsio-libdir="${prefix}/lib" |
---|
260 | # depends_lib-append port:cfitsio |
---|
261 | #} |
---|
262 | |
---|
263 | # TODO |
---|
264 | #variant odbc description {Build with odbc support} { |
---|
265 | # configure.args-delete --disable-odbc |
---|
266 | # configure.args-append --enable-odbc \ |
---|
267 | # --with-odbc-incdir="${prefix}/include" \ |
---|
268 | # --with-odbc-libdir="${prefix}/lib" |
---|
269 | # depends_lib-append port:libiodbc |
---|
270 | #} |
---|
271 | |
---|
272 | # TODO |
---|
273 | #variant ldap description {Build with ldap support} { |
---|
274 | # configure.args-delete --disable-ldap |
---|
275 | # configure.args-append --enable-ldap \ |
---|
276 | # --with-ldap-incdir="${prefix}/include" \ |
---|
277 | # --with-ldap-libdir="${prefix}/lib" |
---|
278 | # depends_lib-append port:openldap |
---|
279 | #} |
---|
280 | |
---|
281 | variant roofit description {Build the RooFit advanced fitting package} { |
---|
282 | configure.args-delete -Droofit=OFF |
---|
283 | configure.args-append -Droofit=ON |
---|
284 | } |
---|
285 | |
---|
286 | variant tmva description {Build the TMVA package} { |
---|
287 | configure.args-delete -Dtmva=OFF |
---|
288 | configure.args-append -Dtmva=ON |
---|
289 | } |
---|
290 | |
---|
291 | variant minuit2 description {Build with minuit2 support} { |
---|
292 | configure.args-delete -Dminuit2=OFF |
---|
293 | configure.args-append -Dminuit2=ON |
---|
294 | } |
---|
295 | |
---|
296 | variant opengl description {Build with opengl support} { |
---|
297 | configure.args-delete -Dopengl=OFF |
---|
298 | configure.args-delete -Dbuiltin_glew=OFF |
---|
299 | configure.args-append -Dopengl=ON -Dbuiltin_glew=ON |
---|
300 | } |
---|
301 | |
---|
302 | # TODO |
---|
303 | #variant python26 conflicts python32 python31 python27 description {Build with python 2.6 support} { |
---|
304 | # set mypydir ${prefix}/Library/Frameworks/Python.framework/Versions/2.6 |
---|
305 | # configure.args-delete --disable-python |
---|
306 | # configure.args-append --enable-python --with-python-incdir="${mypydir}/Headers" --with-python-libdir="${mypydir}" |
---|
307 | # depends_lib-append port:python26 |
---|
308 | # post-destroot { |
---|
309 | # set mypylibdir ${prefix}/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6 |
---|
310 | # set mypysitedir ${mypylibdir}/site-packages/ |
---|
311 | # file mkdir ${destroot}${mypysitedir} |
---|
312 | # foreach pyfile [glob ${destroot}${prefix}/lib/root/*.py*] { move $pyfile ${destroot}${mypysitedir} } |
---|
313 | # ln -sf ${prefix}/lib/root/libPyROOT.so ${destroot}${mypylibdir}/ |
---|
314 | # } |
---|
315 | #} |
---|
316 | # |
---|
317 | #variant python27 conflicts python32 python31 python26 description {Build with python 2.7 support} { |
---|
318 | # set mypydir ${prefix}/Library/Frameworks/Python.framework/Versions/2.7 |
---|
319 | # configure.args-delete --disable-python |
---|
320 | # configure.args-append --enable-python \ |
---|
321 | # --with-python-incdir="${mypydir}/Headers" \ |
---|
322 | # --with-python-libdir="${mypydir}" |
---|
323 | # depends_lib-append port:python27 |
---|
324 | # post-destroot { |
---|
325 | # set mypylibdir ${prefix}/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7 |
---|
326 | # set mypysitedir ${mypylibdir}/site-packages/ |
---|
327 | # file mkdir ${destroot}${mypysitedir} |
---|
328 | # foreach pyfile [glob ${destroot}${prefix}/lib/root/*.py*] { move $pyfile ${destroot}${mypysitedir} } |
---|
329 | # ln -sf ${prefix}/lib/root/libPyROOT.so ${destroot}${mypylibdir}/ |
---|
330 | # } |
---|
331 | #} |
---|
332 | # |
---|
333 | #variant python31 conflicts python32 python27 python26 description {Build with python 3.1 support} { |
---|
334 | # set mypydir ${prefix}/Library/Frameworks/Python.framework/Versions/3.1 |
---|
335 | # configure.args-delete --disable-python |
---|
336 | # configure.args-append --enable-python --with-python-incdir="${mypydir}/Headers" --with-python-libdir="${mypydir}" |
---|
337 | # depends_lib-append port:python31 |
---|
338 | # post-destroot { |
---|
339 | # set mypylibdir ${prefix}/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1 |
---|
340 | # set mypysitedir ${mypylibdir}/site-packages/ |
---|
341 | # file mkdir ${destroot}${mypysitedir} |
---|
342 | # foreach pyfile [glob ${destroot}${prefix}/lib/root/*.py*] { move $pyfile ${destroot}${mypysitedir} } |
---|
343 | # ln -sf ${prefix}/lib/root/libPyROOT.so ${destroot}${mypylibdir}/ |
---|
344 | # } |
---|
345 | #} |
---|
346 | # |
---|
347 | #variant python32 conflicts python31 python27 python26 description {Build with python 3.2 support} { |
---|
348 | # set mypydir ${prefix}/Library/Frameworks/Python.framework/Versions/3.2 |
---|
349 | # configure.args-delete --disable-python |
---|
350 | # configure.args-append --enable-python \ |
---|
351 | # --with-python-incdir="${mypydir}/Headers" \ |
---|
352 | # --with-python-libdir="${mypydir}" |
---|
353 | # depends_lib-append port:python32 |
---|
354 | # post-destroot { |
---|
355 | # set mypylibdir ${prefix}/Library/Frameworks/Python.framework/Versions/3.2/lib/python3.2 |
---|
356 | # set mypysitedir ${mypylibdir}/site-packages/ |
---|
357 | # file mkdir ${destroot}${mypysitedir} |
---|
358 | # foreach pyfile [glob ${destroot}${prefix}/lib/root/*.py*] { move $pyfile ${destroot}${mypysitedir} } |
---|
359 | # ln -sf ${prefix}/lib/root/libPyROOT.so ${destroot}${mypylibdir}/ |
---|
360 | # } |
---|
361 | #} |
---|
362 | |
---|
363 | variant ssl description {Build with ssl support} { |
---|
364 | configure.args-delete -Dssl=OFF |
---|
365 | configure.args-append -Dssl=ON \ |
---|
366 | -DOPENSSL_INCLUDE_DIR="${prefix}/include" \ |
---|
367 | -DOPENSSL_SSL_LIBRARY="${prefix}/lib/libssl.dylib" \ |
---|
368 | -DOPENSSL_CRYPTO_LIBRARY="${prefix}/lib/libcrypto.dylib" |
---|
369 | depends_lib-append port:openssl |
---|
370 | # not sure what this did |
---|
371 | # --with-ssl-shared=yes |
---|
372 | } |
---|
373 | |
---|
374 | variant xml description {Build with xml support} { |
---|
375 | configure.args-delete -Dxml=OFF |
---|
376 | configure.args-append -Dxml=ON \ |
---|
377 | -DLIBXML2_INCLUDE_DIR="${prefix}/include/libxml2" \ |
---|
378 | -DLIBXML2_LIBRARIES="${prefix}/lib/libxml2.dylib" \ |
---|
379 | -DLIBXML2_XMLLINT_EXECUTABLE="${prefix}/bin/xmllint" |
---|
380 | depends_lib-append port:libxml2 |
---|
381 | } |
---|
382 | |
---|
383 | # TODO |
---|
384 | #variant mysql conflicts mysql51 mysql55 mariadb percona description {Build with mysql5 support} { |
---|
385 | # configure.args-delete --disable-mysql |
---|
386 | # configure.args-append --enable-mysql \ |
---|
387 | # --with-mysql-incdir="${prefix}/include/mysql5/mysql" \ |
---|
388 | # --with-mysql-libdir="${prefix}/lib/mysql5/mysql" |
---|
389 | # depends_lib-append port:mysql5 |
---|
390 | #} |
---|
391 | # |
---|
392 | #variant mysql51 conflicts mysql mysql55 mariadb percona description {Build with mysql51 support} { |
---|
393 | # configure.args-delete --disable-mysql |
---|
394 | # configure.args-append --enable-mysql \ |
---|
395 | # --with-mysql-incdir="${prefix}/include/mysql51/mysql" \ |
---|
396 | # --with-mysql-libdir="${prefix}/lib/mysql51/mysql" |
---|
397 | # depends_lib-append port:mysql51 |
---|
398 | #} |
---|
399 | # |
---|
400 | #variant mysql55 conflicts mysql mysql51 mariadb percona description {Build with mysql55 support} { |
---|
401 | # configure.args-delete --disable-mysql |
---|
402 | # configure.args-append --enable-mysql \ |
---|
403 | # --with-mysql-incdir="${prefix}/include/mysql55/mysql" \ |
---|
404 | # --with-mysql-libdir="${prefix}/lib/mysql55/mysql" |
---|
405 | # depends_lib-append port:mysql55 |
---|
406 | #} |
---|
407 | # |
---|
408 | #variant mariadb conflicts mysql mysql51 mysql55 percona description {Build with mariadb support} { |
---|
409 | # configure.args-delete --disable-mysql |
---|
410 | # configure.args-append --enable-mysql \ |
---|
411 | # --with-mysql-incdir="${prefix}/include/mariadb/mysql" \ |
---|
412 | # --with-mysql-libdir="${prefix}/lib/mariadb/mysql" |
---|
413 | # depends_lib-append port:mariadb |
---|
414 | #} |
---|
415 | # |
---|
416 | #variant percona conflicts mysql mysql51 mysql55 mariadb description {Build with percona support} { |
---|
417 | # configure.args-delete --disable-mysql |
---|
418 | # configure.args-append --enable-mysql \ |
---|
419 | # --with-mysql-incdir="${prefix}/include/percona/mysql" \ |
---|
420 | # --with-mysql-libdir="${prefix}/lib/percona/mysql" |
---|
421 | # depends_lib-append port:percona |
---|
422 | #} |
---|
423 | # |
---|
424 | #variant postgresql90 conflicts postgresql92 description {Build with PostgreSQL 9.0 support} { |
---|
425 | # configure.args-delete --disable-pgsql |
---|
426 | # configure.args-append --enable-pgsql \ |
---|
427 | # --with-pgsql-incdir="${prefix}/include/postgresql90" \ |
---|
428 | # --with-pgsql-libdir="${prefix}/lib/postgresql90" |
---|
429 | # depends_lib-append port:libpqxx port:postgresql90 |
---|
430 | #} |
---|
431 | # |
---|
432 | #variant postgresql92 conflicts postgresql90 description {Build with PostgreSQL 9.2 support} { |
---|
433 | # configure.args-delete --disable-pgsql |
---|
434 | # configure.args-append --enable-pgsql \ |
---|
435 | # --with-pgsql-incdir="${prefix}/include/postgresql92" \ |
---|
436 | # --with-pgsql-libdir="${prefix}/lib/postgresql92" |
---|
437 | # depends_lib-append port:libpqxx port:postgresql92 |
---|
438 | #} |
---|
439 | |
---|
440 | # TODO |
---|
441 | #variant pythia description {Pythia 8 support for root} { |
---|
442 | # configure.args-delete --disable-pythia8 |
---|
443 | # configure.args-append --enable-pythia8 \ |
---|
444 | # --with-pythia8-incdir=${prefix}/include \ |
---|
445 | # --with-pythia8-libdir=${prefix}/lib |
---|
446 | # depends_lib-append port:pythia |
---|
447 | #} |
---|
448 | |
---|
449 | # TODO |
---|
450 | #variant cocoa description {Enables native OSX graphical backend instead of X11} { |
---|
451 | # # Check we are using a clang compiler |
---|
452 | # pre-fetch { |
---|
453 | # if { ![string match "*clang*" ${configure.compiler}] } { |
---|
454 | # ui_error "The cocoa variant is experimental and can currently only be built" |
---|
455 | # ui_error "using a clang compiler. Your current compiler is ${configure.compiler}." |
---|
456 | # ui_error "Please try again using the system" |
---|
457 | # ui_error "clang compiler using configure.compiler=clang" |
---|
458 | # return -code error "Unsupported compiler for cocoa support" |
---|
459 | # } |
---|
460 | # } |
---|
461 | # # Enable cocoa support in configure |
---|
462 | # configure.args-delete --disable-cocoa |
---|
463 | # configure.args-append --enable-cocoa |
---|
464 | # # patch afterimage build to make sure TIFF suport is disabled. Causes problems with cocoa... |
---|
465 | # patchfiles-append patch-builtin-afterimage-disabletiff.diff |
---|
466 | #} |
---|
467 | |
---|
468 | # these options have been added just for the sake of setting the fortran compiler; |
---|
469 | # (testing gcc compiler is left for later on) |
---|
470 | # for g95 compiler one needs to remove a FFLAG from Root sources first |
---|
471 | variant gcc45 conflicts gcc46 gcc47 gcc48 description {Compile using MacPorts gcc 4.5} { |
---|
472 | # configure.compiler macports-gcc-4.5 |
---|
473 | configure.fc ${prefix}/bin/gfortran-mp-4.5 |
---|
474 | configure.args-append -DCMAKE_Fortran_COMPILER=\"${configure.fc}\" |
---|
475 | depends_lib-append port:gcc45 |
---|
476 | } |
---|
477 | |
---|
478 | variant gcc46 conflicts gcc45 gcc47 gcc48 description {Compile using MacPorts gcc 4.6} { |
---|
479 | # configure.compiler macports-gcc-4.6 |
---|
480 | configure.fc ${prefix}/bin/gfortran-mp-4.6 |
---|
481 | configure.args-append -DCMAKE_Fortran_COMPILER=\"${configure.fc}\" |
---|
482 | depends_lib-append port:gcc46 |
---|
483 | } |
---|
484 | |
---|
485 | variant gcc47 conflicts gcc45 gcc46 gcc48 description {Compile using MacPorts gcc 4.7} { |
---|
486 | # configure.compiler macports-gcc-4.7 |
---|
487 | configure.fc ${prefix}/bin/gfortran-mp-4.7 |
---|
488 | configure.args-append -DCMAKE_Fortran_COMPILER=\"${configure.fc}\" |
---|
489 | depends_lib-append port:gcc47 |
---|
490 | } |
---|
491 | |
---|
492 | variant gcc48 conflicts gcc45 gcc46 gcc47 description {Compile using MacPorts gcc 4.8} { |
---|
493 | # configure.compiler macports-gcc-4.8 |
---|
494 | configure.fc ${prefix}/bin/gfortran-mp-4.8 |
---|
495 | configure.args-append -DCMAKE_Fortran_COMPILER=\"${configure.fc}\" |
---|
496 | depends_lib-append port:gcc48 |
---|
497 | } |
---|
498 | |
---|
499 | # TODO |
---|
500 | #if {[variant_isset qt_mac]} { |
---|
501 | # PortGroup qt4 1.0 |
---|
502 | #} |
---|
503 | # |
---|
504 | #variant qt_mac description {Build with Qt support via Mac UI} { |
---|
505 | # post-patch { |
---|
506 | # # fix where "qglobal.h" is found in all files that use or reference it |
---|
507 | # foreach tpf { configure graf2d/qt/src/TGQt.cxx } { |
---|
508 | # reinplace "s@Qt/qglobal\\.h@QtCore/qglobal\\.h@g" \ |
---|
509 | # ${worksrcpath}/${tpf} |
---|
510 | # } |
---|
511 | # reinplace "/qttestdir/s@Qt@QtCore@g" ${worksrcpath}/configure |
---|
512 | # |
---|
513 | # # fix library search extensions to include ".la" |
---|
514 | # # for Qt framework libraries (only) |
---|
515 | # reinplace "s@\\(\\.so \\.sl \\.dylib \\.dll\\.a\\)@\\1 \\.la@g" \ |
---|
516 | # ${worksrcpath}/configure |
---|
517 | # } |
---|
518 | # |
---|
519 | # configure.args-delete --disable-qt |
---|
520 | # configure.args-delete --disable-qtgsi |
---|
521 | # configure.args-append --enable-qt --enable-qtgsi \ |
---|
522 | # --with-qt-incdir="${prefix}/include" \ |
---|
523 | # --with-qt-libdir="${prefix}/lib" |
---|
524 | # depends_lib-append port:qt4-mac |
---|
525 | # |
---|
526 | # post-configure { |
---|
527 | # # patch up the Makefile.config to handle the QTLIB frameworks correctly |
---|
528 | # reinplace "/QTLIB\[ \]/s@:= @:= -F${qt_libs_dir} @" \ |
---|
529 | # ${worksrcpath}/config/Makefile.config |
---|
530 | # reinplace "/QTLIB\[ \]/s@\\(Qt\[^ \]*\\).la@-framework \\1@g" \ |
---|
531 | # ${worksrcpath}/config/Makefile.config |
---|
532 | # } |
---|
533 | #} |
---|
534 | |
---|
535 | livecheck.type regex |
---|
536 | livecheck.url http://root.cern.ch/svn/root/trunk |
---|
537 | #livecheck.regex ${name}_v(\[0-9a-z.\]+)\\.source |
---|
538 | |
---|
539 | # ======================================================================================== |
---|
540 | # The following have build issues, are obsolete or experimental. |
---|
541 | # ======================================================================================== |
---|
542 | |
---|
543 | # Intefers with builtin freetype build (enforced by cocoa variant) |
---|
544 | # Also do not seem to be actually needed any more |
---|
545 | #pre-build { |
---|
546 | # build.args CC=${configure.cc} \ |
---|
547 | # CXX=${configure.cxx} \ |
---|
548 | # F77=${configure.f77} |
---|
549 | #} |
---|
550 | |
---|
551 | # variant ruby description {Build with ruby support} { |
---|
552 | # configure.args-delete --disable-ruby |
---|
553 | # configure.args-append --enable-ruby |
---|
554 | # depends_lib-append port:ruby |
---|
555 | # } |
---|
556 | |
---|
557 | # variant kerberos5 description {Build with kerberos5 support} { |
---|
558 | # configure.args-delete --disable-krb5 |
---|
559 | # configure.args-append --enable-krb5 \ |
---|
560 | # --with-krb5-incdir="${prefix}/include" \ |
---|
561 | # --with-krb5-libdir="${prefix}/lib" |
---|
562 | # depends_lib-append port:kerberos5 |
---|
563 | # } |
---|
564 | |
---|
565 | # variant ftgl description {Build with ftgl support} { |
---|
566 | # configure.args-delete --enable-builtin-ftgl |
---|
567 | # configure.args-append --disable-builtin-ftgl \ |
---|
568 | # configure.args-append --with-ftgl-incdir="${prefix}/include" \ |
---|
569 | # --with-ftgl-libdir="${prefix}/lib" |
---|
570 | # depends_lib-append port:ftgl |
---|
571 | # } |
---|
572 | |
---|
573 | # variant qt_x11 conflicts qt_mac description {Build with Qt support via X11 UI} { |
---|
574 | # # fix where "qglobal.h" is found in all files that use or reference it |
---|
575 | # post-patch { |
---|
576 | # foreach tpf { configure graf2d/qt/src/TGQt.cxx } { |
---|
577 | # reinplace "s@Qt/qglobal\\.h@QtCore/qglobal\\.h@g" \ |
---|
578 | # ${worksrcpath}/${tpf} |
---|
579 | # } |
---|
580 | # reinplace "/qttestdir/s@Qt@QtCore@g" ${worksrcpath}/configure |
---|
581 | # } |
---|
582 | |
---|
583 | # configure.env-append QTDIR=${prefix}/libexec/qt4-x11 |
---|
584 | # configure.args-delete --disable-qt |
---|
585 | # configure.args-delete --disable-qtgsi |
---|
586 | # configure.args-append --enable-qt --enable-qtgsi \ |
---|
587 | # --with-qt-incdir="${prefix}/include" \ |
---|
588 | # --with-qt-libdir="${prefix}/lib" |
---|
589 | # depends_lib-append port:qt4-x11 |
---|
590 | # } |
---|