[94791] trunk/dports/science/root/Portfile

cal at macports.org cal at macports.org
Fri Jun 29 14:12:23 PDT 2012


Revision: 94791
          https://trac.macports.org/changeset/94791
Author:   cal at macports.org
Date:     2012-06-29 14:12:23 -0700 (Fri, 29 Jun 2012)
Log Message:
-----------
root: update to 5.34, maintainer, closes #34854

Modified Paths:
--------------
    trunk/dports/science/root/Portfile

Modified: trunk/dports/science/root/Portfile
===================================================================
--- trunk/dports/science/root/Portfile	2012-06-29 20:24:01 UTC (rev 94790)
+++ trunk/dports/science/root/Portfile	2012-06-29 21:12:23 UTC (rev 94791)
@@ -4,8 +4,8 @@
 PortSystem          1.0
 
 name                root
-version             5.32.02
-revision            1
+version             5.34.00
+revision            0
 categories          science
 maintainers         gmail.com:mattiafrancescomoro hep.phy.cam.ac.uk:jonesc
 license             LGPL-2.1+
@@ -19,8 +19,8 @@
 master_sites        http://root.cern.ch/download/ \
                     ftp://root.cern.ch/root/
 
-checksums           rmd160  0700dbb56adebd07c4e667fa9f78f7a75f59e511 \
-                    sha256  5f14f50e4489cd74b3c5bdfbfff8379c6aaaf83d3ace3318c62964be6fdc38a2
+checksums           rmd160  6089493c70f94a1c4edd87ebe79adb9f3570f903 \
+                    sha256  808e04876dbc9cfbfea54ee11ba35e90382e8ff4219dbdbe2d2236a9dadf7df1
 
 worksrcdir          root
 
@@ -29,21 +29,17 @@
                     port:pcre \
                     port:Xft2 \
                     port:xorg-libX11 \
-                    port:xpm \
                     port:zlib \
                     port:jpeg \
                     port:libpng \
                     port:giflib \
                     port:tiff \
-                    port:gmp
+                    port:gmp \
+                    port:xpm \
+                    port:expat
 
 patchfiles          patch-configure.diff
 
