source: trunk/dports/science/root5/Portfile @ 119871

Last change on this file since 119871 was 119871, checked in by mojca@…, 5 years ago

root: new ports root5, root6, root_select

  • root: replaced by root5
  • root6: new CMake-based installation of ROOT 6
  • root_select: easy switching between ROOT5 and 6
  • revbump iAIDA
  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 26.0 KB
Line 
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: Portfile 119871 2014-05-08 20:29:26Z mojca@macports.org $
3
4PortSystem          1.0
5
6PortGroup           active_variants 1.1
7PortGroup           select 1.0
8
9name                root5
10version             5.34.18
11set version_major   5
12
13categories          science
14maintainers         gmail.com:mattiafrancescomoro hep.phy.cam.ac.uk:jonesc
15license             LGPL-2.1+
16description         ROOT is a data analysis framework from CERN
17long_description    The ROOT system provides a set of frameworks with all \
18                    the functionality needed to handle and analyze large amounts \
19                    of data in a very efficient way
20homepage            http://root.cern.ch/
21platforms           darwin
22distname            root_v${version}.source
23master_sites        http://root.cern.ch/download/ \
24                    ftp://root.cern.ch/root/
25
26checksums           rmd160  2fbaff8f831611779b42480fcb86cbde34ef72bd \
27                    sha256  9196dce7d76b31e5bcabd985bd31bc4d9b7c8c4d0c7ce84f730efa4ef82a3567
28
29worksrcdir          root
30
31depends_lib         port:xz \
32                    port:pcre \
33                    port:zlib \
34                    port:jpeg \
35                    port:libpng \
36                    port:giflib \
37                    port:tiff \
38                    port:gmp \
39                    port:expat \
40                    port:lzma
41                  # port:freetype
42
43depends_run         port:root_select
44
45# TODO: the file ${filespath}/${name} would have to be generated on the fly instead
46select.group        root
47select.file         ${filespath}/${name}
48
49post-patch {
50#   reinplace "s|-lfreetype| \`freetype-config --libs\`|g" ${worksrcpath}/config/root-config.in
51    reinplace "s|\"/usr/include\"|\"${prefix}/include /usr/include\"|g" ${worksrcpath}/configure
52    reinplace "s|/usr/lib |${prefix}/lib /usr/lib |g" ${worksrcpath}/configure
53    reinplace "s|/usr/include |${prefix}/include /usr/include |g" ${worksrcpath}/configure
54    reinplace "s|\"/usr/lib\"|\"${prefix}/lib /usr/lib\"|g" ${worksrcpath}/configure
55}
56
57# port specific location
58set install_prefix ${prefix}/libexec/root${version_major}
59
60pre-configure {
61    configure.args-append \
62        --with-cc=${configure.cc} \
63        --with-cxx=${configure.cxx} \
64        --with-ld=${configure.cxx} \
65        --with-f77=${configure.f77}
66    # the build type (32 or 64 bit) -must- be for first argument
67    if {${build_arch} eq "i386" || ${build_arch} eq "ppc"} {
68        configure.pre_args macosx --prefix=${install_prefix}
69    } else {
70        configure.pre_args macosx64 --prefix=${install_prefix}
71    }
72}
73
74configure.args      --etcdir=${install_prefix}/etc/root \
75                    --disable-builtin-glew \
76                    --disable-builtin-pcre \
77                    --disable-builtin-zlib \
78                    --disable-builtin-lzma \
79                    --disable-fftw3 \
80                    --disable-krb5 \
81                    --disable-ldap \
82                    --disable-mysql \
83                    --disable-sqlite \
84                    --disable-odbc \
85                    --disable-opengl \
86                    --disable-pythia6 \
87                    --disable-pythia8 \
88                    --disable-roofit \
89                    --disable-ssl \
90                    --disable-xml \
91                    --disable-python \
92                    --disable-fitsio \
93                    --disable-gsl-shared \
94                    --disable-pgsql \
95                    --disable-dcache \
96                    --disable-chirp \
97                    --disable-hdfs \
98                    --disable-ruby \
99                    --disable-minuit2 \
100                    --disable-tmva \
101                    --disable-qt \
102                    --disable-qtgsi \
103                    --disable-bonjour \
104                    --disable-gviz \
105                    --disable-soversion \
106                    --disable-c++11 \
107                    --disable-xrootd \
108                    --disable-oracle \
109                    --enable-builtin-ftgl \
110                    --enable-mathmore \
111                    --enable-genvector \
112                    --enable-memstat \
113                    --enable-unuran \
114                    --enable-reflex \
115                    --enable-table \
116                    --enable-fink \
117                    --enable-gdml \
118                    --enable-builtin-freetype
119
120# TODO: Check ${configure.cxx_stdlib} directly once MacPorts 2.3 is released
121platform darwin {
122    set cxxstdlib {}
123
124    if {[info exists configure.cxx_stdlib] &&
125        ${configure.cxx_stdlib} ne {} &&
126        [string match *clang* ${configure.cxx}]} {
127        set cxxstdlib ${configure.cxx_stdlib}
128    } elseif {[string match *clang* ${configure.cxx}] &&
129              ${os.major} >= 13} {
130        set cxxstdlib libc++
131    } else {
132        set cxxstdlib libstdc++
133    }
134
135    if {${cxxstdlib} eq "libc++"} {
136        configure.args-delete --disable-c++11
137        configure.args-append --enable-c++11
138    }
139}
140
141post-destroot {
142    # create versioned symlinks for the content of libexec
143    # bin dir
144    foreach f [glob -directory ${destroot}${install_prefix}/bin *] {
145        set filename  [file tail $f]
146        set extension [file extension $filename]
147        set base      [file rootname $filename]
148        set versioned_filename ${base}${version_major}${extension}
149        ln -s ${install_prefix}/bin/${filename} ${destroot}${prefix}/bin/${versioned_filename}
150    }
151    # lib dir
152    ln -s ${install_prefix}/lib/root ${destroot}${prefix}/lib/root${version_major}
153    # include dir
154    ln -s ${install_prefix}/include/root ${destroot}${prefix}/include/root${version_major}
155    # etc dir
156    ln -s ${install_prefix}/etc/root ${destroot}${prefix}/etc/root${version_major}
157    # share dir
158    ln -s ${install_prefix}/share ${destroot}${prefix}/share/root${version_major}
159    # 'Fix' genreflex
160    reinplace "s|lib/python/genreflex|lib/root${version_major}/python/genreflex|g" ${destroot}${install_prefix}/bin/genreflex
161    # Compress manpages in custom location (borrowed from mariadb)
162    set manpath ${install_prefix}/share/man
163    set gzip [findBinary gzip ${portutil::autoconf::gzip_path}]
164    foreach manpage [glob -type f ${destroot}${manpath}/man1/*] {
165        # Zip the man file
166        system "$gzip -9vf ${manpage}"
167        # Create man pages for versioned files
168        set filename  [file tail $manpage]
169        set extension [file extension $filename]
170        set base      [file rootname $filename]
171        set versioned_filename ${base}${version_major}${extension}.gz
172        set d [file tail $manpage]
173        ln -s ${manpath}/man1/${d}.gz ${destroot}${prefix}/share/man/man1/${versioned_filename}
174    }
175}
176
177set run_port_select "No"
178pre-activate {
179  if { ![file exists ${prefix}/bin/root]  &&
180       ![file exists ${prefix}/bin/root5] &&
181       ![file exists ${prefix}/bin/root6] } {
182     set run_port_select "Yes"
183  }
184}
185
186post-activate {
187  ui_msg "======================================================================================"
188  if { ${run_port_select} == "Yes" } {
189      ui_msg "  Making root${version_major} your default root version. To change this run 'sudo port select root'"
190      catch { system "port select root root${version_major}" }
191  } else {
192      ui_msg "  To make root${version_major} your default root version, run 'sudo port select root root${version_major}'"
193  }
194  ui_msg "======================================================================================"
195}
196
197universal_variant   no
198
199default_variants    +ssl +xml +gsl +minuit2 +tmva +roofit +graphviz +opengl +soversion
200
201# Since ROOT 5.34.15 the cocoa backend is default on OSX 10.8 or newer
202# We also make it default on 10.7
203if {${os.major} > 10} {
204    set default_gui_variant +cocoa
205} else {
206    set default_gui_variant +x11
207}
208
209variant debug description {Enable a debug build} {
210    configure.args-append --build=debug
211}
212
213variant xrootd description {Build with XRootD support} {
214    configure.args-delete   --disable-xrootd
215    configure.args-append   --enable-xrootd \
216                            --with-xrootd-incdir="${prefix}/include/xrootd" \
217                            --with-xrootd-libdir="${prefix}/lib"
218    depends_lib-append      port:xrootd
219}
220
221variant soversion description {Build with soversion support} {
222    configure.args-delete   --disable-soversion
223    configure.args-append   --enable-soversion
224}
225
226variant graphviz description {Build with graphviz support} {
227    configure.args-delete   --disable-gviz
228    configure.args-append   --enable-gviz \
229                            --with-gviz-incdir="${prefix}/include/graphviz" \
230                            --with-gviz-libdir="${prefix}/lib"
231    depends_lib-append      path:bin/dot:graphviz
232}
233
234variant avahi description {Build with avahi support} {
235    configure.args-delete   --disable-bonjour
236    configure.args-append   --enable-bonjour \
237                            --with-avahi-incdir="${prefix}/include" \
238                            --with-avahi-libdir="${prefix}/lib"
239    depends_lib-append      port:avahi
240}
241
242variant fftw3 description {Build with fftw3 support} {
243    configure.args-delete   --disable-fftw3
244    configure.args-append   --enable-fftw3 \
245                            --with-fftw3-incdir="${prefix}/include" \
246                            --with-fftw3-libdir="${prefix}/lib"
247    depends_lib-append      port:fftw-3
248}
249
250variant gsl description {Build with gsl support} {
251    configure.args-delete   --disable-gsl-shared
252    configure.args-append   --enable-gsl-shared \
253                            --with-gsl-incdir="${prefix}/include" \
254                            --with-gsl-libdir="${prefix}/lib"
255    depends_lib-append      port:gsl
256}
257
258variant fitsio description {Build with fitsio support} {
259    configure.args-delete   --disable-fitsio
260    configure.args-append   --enable-fitsio \
261                            --with-cfitsio-incdir="${prefix}/include" \
262                            --with-cfitsio-libdir="${prefix}/lib"
263    depends_lib-append      port:cfitsio
264}
265
266variant odbc description {Build with odbc support} {
267    configure.args-delete   --disable-odbc
268    configure.args-append   --enable-odbc \
269                            --with-odbc-incdir="${prefix}/include" \
270                            --with-odbc-libdir="${prefix}/lib"
271    depends_lib-append      port:libiodbc
272}
273
274variant ldap description {Build with ldap support} {
275    configure.args-delete   --disable-ldap
276    configure.args-append   --enable-ldap \
277                            --with-ldap-incdir="${prefix}/include" \
278                            --with-ldap-libdir="${prefix}/lib"
279    depends_lib-append      port:openldap
280}
281
282variant roofit description {Build the RooFit advanced fitting package} {
283    configure.args-delete   --disable-roofit
284    configure.args-append   --enable-roofit
285}
286
287variant tmva description {Build the TMVA package} {
288    configure.args-delete   --disable-tmva
289    configure.args-append   --enable-tmva
290    post-destroot {
291        set tmvaTuts ${destroot}${install_prefix}/share/root/tutorial/tmva
292        file mkdir ${tmvaTuts}
293        foreach f [glob ${worksrcpath}/tmva/test/*] { file copy $f ${tmvaTuts}/ }
294    }
295}
296
297variant minuit2 description {Build with minuit2 support} {
298    configure.args-delete   --disable-minuit2
299    configure.args-append   --enable-minuit2
300}
301
302variant opengl description {Build with opengl support} {
303    configure.args-delete   --disable-opengl
304    configure.args-delete   --disable-builtin-glew
305    configure.args-append   --enable-opengl --enable-builtin-glew
306}
307
308# ========================================================================================
309# Setup various python variants
310# ========================================================================================
311
312# List of possible python versions
313set python_versions { 2.6 2.7 3.1 3.2 3.3 3.4 }
314
315# Define the available variants
316foreach ver ${python_versions} {
317    set ver_no_dot [join [split ${ver} "."] ""]
318    set variant_line {variant python${ver_no_dot} description "Build with python ${ver} support"}
319    foreach over ${python_versions} {
320        if { ${ver} == ${over} } { continue }
321        set over_no_dot [join [split ${over} "."] ""]
322        append variant_line " conflicts python${over_no_dot}"
323    }
324    append variant_line { { } }
325    eval $variant_line
326}
327
328# Is a variant active ?
329set active_python_variant ""
330foreach ver ${python_versions} {
331    set ver_no_dot [join [split ${ver} "."] ""]
332    if {[variant_isset python${ver_no_dot}]} {
333        set active_python_variant ${ver}
334    }
335}
336
337# If so, set it up.
338if { ${active_python_variant} != "" } {
339    set ver_no_dot [join [split ${active_python_variant} "."] ""]
340    if {![catch {set result [active_variants root6 python${ver_no_dot}]}]} {
341        if {$result} {
342            ui_error "Cannot install ${name} with +python${ver_no_dot} variant"
343            return -code error "root6 port is already installed with +python${ver_no_dot} and both cannot be active at once. Pick a different python variant."
344        }
345    }
346    set mypydir ${prefix}/Library/Frameworks/Python.framework/Versions/${active_python_variant}
347    configure.args-delete   --disable-python
348    configure.args-append   --enable-python \
349                            --with-python-incdir="${mypydir}/Headers" \
350                            --with-python-libdir="${mypydir}"
351    depends_lib-append      port:python${ver_no_dot}
352    post-destroot {
353        set mypylibdir  ${prefix}/Library/Frameworks/Python.framework/Versions/${active_python_variant}/lib/python${active_python_variant}
354        set mypysitedir ${mypylibdir}/site-packages/
355        file mkdir ${destroot}${mypysitedir}
356        foreach pyfile [glob ${destroot}${install_prefix}/lib/root/*.py*] { move $pyfile ${destroot}${mypysitedir}/ }
357        ln -sf ${install_prefix}/lib/root/libPyROOT.so ${destroot}${mypylibdir}/
358    }
359}
360
361# ========================================================================================
362
363variant ssl description {Build with ssl support} {
364    configure.args-delete   --disable-ssl
365    configure.args-append   --enable-ssl \
366                            --with-ssl-shared=yes \
367                            --with-ssl-incdir="${prefix}/include" \
368                            --with-ssl-libdir="${prefix}/lib"
369    depends_lib-append      port:openssl
370}
371
372variant xml description {Build with xml support} {
373    configure.args-delete   --disable-xml
374    configure.args-append   --enable-xml \
375                            --with-xml-incdir="${prefix}/include/libxml2" \
376                            --with-xml-libdir="${prefix}/lib"
377    depends_lib-append      port:libxml2
378}
379
380variant sqlite3 description {Build with sqlite3 support} {
381    configure.args-delete   --disable-sqlite
382    configure.args-append   --enable-sqlite \
383                            --with-sqlite-incdir="${prefix}/include" \
384                            --with-sqlite-libdir="${prefix}/lib"
385    depends_lib-append      port:sqlite3
386}
387
388variant mysql conflicts mysql51 mysql55 mariadb percona description {Build with mysql5 support} {
389    configure.args-delete   --disable-mysql
390    configure.args-append   --enable-mysql \
391                            --with-mysql-incdir="${prefix}/include/mysql5/mysql" \
392                            --with-mysql-libdir="${prefix}/lib/mysql5/mysql"
393    depends_lib-append      port:mysql5
394}
395
396variant mysql51 conflicts mysql mysql55 mariadb percona description {Build with mysql51 support} {
397    configure.args-delete   --disable-mysql
398    configure.args-append   --enable-mysql \
399                            --with-mysql-incdir="${prefix}/include/mysql51/mysql" \
400                            --with-mysql-libdir="${prefix}/lib/mysql51/mysql"
401    depends_lib-append      port:mysql51
402}
403
404variant mysql55 conflicts mysql mysql51 mariadb percona description {Build with mysql55 support} {
405    configure.args-delete   --disable-mysql
406    configure.args-append   --enable-mysql \
407                            --with-mysql-incdir="${prefix}/include/mysql55/mysql" \
408                            --with-mysql-libdir="${prefix}/lib/mysql55/mysql"
409    depends_lib-append      port:mysql55
410}
411
412variant mariadb conflicts mysql mysql51 mysql55 percona description {Build with mariadb support} {
413    configure.args-delete   --disable-mysql
414    configure.args-append   --enable-mysql \
415                            --with-mysql-incdir="${prefix}/include/mariadb/mysql" \
416                            --with-mysql-libdir="${prefix}/lib/mariadb/mysql"
417    depends_lib-append      port:mariadb
418}
419
420variant percona conflicts mysql mysql51 mysql55 mariadb description {Build with percona support} {
421    configure.args-delete   --disable-mysql
422    configure.args-append   --enable-mysql \
423                            --with-mysql-incdir="${prefix}/include/percona/mysql" \
424                            --with-mysql-libdir="${prefix}/lib/percona/mysql"
425    depends_lib-append      port:percona
426}
427
428variant postgresql90 conflicts postgresql92 description {Build with PostgreSQL 9.0 support} {
429    configure.args-delete   --disable-pgsql
430    configure.args-append   --enable-pgsql \
431                            --with-pgsql-incdir="${prefix}/include/postgresql90" \
432                            --with-pgsql-libdir="${prefix}/lib/postgresql90"
433    depends_lib-append      port:libpqxx port:postgresql90
434}
435
436variant postgresql92 conflicts postgresql90 description {Build with PostgreSQL 9.2 support} {
437    configure.args-delete   --disable-pgsql
438    configure.args-append   --enable-pgsql \
439                            --with-pgsql-incdir="${prefix}/include/postgresql92" \
440                            --with-pgsql-libdir="${prefix}/lib/postgresql92"
441    depends_lib-append      port:libpqxx port:postgresql92
442}
443
444# variant oracle description {Build with Oracle support} {
445#     configure.args-replace --disable-oracle --enable-oracle
446#     configure.args-append  --with-oracle-incdir="${prefix}/lib/oracle/sdk/include" \
447#                            --with-oracle-libdir="${prefix}/lib/oracle"
448#     depends_lib-append     port:oracle-instantclient
449# }
450
451variant pythia description {Pythia 8 support for root} {
452    configure.args-delete   --disable-pythia8
453    configure.args-append   --enable-pythia8 \
454                            --with-pythia8-incdir=${prefix}/include/pythia \
455                            --with-pythia8-libdir=${prefix}/lib
456    depends_lib-append      port:pythia
457}
458
459variant cocoa conflicts x11 description {Enables native OSX graphical backend} {
460    # Force a compatible clang compiler
461    PortGroup compiler_blacklist_versions 1.0
462    compiler.blacklist-append {clang < 425} *gcc* macports-clang-2.9
463    compiler.fallback-append macports-clang-3.4 macports-clang-3.3 macports-clang-3.2
464    # Enable cocoa support in configure
465    configure.args-delete --disable-cocoa
466    configure.args-append --enable-cocoa
467    # patch afterimage build to make sure TIFF suport is disabled. Causes problems with cocoa...
468    patchfiles-append patch-builtin-afterimage-disabletiff.diff
469}
470
471variant x11 conflicts cocoa description {Enables X11 graphical backend} {
472    # Dependencies on X11 ports
473    depends_lib-append port:xorg-libX11 port:mesa port:Xft2 port:xpm
474    # Disable cocoa
475    configure.args-append --disable-cocoa
476}
477
478# If neither graphical variant is set, use default
479if { ![variant_isset cocoa] && ![variant_isset x11] } {
480    default_variants-append ${default_gui_variant}
481}
482
483# ========================================================================================
484# Setup various clang variants, to provide alternative C++ compilers that support cocoa
485# ========================================================================================
486
487# List of possible clang versions that work
488set clang_versions { 3.3 3.4 3.5 }
489
490# Define the available variants
491foreach ver ${clang_versions} {
492    set ver_no_dot [join [split ${ver} "."] ""]
493    set variant_line {variant clang${ver_no_dot} description "Compile using MacPorts clang ${ver}"}
494    foreach over ${clang_versions} {
495        if { ${ver} == ${over} } { continue }
496        set over_no_dot [join [split ${over} "."] ""]
497        append variant_line " conflicts clang${over_no_dot}"
498    }
499    append variant_line { { } }
500    eval $variant_line
501}
502
503# Is a variant active ?
504set active_clang_variant ""
505foreach ver ${clang_versions} {
506    set ver_no_dot [join [split ${ver} "."] ""]
507    if {[variant_isset clang${ver_no_dot}]} {
508        set active_clang_variant ${ver}
509    }
510}
511
512# If so, set it up.
513if { ${active_clang_variant} != "" } {
514    configure.compiler      macports-clang-${active_clang_variant}
515    configure.args-append   --with-llvm-config="${prefix}/bin/llvm-config-mp-"${active_clang_variant}
516    depends_run-append      port:clang-${active_clang_variant}
517}
518
519# ========================================================================================
520
521variant qt_mac description {Build with Qt support via Mac UI} {
522    post-patch {
523        # fix where "qglobal.h" is found in all files that use or reference it
524        foreach tpf { configure graf2d/qt/src/TGQt.cxx } {
525            reinplace "s@Qt/qglobal\\.h@QtCore/qglobal\\.h@g" \
526                ${worksrcpath}/${tpf}
527        }
528        reinplace "/qttestdir/s@Qt@QtCore@g" ${worksrcpath}/configure
529
530        # fix library search extensions to include ".la"
531        # for Qt framework libraries (only)
532        reinplace "s@\\(\\.so \\.sl \\.dylib \\.dll\\.a\\)@\\1 \\.la@g" \
533            ${worksrcpath}/configure
534    }
535
536    configure.args-delete   --disable-qt
537    configure.args-delete   --disable-qtgsi
538    configure.args-append   --enable-qt --enable-qtgsi \
539                            --with-qt-incdir="${prefix}/include" \
540                            --with-qt-libdir="${prefix}/lib"
541    depends_lib-append      port:qt4-mac
542
543    post-configure {
544        # patch up the Makefile.config to handle the QTLIB frameworks correctly
545        reinplace "/QTLIB\[ \]/s@:= @:= -F${qt_libs_dir} @" \
546            ${worksrcpath}/config/Makefile.config
547        reinplace "/QTLIB\[ \]/s@\\(Qt\[^ \]*\\).la@-framework \\1@g" \
548            ${worksrcpath}/config/Makefile.config
549    }
550}
551
552if {[variant_isset qt_mac]} {
553    PortGroup qt4 1.0
554}
555
556# ========================================================================================
557# Following is for fortran support
558# Might eventually move to a portgroup, or similar, so could be simplified.
559# Based on recipe from https://trac.macports.org/wiki/PortfileRecipes#fortran
560# Note that g95 does not work here, so that variant is removed
561# ========================================================================================
562
563set gcc_versions { 4.3 4.4 4.5 4.6 4.7 4.8 4.9 }
564set default_fortran_variant +gcc48
565
566foreach ver ${gcc_versions} {
567    set ver_no_dot [join [split ${ver} "."] ""]
568
569    set variant_line {variant gcc${ver_no_dot} description "Build with gfortran from gcc${ver_no_dot}"}
570
571    foreach over ${gcc_versions} {
572        if {${ver} == ${over}} {
573            continue
574        }
575
576        set over_no_dot [join [split ${over} "."] ""]
577        append variant_line " conflicts gcc${over_no_dot}"
578    }
579    append variant_line { { } }
580
581    eval $variant_line
582
583    if {[variant_isset gcc${ver_no_dot}]} {
584        if {${default_fortran_variant} != "+gcc${ver_no_dot}"} {
585            set default_fortran_variant ""
586        }
587    }
588}
589
590if {${default_fortran_variant} != ""} {
591    default_variants-append "${default_fortran_variant}"
592}
593
594foreach ver ${gcc_versions} {
595    set ver_no_dot [join [split ${ver} "."] ""]
596
597    if {[variant_isset gcc${ver_no_dot}]} {
598        depends_lib-append path:lib/libgcc/libgcc_s.1.dylib:libgcc
599        depends_build-append port:gcc${ver_no_dot}
600
601        configure.fc  ${prefix}/bin/gfortran-mp-${ver}
602        configure.f77 ${prefix}/bin/gfortran-mp-${ver}
603        configure.f90 ${prefix}/bin/gfortran-mp-${ver}
604    }
605}
606
607# ========================================================================================
608
609livecheck.type              regex
610livecheck.url               [lindex ${master_sites} 0]
611livecheck.regex             root_v(\[0-9a-z.\]+)\\.source
612
613# ========================================================================================
614# The following have build issues, are obsolete or experimental.
615# ========================================================================================
616
617# Problems finding includes ...
618# variant ruby description {Build with ruby support} {
619#     configure.args-delete   --disable-ruby
620#     configure.args-append   --enable-ruby \
621#                             --with-ruby-incdir="${prefix}/include/ruby-1.9.1" \
622#                             --with-ruby-libdir="${prefix}/lib"
623#     depends_lib-append      port:ruby19
624# }
625
626# Intefers with builtin freetype build (enforced by cocoa variant)
627# Also do not seem to be actually needed any more
628#pre-build {
629#    build.args      CC=${configure.cc} \
630#                    CXX=${configure.cxx} \
631#                    F77=${configure.f77}
632#}
633
634# variant kerberos5 description {Build with kerberos5 support} {
635#     configure.args-delete   --disable-krb5
636#     configure.args-append   --enable-krb5 \
637#                             --with-krb5-incdir="${prefix}/include" \
638#                             --with-krb5-libdir="${prefix}/lib"
639#      depends_lib-append      port:kerberos5
640# }
641
642# variant ftgl description {Build with ftgl support} {
643#     configure.args-delete   --enable-builtin-ftgl
644#     configure.args-append   --disable-builtin-ftgl \
645#     configure.args-append   --with-ftgl-incdir="${prefix}/include" \
646#                             --with-ftgl-libdir="${prefix}/lib"
647#     depends_lib-append      port:ftgl
648# }
649
650# variant qt_x11 conflicts qt_mac description {Build with Qt support via X11 UI} {
651#     # fix where "qglobal.h" is found in all files that use or reference it
652#     post-patch {
653#         foreach tpf { configure graf2d/qt/src/TGQt.cxx } {
654#             reinplace "s@Qt/qglobal\\.h@QtCore/qglobal\\.h@g" \
655#                 ${worksrcpath}/${tpf}
656#         }
657#         reinplace "/qttestdir/s@Qt@QtCore@g" ${worksrcpath}/configure
658#     }
659
660#     configure.env-append    QTDIR=${prefix}/libexec/qt4-x11
661#     configure.args-delete   --disable-qt
662#     configure.args-delete   --disable-qtgsi
663#     configure.args-append   --enable-qt --enable-qtgsi \
664#                             --with-qt-incdir="${prefix}/include" \
665#                             --with-qt-libdir="${prefix}/lib"
666#     depends_lib-append      port:qt4-x11
667# }
Note: See TracBrowser for help on using the repository browser.