<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>[118659] users/mojca/ports/science/root6/Portfile</title>
</head>
<body>

<style type="text/css"><!--
#msg dl.meta { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dl.meta dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer, #logmsg { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt;  }
#msg dl a { font-weight: bold}
#msg dl a:link    { color:#fc3; }
#msg dl a:active  { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { overflow: auto; background: #ffc; border: 1px #fa0 solid; padding: 6px; }
#logmsg { background: #ffc; border: 1px #fa0 solid; padding: 1em 1em 0 1em; }
#logmsg p, #logmsg pre, #logmsg blockquote { margin: 0 0 1em 0; }
#logmsg p, #logmsg li, #logmsg dt, #logmsg dd { line-height: 14pt; }
#logmsg h1, #logmsg h2, #logmsg h3, #logmsg h4, #logmsg h5, #logmsg h6 { margin: .5em 0; }
#logmsg h1:first-child, #logmsg h2:first-child, #logmsg h3:first-child, #logmsg h4:first-child, #logmsg h5:first-child, #logmsg h6:first-child { margin-top: 0; }
#logmsg ul, #logmsg ol { padding: 0; list-style-position: inside; margin: 0 0 0 1em; }
#logmsg ul { text-indent: -1em; padding-left: 1em; }#logmsg ol { text-indent: -1.5em; padding-left: 1.5em; }
#logmsg > ul, #logmsg > ol { margin: 0 0 1em 0; }
#logmsg pre { background: #eee; padding: 1em; }
#logmsg blockquote { border: 1px solid #fa0; border-left-width: 10px; padding: 1em 1em 0 1em; background: white;}
#logmsg dl { margin: 0; }
#logmsg dt { font-weight: bold; }
#logmsg dd { margin: 0; padding: 0 0 0.5em 0; }
#logmsg dd:before { content:'\00bb';}
#logmsg table { border-spacing: 0px; border-collapse: collapse; border-top: 4px solid #fa0; border-bottom: 1px solid #fa0; background: #fff; }
#logmsg table th { text-align: left; font-weight: normal; padding: 0.2em 0.5em; border-top: 1px dotted #fa0; }
#logmsg table td { text-align: right; border-top: 1px dotted #fa0; padding: 0.2em 0.5em; }
#logmsg table thead th { text-align: center; border-bottom: 1px solid #fa0; }
#logmsg table th.Corner { text-align: left; }
#logmsg hr { border: none 0; border-top: 2px dashed #fa0; height: 1px; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff  {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<div id="msg">
<dl class="meta">
<dt>Revision</dt> <dd><a href="https://trac.macports.org/changeset/118659">118659</a></dd>
<dt>Author</dt> <dd>mojca@macports.org</dd>
<dt>Date</dt> <dd>2014-04-07 10:11:00 -0700 (Mon, 07 Apr 2014)</dd>
</dl>

