Ticket #37688: root-devel.cmake.2.Portfile

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