-# Clang seems OK now, with the new --with-clang option below
-# if {${configure.compiler} == "clang"} {
-#      configure.compiler llvm-gcc-4.2
-# }
-
 post-patch {
     reinplace "s|-lfreetype| \`freetype-config --libs\`|g" ${worksrcpath}/config/root-config.in
     reinplace "s|\"/usr/include\"|\"${prefix}/include/\" \"/usr/include\"|g" ${worksrcpath}/configure
@@ -53,19 +49,16 @@
 }
 
 pre-configure {
-    if {${configure.compiler} == "clang"} {
+    configure.args-append \
+          --with-cc=${configure.cc} \
+          --with-cxx=${configure.cxx} \
+          --with-ld=${configure.cxx}
+    if { [string match "*clang*" ${configure.compiler}] } {
         configure.args-append --with-clang
-    } else {
-        if {${configure.compiler} == "macports-clang-3.1"} {
-            configure.args-append --with-clang
-        } else {
-            configure.args-append \
-             --with-cc=${configure.cc} \
-             --with-cxx=${configure.cxx} \
-             --with-ld=${configure.cxx} \
-             --with-f77=${configure.f77}
-        }
     }
+    if { ${configure.f77} != "" } {
+        configure.args-append --with-f77=${configure.f77}
+    }
     # the build type (32 or 64 bit) -must- be for first argument
     if {${build_arch} == "i386" || ${build_arch} == "ppc"} {
        configure.pre_args macosx --prefix=${prefix}
@@ -111,16 +104,21 @@
                     --disable-bonjour \
                     --disable-gviz \
                     --disable-soversion \
-                    --with-x11-libdir=${prefix}/lib \
-                    --with-xpm-libdir=${prefix}/lib \
+                    --disable-c++11 \
+                    --disable-fink \
                     --enable-builtin-ftgl \
                     --enable-mathmore \
                     --enable-genvector \
                     --enable-memstat \
                     --enable-unuran \
                     --enable-reflex \
-                    --enable-table
+                    --enable-table \
+                    --enable-fink
 
+# Seem to cause build problems with FTGL ...
+#                    --with-x11-libdir=${prefix}/lib \
+#                    --with-xpm-libdir=${prefix}/lib \
+
 pre-build {
     build.args      CC=${configure.cc} \
                     CXX=${configure.cxx} \
@@ -235,7 +233,9 @@
 variant python27 conflicts python32 python31 python26 description {Builds port with python 2.7 support} {
     set mypydir ${prefix}/Library/Frameworks/Python.framework/Versions/2.7
     configure.args-delete   --disable-python
-    configure.args-append   --enable-python --with-python-incdir="${mypydir}/Headers" --with-python-libdir="${mypydir}"
+    configure.args-append   --enable-python \
+                            --with-python-incdir="${mypydir}/Headers" \
+                            --with-python-libdir="${mypydir}"
     depends_lib-append      port:python27
     post-destroot {
         set mypysitedir ${destroot}${prefix}/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/
@@ -261,7 +261,9 @@
 variant python32 conflicts python31 python27 python26 description {Builds port with python 3.2 support} {
     set mypydir ${prefix}/Library/Frameworks/Python.framework/Versions/3.2
     configure.args-delete   --disable-python
-    configure.args-append   --enable-python --with-python-incdir="${mypydir}/Headers" --with-python-libdir="${mypydir}"
+    configure.args-append   --enable-python \
+                            --with-python-incdir="${mypydir}/Headers" \
+                            --with-python-libdir="${mypydir}"
     depends_lib-append      port:python32
     post-destroot {
         set mypysitedir ${destroot}${prefix}/Library/Frameworks/Python.framework/Versions/3.2/lib/python3.2/site-packages/
@@ -294,69 +296,15 @@
     depends_lib-append      port:libxml2
 }
 
-variant qt_x11 conflicts qt_mac description {Builds port with Qt support via X11 UI} {
-    # fix where "qglobal.h" is found in all files that use or reference it
-    post-patch {
-        foreach tpf { configure graf2d/qt/src/TGQt.cxx } {
-            reinplace "s at Qt/qglobal\\.h at QtCore/qglobal\\.h at g" \
-                ${worksrcpath}/${tpf}
-        }
-        reinplace "/qttestdir/s at Qt@QtCore at g" ${worksrcpath}/configure
-    }
-
-    configure.env-append    QTDIR=${prefix}/libexec/qt4-x11
-    configure.args-delete   --disable-qt
-    configure.args-delete   --disable-qtgsi
-    configure.args-append   --enable-qt --enable-qtgsi \
-                            --with-qt-incdir="${prefix}/include" \
-                            --with-qt-libdir="${prefix}/lib"
-    depends_lib-append      port:qt4-x11
-}
-
-if {[variant_isset qt_mac]} {
-    PortGroup qt4 1.0
-}
-
-variant qt_mac conflicts qt_x11 description {Builds port with Qt support via Mac UI} {
-    post-patch {
-        # fix where "qglobal.h" is found in all files that use or reference it
-        foreach tpf { configure graf2d/qt/src/TGQt.cxx } {
-            reinplace "s at Qt/qglobal\\.h at QtCore/qglobal\\.h at g" \
-                ${worksrcpath}/${tpf}
-        }
-        reinplace "/qttestdir/s at Qt@QtCore at g" ${worksrcpath}/configure
-
-        # fix library search extensions to include ".la"
-        # for Qt framework libraries (only)
-        reinplace "s@\\(\\.so \\.sl \\.dylib \\.dll\\.a\\)@\\1 \\.la at g" \
-            ${worksrcpath}/configure
-    }
-
-    configure.args-delete   --disable-qt
-    configure.args-delete   --disable-qtgsi
-    configure.args-append   --enable-qt --enable-qtgsi \
-                            --with-qt-incdir="${prefix}/include" \
-                            --with-qt-libdir="${prefix}/lib"
-    depends_lib-append      port:qt4-mac
-
-    post-configure {
-        # patch up the Makefile.config to handle the QTLIB frameworks correctly
-        reinplace "/QTLIB\[ \]/s@:= @:= -F${qt_libs_dir} @" \
-            ${worksrcpath}/config/Makefile.config
-        reinplace "/QTLIB\[ \]/s@\\(Qt\[^ \]*\\).la at -framework \\1 at g" \
-            ${worksrcpath}/config/Makefile.config
-    }
-}
-
 variant mysql description {Builds port with mysql support} {
     configure.args-delete   --disable-mysql
     configure.args-append   --enable-mysql \
-                            --with-mysql-incdir="${prefix}/include" \
-                            --with-mysql-libdir="${prefix}/lib"
+                            --with-mysql-incdir="${prefix}/include/mysql5/mysql" \
+                            --with-mysql-libdir="${prefix}/lib/mysql5/mysql"
     depends_lib-append      port:mysql5
 }
 
-variant postgresql90 description {Builds port with PostgreSQL support} {
+variant postgresql90 conflicts postgresql92 description {Builds port with PostgreSQL 9.2 support} {
     configure.args-delete   --disable-pgsql
     configure.args-append   --enable-pgsql \
                             --with-pgsql-incdir="${prefix}/include/postgresql90" \
@@ -364,6 +312,14 @@
     depends_lib-append      port:libpqxx port:postgresql90
 }
 
+variant postgresql92 conflicts postgresql90 description {Builds port with PostgreSQL 9.0 support} {
+    configure.args-delete   --disable-pgsql
+    configure.args-append   --enable-pgsql \
+                            --with-pgsql-incdir="${prefix}/include/postgresql92" \
+                            --with-pgsql-libdir="${prefix}/lib/postgresql92"
+    depends_lib-append      port:libpqxx port:postgresql92
+}
+
 variant pythia description {Pythia 8 support for root} {
     configure.args-delete   --disable-pythia8
     configure.args-append   --enable-pythia8 \
@@ -372,37 +328,57 @@
     depends_lib-append      port:pythia
 }
 
-variant gcc43 conflicts gcc44 gcc45 gcc46 description {Compile using MacPorts gcc 4.3} {
-    configure.compiler      macports-gcc-4.3
-    depends_lib-append      port:gcc43
+variant cocoa description {Enables a native OSX cocoa graphical backend instead of using X11} {
+    # Check we are using a clang compiler
+    pre-fetch {
+        if { ![string match "*clang*" ${configure.compiler}] } {
+            ui_error "The cocoa variant is experimental and can currently only be built"
+            ui_error "using a clang compiler. Your current compiler is ${configure.compiler}."
+            ui_error "Please try again using either the clang31 variant, or the system"
+            ui_error "clang compiler using configure.compiler=clang"
+            return -code error "Unsupported compiler for cocoa support"
+        }
+    }
+    configure.args-append --enable-cocoa
+    # Fix a small issue with the cocoa backend where the 'root' command is not created ...
+    post-destroot {
+        system "( cd ${destroot}${prefix}/bin ; ln -s root.exe root )"
+    }
 }
 
-variant gcc44 conflicts gcc43 gcc45 gcc46 description {Compile using MacPorts gcc 4.4} {
-    configure.compiler      macports-gcc-4.4
-    depends_lib-append      port:gcc44
-}
-
-variant gcc45 conflicts gcc43 gcc44 gcc46 description {Compile using MacPorts gcc 4.5} {
+variant gcc45 conflicts gcc46 gcc47 clang31 description {Compile using MacPorts gcc 4.5} {
     configure.compiler      macports-gcc-4.5
     depends_lib-append      port:gcc45
 }
 
-variant gcc46 conflicts gcc43 gcc44 gcc45 description {Compile using MacPorts gcc 4.6} {
+variant gcc46 conflicts gcc45 gcc47 clang31 description {Compile using MacPorts gcc 4.6} {
     configure.compiler      macports-gcc-4.6
     depends_lib-append      port:gcc46
 }
 
-# variant clang31 conflicts gcc43 gcc44 gcc45 gcc46 description {EXPERIMENTAL - Compile using MacPorts clang 3.1} {
-#     configure.compiler      macports-clang-3.1
-#     depends_lib-append      port:clang-3.1
-#     configure.args-append   --with-llvm-config="${prefix}/bin/llvm-config"
-# }
+variant gcc47 conflicts gcc45 gcc46 clang31 description {Compile using MacPorts gcc 4.7} {
+    configure.compiler      macports-gcc-4.7
+    depends_lib-append      port:gcc47
+}
 
+variant clang31 conflicts gcc47 gcc46 gcc45 description {Compile using MacPorts clang 3.1} {
+     configure.compiler      macports-clang-3.1
+     depends_lib-append      port:clang-3.1
+     configure.args-append   --with-llvm-config="${prefix}/bin/llvm-config-mp-3.1"
+}
+
+livecheck.type              regex
+livecheck.url               [lindex ${master_sites} 0]
+livecheck.regex             ${name}_v(\[0-9a-z.\]+)\\.source
+
+# ========================================================================================
+# The following have build issues or are obsolete. Keep just for reference for the moment
+# ========================================================================================
+
 # variant cling requires clang31 description {EXPERIMENTAL - Enable cling interpreter backend} {
-#     configure.args-append --enable-cling
+#       configure.args-append --enable-cling
 # }
 
-# Build issues. 
 # variant kerberos5 description {Builds port with kerberos5 support} {
 #     configure.args-delete   --disable-krb5
 #     configure.args-append   --enable-krb5 \
@@ -411,7 +387,6 @@
 #      depends_lib-append      port:kerberos5
 # }
 
-# Build issues.
 # variant ftgl description {Builds port with ftgl support} {
 #     configure.args-delete   --enable-builtin-ftgl
 #     configure.args-append   --disable-builtin-ftgl \
@@ -420,6 +395,56 @@
 #     depends_lib-append      port:ftgl
 # }
 
-livecheck.type              regex
-livecheck.url               [lindex ${master_sites} 0]
-livecheck.regex             ${name}_v(\[0-9a-z.\]+)\\.source
+# variant qt_x11 conflicts qt_mac description {Builds port with Qt support via X11 UI} {
+#     # fix where "qglobal.h" is found in all files that use or reference it
+#     post-patch {
+#         foreach tpf { configure graf2d/qt/src/TGQt.cxx } {
+#             reinplace "s at Qt/qglobal\\.h at QtCore/qglobal\\.h at g" \
+#                 ${worksrcpath}/${tpf}
+#         }
+#         reinplace "/qttestdir/s at Qt@QtCore at g" ${worksrcpath}/configure
+#     }
+
+#     configure.env-append    QTDIR=${prefix}/libexec/qt4-x11
+#     configure.args-delete   --disable-qt
+#     configure.args-delete   --disable-qtgsi
+#     configure.args-append   --enable-qt --enable-qtgsi \
+#                             --with-qt-incdir="${prefix}/include" \
+#                             --with-qt-libdir="${prefix}/lib"
+#     depends_lib-append      port:qt4-x11
+# }
+
+# if {[variant_isset qt_mac]} {
+#     PortGroup qt4 1.0
+# }
+
+# variant qt_mac conflicts qt_x11 description {Builds port with Qt support via Mac UI} {
+#     post-patch {
+#         # fix where "qglobal.h" is found in all files that use or reference it
+#         foreach tpf { configure graf2d/qt/src/TGQt.cxx } {
+#             reinplace "s at Qt/qglobal\\.h at QtCore/qglobal\\.h at g" \
+#                 ${worksrcpath}/${tpf}
+#         }
+#         reinplace "/qttestdir/s at Qt@QtCore at g" ${worksrcpath}/configure
+
+#         # fix library search extensions to include ".la"
+#         # for Qt framework libraries (only)
+#         reinplace "s@\\(\\.so \\.sl \\.dylib \\.dll\\.a\\)@\\1 \\.la at g" \
+#             ${worksrcpath}/configure
+#     }
+
+#     configure.args-delete   --disable-qt
+#     configure.args-delete   --disable-qtgsi
+#     configure.args-append   --enable-qt --enable-qtgsi \
+#                             --with-qt-incdir="${prefix}/include" \
+#                             --with-qt-libdir="${prefix}/lib"
+#     depends_lib-append      port:qt4-mac
+
+#     post-configure {
+#         # patch up the Makefile.config to handle the QTLIB frameworks correctly
+#         reinplace "/QTLIB\[ \]/s@:= @:= -F${qt_libs_dir} @" \
+#             ${worksrcpath}/config/Makefile.config
+#         reinplace "/QTLIB\[ \]/s@\\(Qt\[^ \]*\\).la at -framework \\1 at g" \
+#             ${worksrcpath}/config/Makefile.config
+#     }
+# }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120629/27f0a153/attachment-0001.html>


More information about the macports-changes mailing list