<h3>Log Message</h3>
<pre>mojca/root6: update version, improvements by Chris</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#usersmojcaportsscienceroot6Portfile">users/mojca/ports/science/root6/Portfile</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="usersmojcaportsscienceroot6Portfile"></a>
<div class="modfile"><h4>Modified: users/mojca/ports/science/root6/Portfile (118658 => 118659)</h4>
<pre class="diff"><span>
<span class="info">--- users/mojca/ports/science/root6/Portfile        2014-04-07 17:07:50 UTC (rev 118658)
+++ users/mojca/ports/science/root6/Portfile        2014-04-07 17:11:00 UTC (rev 118659)
</span><span class="lines">@@ -4,15 +4,14 @@
</span><span class="cx"> PortSystem          1.0
</span><span class="cx"> PortGroup           cmake 1.0
</span><span class="cx"> PortGroup           github 1.0
</span><del>-# github.setup        root-mirror root 5-99-05 v
-github.setup        root-mirror root 9d192c5811
</del><ins>+github.setup        root-mirror root 5-99-06 v
</ins><span class="cx"> name                root6
</span><del>-version             5.99.05-beta
</del><ins>+version             5.99.06-beta
</ins><span class="cx"> set version_major   6
</span><span class="cx"> 
</span><span class="cx"> categories          science
</span><span class="cx"> 
</span><del>-maintainers         hep.phy.cam.ac.uk:jonesc
</del><ins>+maintainers         hep.phy.cam.ac.uk:jonesc mojca
</ins><span class="cx"> 
</span><span class="cx"> license             LGPL-2.1+
</span><span class="cx"> 
</span><span class="lines">@@ -25,8 +24,8 @@
</span><span class="cx"> homepage            http://root.cern.ch/
</span><span class="cx"> platforms           darwin
</span><span class="cx"> 
</span><del>-checksums           rmd160  fe53d6624fa2e49e201fef8c73736e55b7fa9d9d \
-                    sha256  b1d7a1b22ad5d30fefdf270f37c1d1c55bc3e141816925e919b8c4928bb8d2c0
</del><ins>+checksums           rmd160  b8b5ae705aae185c0d6ed097a5efa6fbeb961bfb \
+                    sha256  c873d536769ff06616c0a9981e7f1db2414eaca0a1bcab045d4073b36644981a
</ins><span class="cx"> 
</span><span class="cx"> dist_subdir         root
</span><span class="cx"> configure.dir       ${workpath}/build
</span><span class="lines">@@ -44,18 +43,19 @@
</span><span class="cx">                     port:giflib \
</span><span class="cx">                     port:tiff \
</span><span class="cx">                     port:gmp \
</span><del>-                    port:expat
</del><ins>+                    port:expat \
+                    port:lzma
</ins><span class="cx">                   # port:freetype
</span><span class="cx"> 
</span><span class="cx"> configure.args-append \
</span><span class="cx">                     -Dgnuinstall=ON \
</span><del>-                    -DCMAKE_INSTALL_BINDIR=&quot;libexec/root/root${version_major}&quot; \
-                    -DCMAKE_INSTALL_LIBDIR=&quot;lib/root/root${version_major}&quot; \
-                    -DCMAKE_INSTALL_INCLUDEDIR=&quot;include/root/root${version_major}&quot; \
-                    -DCMAKE_INSTALL_SYSCONFDIR=&quot;etc/root/root${version_major}&quot; \
-                    -DCMAKE_INSTALL_DATAROOTDIR=&quot;share/root/root${version_major}&quot; \
-                    -DCMAKE_INSTALL_DATADIR=&quot;share/root/root${version_major}&quot; \
-                    -DCMAKE_INSTALL_DOCDIR=&quot;share/doc/root/root${version_major}&quot; \
</del><ins>+                    -DCMAKE_INSTALL_BINDIR=&quot;libexec/root${version_major}&quot; \
+                    -DCMAKE_INSTALL_LIBDIR=&quot;lib/root${version_major}&quot; \
+                    -DCMAKE_INSTALL_INCLUDEDIR=&quot;include/root${version_major}&quot; \
+                    -DCMAKE_INSTALL_SYSCONFDIR=&quot;etc/root${version_major}&quot; \
+                    -DCMAKE_INSTALL_DATAROOTDIR=&quot;share/root${version_major}&quot; \
+                    -DCMAKE_INSTALL_DATADIR=&quot;share/root${version_major}&quot; \
+                    -DCMAKE_INSTALL_DOCDIR=&quot;share/doc/root${version_major}&quot; \
</ins><span class="cx">                     -Dfortran=OFF \
</span><span class="cx">                     -Dbuiltin_freetype=ON \
</span><span class="cx">                     -Dbuiltin_glew=OFF \
</span><span class="lines">@@ -102,6 +102,7 @@
</span><span class="cx">                     -Dgdml=ON \
</span><span class="cx">                     -DPNG_LIBRARY=${prefix}/lib/libpng.dylib \
</span><span class="cx">                     -DPNG_PNG_INCLUDE_DIR=${prefix}/include
</span><ins>+
</ins><span class="cx"> configure.post_args ${worksrcpath}
</span><span class="cx"> 
</span><span class="cx"> # TODO: temporary:
</span><span class="lines">@@ -140,15 +141,13 @@
</span><span class="cx">     set default_gui_variant +x11
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-variant xrootd description {Build with XRootD support} {
-    configure.args-replace  -Dxrootd=OFF -Dxrootd=ON
-    configure.args-append   -DXROOTD_INCLUDE_DIR=&quot;${prefix}/include/xrootd&quot;
-    # TODO: do libraries need to be specified as well?
-    # XROOTD_XrdClient_LIBRARY  *${prefix}/lib/libXrdClient.dylib
-    # XROOTD_XrdMain_LIBRARY    *${prefix}/lib/libXrdMain.dylib
-    # XROOTD_XrdUtils_LIBRARY   *${prefix}/lib/libXrdUtils.dylib
-    depends_lib-append      port:xrootd
-}
</del><ins>+# Currently giving problems
+# variant xrootd description {Build with XRootD support} {
+#     configure.args-replace  -Dxrootd=OFF -Dxrootd=ON
+#     configure.args-append   -Dbuiltin_xrootd=ON
+#     #configure.args-append   -DXROOTD_INCLUDE_DIR=&quot;${prefix}/include/xrootd&quot;
+#     #depends_lib-append      port:xrootd
+# }
</ins><span class="cx"> 
</span><span class="cx"> variant soversion description {Build with soversion support} {
</span><span class="cx">      configure.args-replace -Dsoversion=OFF -Dsoversion=ON
</span><span class="lines">@@ -156,28 +155,25 @@
</span><span class="cx"> 
</span><span class="cx"> variant graphviz description {Build with graphviz support} {
</span><span class="cx">     configure.args-replace  -Dgviz=OFF -Dgviz=ON
</span><del>-    configure.args-append   -DGRAPHVIZ_INCLUDE_DIR=&quot;${prefix}/include&quot; \
-                            -DGRAPHVIZ_CDT_LIBRARY=&quot;${prefix}/lib/libcdt.dylib&quot; \
-                            -DGRAPHVIZ_GRAPH_LIBRARY=&quot;${prefix}/lib/libcgraph.dylib&quot; \
-                            -DGRAPHVIZ_GVC_LIBRARY=&quot;${prefix}/lib/libgvc.dylib&quot; \
-                            -DGRAPHVIZ_PATHPLAN_LIBRARY=&quot;${prefix}/lib/libpathplan.dylib&quot;
</del><ins>+    # configure.args-append   -DGRAPHVIZ_INCLUDE_DIR=&quot;${prefix}/include&quot; \
+    #                         -DGRAPHVIZ_CDT_LIBRARY=&quot;${prefix}/lib/libcdt.dylib&quot; \
+    #                         -DGRAPHVIZ_GRAPH_LIBRARY=&quot;${prefix}/lib/libcgraph.dylib&quot; \
+    #                         -DGRAPHVIZ_GVC_LIBRARY=&quot;${prefix}/lib/libgvc.dylib&quot; \
+    #                         -DGRAPHVIZ_PATHPLAN_LIBRARY=&quot;${prefix}/lib/libpathplan.dylib&quot;
</ins><span class="cx">     depends_lib-append      path:bin/dot:graphviz
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> variant avahi description {Build with avahi support} {
</span><span class="cx">     configure.args-replace  -Dbonjour=OFF -Dbonjour=ON
</span><del>-    # TODO
-#   configure.args-append   --with-avahi-incdir=&quot;${prefix}/include&quot; \
-#                           --with-avahi-libdir=&quot;${prefix}/lib&quot;
</del><ins>+    # configure.args-append   -DAVAHI_INCLUDE_DIR=&quot;${prefix}/include&quot; \
+    #                         -DAVAHI_client_LIBRARY=&quot;${prefix}/lib&quot;
</ins><span class="cx">     depends_lib-append      port:avahi
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-# TODO
</del><span class="cx"> variant fftw3 description {Build with fftw3 support} {
</span><span class="cx">    configure.args-replace   -Dfftw3=OFF -Dfftw3=ON
</span><del>-   # TODO
-#  configure.args-append   --with-fftw3-incdir=&quot;${prefix}/include&quot; \
-#                          --with-fftw3-libdir=&quot;${prefix}/lib&quot;
</del><ins>+   # configure.args-append    -DFFTW_INCLUDE_DIR=&quot;${prefix}/include&quot; \
+   #                          -DFFTW_LIBRARY=&quot;${prefix}/lib&quot;
</ins><span class="cx">    depends_lib-append      port:fftw-3
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="lines">@@ -187,40 +183,38 @@
</span><span class="cx">     depends_lib-append      port:gsl
</span><span class="cx"> }
</span><span class="cx"> 
</span><ins>+variant fitsio description {Build with fitsio support} {
+     configure.args-replace  -Dfitsio=OFF -Dfitsio=ON
+     # configure.args-append   -DCFITSIO_INCLUDE_DIR=&quot;${prefix}/include&quot; \
+     #                         -DCFITSIO_LIBRARIES=&quot;${prefix}/lib&quot;
+     depends_lib-append      port:cfitsio
+}
</ins><span class="cx"> 
</span><del>-# TODO
-#variant fitsio description {Build with fitsio support} {
-#    configure.args-delete   --disable-fitsio
-#    configure.args-append   --enable-fitsio \
-#                            --with-cfitsio-incdir=&quot;${prefix}/include&quot; \
-#                            --with-cfitsio-libdir=&quot;${prefix}/lib&quot;
-#    depends_lib-append      port:cfitsio
-#}
</del><ins>+variant odbc description {Build with odbc support} {
+     configure.args-replace -Dodbc=OFF -Dodbc=ON
+     # configure.args-append  -DODBC_INCLUDE_DIR=&quot;${prefix}/include&quot; \
+     #                        -DODBC_LIBRARY=&quot;${prefix}/lib&quot;
+     depends_lib-append      port:libiodbc
+}
</ins><span class="cx"> 
</span><del>-# TODO
-#variant odbc description {Build with odbc support} {
-#    configure.args-delete   --disable-odbc
-#    configure.args-append   --enable-odbc \
-#                            --with-odbc-incdir=&quot;${prefix}/include&quot; \
-#                            --with-odbc-libdir=&quot;${prefix}/lib&quot;
-#    depends_lib-append      port:libiodbc
-#}
</del><ins>+variant ldap description {Build with ldap support} {
+     configure.args-replace -Dldap=OFF -Dldap=ON
+     # configure.args-append  -DLDAP_INCLUDE_DIR=&quot;${prefix}/include&quot; \
+     #                        -DLDAP_LIBRARY=&quot;${prefix}/lib&quot;
+     depends_lib-append      port:openldap
+}
</ins><span class="cx"> 
</span><del>-# TODO
-#variant ldap description {Build with ldap support} {
-#    configure.args-delete   --disable-ldap
-#    configure.args-append   --enable-ldap \
-#                            --with-ldap-incdir=&quot;${prefix}/include&quot; \
-#                            --with-ldap-libdir=&quot;${prefix}/lib&quot;
-#    depends_lib-append      port:openldap
-#}
-
</del><span class="cx"> variant roofit description {Build the RooFit advanced fitting package} {
</span><span class="cx">     configure.args-replace  -Droofit=OFF -Droofit=ON
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> variant tmva description {Build the TMVA package} {
</span><span class="cx">     configure.args-replace  -Dtmva=OFF -Dtmva=ON
</span><ins>+    post-destroot {
+        set tmvaTuts ${destroot}${prefix}/share/root${version_major}/tutorials/tmva
+        file mkdir ${tmvaTuts}
+        foreach f [glob ${worksrcpath}/tmva/test/*] { file copy $f ${tmvaTuts}/ }
+    }
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> variant minuit2 description {Build with minuit2 support} {
</span><span class="lines">@@ -267,16 +261,14 @@
</span><span class="cx">     set ver_no_dot [join [split ${active_python_variant} &quot;.&quot;] &quot;&quot;]
</span><span class="cx">     set mypydir ${prefix}/Library/Frameworks/Python.framework/Versions/${active_python_variant}
</span><span class="cx">     configure.args-replace  -Dpython=OFF -Dpython=ON
</span><del>-# TODO
-#   configure.args-append   --with-python-incdir=&quot;${mypydir}/Headers&quot; \
-#                           --with-python-libdir=&quot;${mypydir}&quot;
</del><ins>+    configure.args-append   -DPYTHON_INCLUDE_DIR=&quot;${mypydir}/Headers&quot;
</ins><span class="cx">     depends_lib-append      port:python${ver_no_dot}
</span><span class="cx">     post-destroot {
</span><span class="cx">         set mypylibdir  ${prefix}/Library/Frameworks/Python.framework/Versions/${active_python_variant}/lib/python${active_python_variant}
</span><span class="cx">         set mypysitedir ${mypylibdir}/site-packages/
</span><span class="cx">         file mkdir ${destroot}${mypysitedir}
</span><del>-        foreach pyfile [glob ${destroot}${prefix}/lib/root/*.py*] { move $pyfile ${destroot}${mypysitedir} }
-        ln -sf ${prefix}/lib/root/libPyROOT.so ${destroot}${mypylibdir}/
</del><ins>+        foreach pyfile [glob ${destroot}${prefix}/lib/root${version_major}/*.py*] { move $pyfile ${destroot}${mypysitedir} }
+        ln -sf ${prefix}/lib/root${version_major}/libPyROOT.so ${destroot}${mypylibdir}/
</ins><span class="cx">     }
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="lines">@@ -288,89 +280,72 @@
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> variant ssl description {Build with ssl support} {
</span><del>-    configure.args-delete   -Dssl=OFF
-    configure.args-append   -Dssl=ON \
-                            -DOPENSSL_INCLUDE_DIR=&quot;${prefix}/include&quot; \
-                            -DOPENSSL_SSL_LIBRARY=&quot;${prefix}/lib/libssl.dylib&quot; \
-                            -DOPENSSL_CRYPTO_LIBRARY=&quot;${prefix}/lib/libcrypto.dylib&quot;
</del><ins>+    configure.args-replace  -Dssl=OFF -Dssl=ON 
+    # configure.args-append   -DOPENSSL_INCLUDE_DIR=&quot;${prefix}/include&quot; \
+    #                         -DOPENSSL_SSL_LIBRARY=&quot;${prefix}/lib/libssl.dylib&quot; \
+    #                         -DOPENSSL_CRYPTO_LIBRARY=&quot;${prefix}/lib/libcrypto.dylib&quot;
</ins><span class="cx">     depends_lib-append      port:openssl
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> variant xml description {Build with xml support} {
</span><del>-    configure.args-delete   -Dxml=OFF
-    configure.args-append   -Dxml=ON \
-                            -DLIBXML2_INCLUDE_DIR=&quot;${prefix}/include/libxml2&quot; \
</del><ins>+    configure.args-replace  -Dxml=OFF -Dxml=ON 
+    configure.args-append   -DLIBXML2_INCLUDE_DIR=&quot;${prefix}/include/libxml2&quot; \
</ins><span class="cx">                             -DLIBXML2_LIBRARIES=&quot;${prefix}/lib/libxml2.dylib&quot; \
</span><span class="cx">                             -DLIBXML2_XMLLINT_EXECUTABLE=&quot;${prefix}/bin/xmllint&quot;
</span><span class="cx">     depends_lib-append      port:libxml2
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-# TODO
-#variant mysql conflicts mysql51 mysql55 mariadb percona description {Build with mysql5 support} {
-#    configure.args-delete   --disable-mysql
-#    configure.args-append   --enable-mysql \
-#                            --with-mysql-incdir=&quot;${prefix}/include/mysql5/mysql&quot; \
-#                            --with-mysql-libdir=&quot;${prefix}/lib/mysql5/mysql&quot;
-#    depends_lib-append      port:mysql5
-#}
-#
-#variant mysql51 conflicts mysql mysql55 mariadb percona description {Build with mysql51 support} {
-#    configure.args-delete   --disable-mysql
-#    configure.args-append   --enable-mysql \
-#                            --with-mysql-incdir=&quot;${prefix}/include/mysql51/mysql&quot; \
-#                            --with-mysql-libdir=&quot;${prefix}/lib/mysql51/mysql&quot;
-#    depends_lib-append      port:mysql51
-#}
-#
-#variant mysql55 conflicts mysql mysql51 mariadb percona description {Build with mysql55 support} {
-#    configure.args-delete   --disable-mysql
-#    configure.args-append   --enable-mysql \
-#                            --with-mysql-incdir=&quot;${prefix}/include/mysql55/mysql&quot; \
-#                            --with-mysql-libdir=&quot;${prefix}/lib/mysql55/mysql&quot;
-#    depends_lib-append      port:mysql55
-#}
-#
-#variant mariadb conflicts mysql mysql51 mysql55 percona description {Build with mariadb support} {
-#    configure.args-delete   --disable-mysql
-#    configure.args-append   --enable-mysql \
-#                            --with-mysql-incdir=&quot;${prefix}/include/mariadb/mysql&quot; \
-#                            --with-mysql-libdir=&quot;${prefix}/lib/mariadb/mysql&quot;
-#    depends_lib-append      port:mariadb
-#}
-#
-#variant percona conflicts mysql mysql51 mysql55 mariadb description {Build with percona support} {
-#    configure.args-delete   --disable-mysql
-#    configure.args-append   --enable-mysql \
-#                            --with-mysql-incdir=&quot;${prefix}/include/percona/mysql&quot; \
-#                            --with-mysql-libdir=&quot;${prefix}/lib/percona/mysql&quot;
-#    depends_lib-append      port:percona
-#}
-#
-#variant postgresql90 conflicts postgresql92 description {Build with PostgreSQL 9.0 support} {
-#    configure.args-delete   --disable-pgsql
-#    configure.args-append   --enable-pgsql \
-#                            --with-pgsql-incdir=&quot;${prefix}/include/postgresql90&quot; \
-#                            --with-pgsql-libdir=&quot;${prefix}/lib/postgresql90&quot;
-#    depends_lib-append      port:libpqxx port:postgresql90
-#}
-#
-#variant postgresql92 conflicts postgresql90 description {Build with PostgreSQL 9.2 support} {
-#    configure.args-delete   --disable-pgsql
-#    configure.args-append   --enable-pgsql \
-#                            --with-pgsql-incdir=&quot;${prefix}/include/postgresql92&quot; \
-#                            --with-pgsql-libdir=&quot;${prefix}/lib/postgresql92&quot;
-#    depends_lib-append      port:libpqxx port:postgresql92
-#}
</del><ins>+variant mysql conflicts mysql51 mysql55 mariadb percona description {Build with mysql5 support} {
+    configure.args-replace -Dmysql=OFF -Dmysql=ON
+    configure.args-append  -DMYSQL_CONFIG_EXECUTABLE=${prefix}&quot;/lib/mysql5/bin/mysql_config&quot;
+    depends_lib-append      port:mysql5
+}
</ins><span class="cx"> 
</span><del>-# TODO
-# variant pythia description {Pythia 8 support for root} {
-#    configure.args-delete   --disable-pythia8
-#    configure.args-append   --enable-pythia8 \
-#                            --with-pythia8-incdir=${prefix}/include \
-#                            --with-pythia8-libdir=${prefix}/lib
-#    depends_lib-append      port:pythia
</del><ins>+variant mysql51 conflicts mysql mysql55 mariadb percona description {Build with mysql51 support} {
+    configure.args-replace -Dmysql=OFF -Dmysql=ON
+    configure.args-append  -DMYSQL_CONFIG_EXECUTABLE=${prefix}&quot;/lib/mysql51/bin/mysql_config&quot;
+    depends_lib-append      port:mysql51
+}
+
+variant mysql55 conflicts mysql mysql51 mariadb percona description {Build with mysql55 support} {
+    configure.args-replace -Dmysql=OFF -Dmysql=ON
+    configure.args-append  -DMYSQL_CONFIG_EXECUTABLE=${prefix}&quot;/lib/mysql55/bin/mysql_config&quot;
+    depends_lib-append      port:mysql55
+}
+
+variant mariadb conflicts mysql mysql51 mysql55 percona description {Build with mariadb support} {
+    configure.args-replace -Dmysql=OFF -Dmysql=ON
+    configure.args-append  -DMYSQL_CONFIG_EXECUTABLE=${prefix}&quot;/lib/mariadb/bin/mysql_config&quot;
+    depends_lib-append      port:mariadb
+}
+
+variant percona conflicts mysql mysql51 mysql55 mariadb description {Build with percona support} {
+    configure.args-replace -Dmysql=OFF -Dmysql=ON
+    configure.args-append  -DMYSQL_CONFIG_EXECUTABLE=${prefix}&quot;/lib/percona/bin/mysql_config&quot;
+    depends_lib-append      port:percona
+}
+
+# variant postgresql90 conflicts postgresql92 description {Build with PostgreSQL 9.0 support} {
+#     configure.args-replace -Dpgsql=OFF -Dpgsql=ON
+#     configure.args-append  -DPOSTGRESQL_INCLUDE_DIR=&quot;${prefix}/include/postgresql90&quot; \
+#                            -DPOSTGRESQL_LIBRARIES=&quot;${prefix}/lib/postgresql90&quot;
+#     depends_lib-append      port:libpqxx port:postgresql90
</ins><span class="cx"> # }
</span><span class="cx"> 
</span><ins>+# variant postgresql92 conflicts postgresql90 description {Build with PostgreSQL 9.2 support} {
+#     configure.args-replace -Dpgsql=OFF -Dpgsql=ON
+#     configure.args-append  -DPOSTGRESQL_INCLUDE_DIR=&quot;${prefix}/include/postgresql92&quot; \
+#                            -DPOSTGRESQL_LIBRARIES=&quot;${prefix}/lib/postgresql92&quot;
+#     depends_lib-append      port:libpqxx port:postgresql92
+# }
+
+variant pythia description {Pythia 8 support for root} {
+    configure.args-replace -Dpythia8=OFF -Dpythia8=ON
+    # configure.args-append  -DPYTHIA8_INCLUDE_DIR=${prefix}/include \
+    #                        -DPYTHIA8_LIBRARY=${prefix}/lib
+    depends_lib-append      port:pythia
+}
+
</ins><span class="cx"> variant cocoa conflicts x11 description {Enables native OSX graphical backend} {
</span><span class="cx">     # Force a compatible clang compiler
</span><span class="cx">     PortGroup compiler_blacklist_versions 1.0
</span><span class="lines">@@ -459,7 +434,7 @@
</span><span class="cx">         set over_no_dot [join [split ${over} &quot;.&quot;] &quot;&quot;]
</span><span class="cx">         append variant_line &quot; conflicts gcc${over_no_dot}&quot;
</span><span class="cx">     }
</span><del>-    append variant_line { {}}
</del><ins>+    append variant_line { {} }
</ins><span class="cx"> 
</span><span class="cx">     eval $variant_line
</span><span class="cx"> 
</span><span class="lines">@@ -481,10 +456,13 @@
</span><span class="cx">         depends_lib-append path:lib/libgcc/libgcc_s.1.dylib:libgcc
</span><span class="cx">         depends_build-append port:gcc${ver_no_dot}
</span><span class="cx"> 
</span><del>-        # TODO: do we really need all three variables?
</del><span class="cx">         configure.fc  ${prefix}/bin/gfortran-mp-${ver}
</span><span class="cx">         configure.f77 ${prefix}/bin/gfortran-mp-${ver}
</span><span class="cx">         configure.f90 ${prefix}/bin/gfortran-mp-${ver}
</span><ins>+
+        configure.args-replace -Dfortran=OFF -Dfortran=ON
+
+        configure.args-append -DCMAKE_F_COMPILER=${prefix}/bin/gfortran-mp-${ver}
</ins><span class="cx">     }
</span><span class="cx"> }
</span><span class="cx"> 
</span></span></pre>
</div>
</div>

</body>
</html>