<!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>[117080] users/mojca/ports/science/root5</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/117080">117080</a></dd>
<dt>Author</dt> <dd>mojca@macports.org</dd>
<dt>Date</dt> <dd>2014-02-14 19:54:14 -0800 (Fri, 14 Feb 2014)</dd>
</dl>

<h3>Log Message</h3>
<pre>mojca/root5: upgrade to 5.34.15 cmake-based root</pre>

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

<h3>Removed Paths</h3>
<ul>
<li><a href="#usersmojcaportsscienceroot5filespatchcmakediff">users/mojca/ports/science/root5/files/patch-cmake.diff</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="usersmojcaportsscienceroot5Portfile"></a>
<div class="modfile"><h4>Modified: users/mojca/ports/science/root5/Portfile (117079 => 117080)</h4>
<pre class="diff"><span>
<span class="info">--- users/mojca/ports/science/root5/Portfile        2014-02-15 02:55:28 UTC (rev 117079)
+++ users/mojca/ports/science/root5/Portfile        2014-02-15 03:54:14 UTC (rev 117080)
</span><span class="lines">@@ -4,10 +4,10 @@
</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 a346181de9
</del><ins>+github.setup        root-mirror root v5-34-15
</ins><span class="cx"> name                root5
</span><span class="cx"> # TODO: just temorary call this version &quot;-git&quot;
</span><del>-version             5.34.13-git
</del><ins>+version             5.34.15-git
</ins><span class="cx"> set version_major   5
</span><span class="cx"> 
</span><span class="cx"> categories          science
</span><span class="lines">@@ -25,8 +25,8 @@
</span><span class="cx"> homepage            http://root.cern.ch/
</span><span class="cx"> platforms           darwin
</span><span class="cx"> 
</span><del>-checksums           rmd160  c115febda7e6928408a0ab705f384e1935ec6f02 \
-                    sha256  229e48a7dbcb940e0094f4630addd19789a678defb946f7aa4620f0d34983851
</del><ins>+checksums           rmd160  d57e292b9733029db63758b33eea2891d1e1cc28 \
+                    sha256  e7128114576280f300819a78db5175da0df99f1140f25a029e5dd4826dda4983
</ins><span class="cx"> 
</span><span class="cx"> dist_subdir         root
</span><span class="cx"> configure.dir       ${workpath}/build
</span><span class="lines">@@ -51,8 +51,7 @@
</span><span class="cx">                     port:xpm \
</span><span class="cx">                     port:expat
</span><span class="cx"> 
</span><del>-patchfiles          patch-graf2d-asimage-src-libAfterImage-asfont.c.diff \
-                    patch-cmake.diff
</del><ins>+patchfiles          patch-graf2d-asimage-src-libAfterImage-asfont.c.diff
</ins><span class="cx"> 
</span><span class="cx"> configure.args-append \
</span><span class="cx">                     -Dgnuinstall=ON \
</span><span class="lines">@@ -114,21 +113,22 @@
</span><span class="cx"> # -Dc++11=ON  : requires gcc &gt; 4.7.x or clang
</span><span class="cx"> # -Dlibcxx=ON : Build using libc++, requires cxx11 option (MacOS X only, for the time being)  
</span><span class="cx"> 
</span><ins>+# TODO: Check ${configure.cxx_stdlib} directly once MacPorts 2.3 is released
</ins><span class="cx"> platform darwin {
</span><del>-    set cxx_stdlib {}
</del><ins>+    set cxxstdlib {}
</ins><span class="cx"> 
</span><del>-    if {[info exists configure.cxx_stdlib] &amp;&amp;
-        ${configure.cxx_stdlib} ne {} &amp;&amp;
</del><ins>+    if {[info exists configure.cxxstdlib] &amp;&amp;
+        ${configure.cxxstdlib} ne {} &amp;&amp;
</ins><span class="cx">         [string match *clang* ${configure.cxx}]} {
</span><del>-        set cxx_stdlib ${configure.cxx_stdlib}
</del><ins>+        set cxxstdlib ${configure.cxxstdlib}
</ins><span class="cx">     } elseif {[string match *clang* ${configure.cxx}] &amp;&amp;
</span><span class="cx">               ${os.major} &gt;= 13} {
</span><del>-        set cxx_stdlib libc++
</del><ins>+        set cxxstdlib libc++
</ins><span class="cx">     } else {
</span><del>-        set cxx_stdlib libstdc++
</del><ins>+        set cxxstdlib libstdc++
</ins><span class="cx">     }
</span><span class="cx"> 
</span><del>-    if {${cxx_stdlib} == &quot;libc++&quot;} {
</del><ins>+    if {${cxxstdlib} eq &quot;libc++&quot;} {
</ins><span class="cx">         configure.args-replace -Dc++11=OFF -Dc++11=ON
</span><span class="cx">         configure.args-replace -Dlibcxx=OFF -Dlibcxx=ON
</span><span class="cx">     }
</span><span class="lines">@@ -176,8 +176,6 @@
</span><span class="cx"> #                    --disable-mysql \
</span><span class="cx"> # -&gt; odbc
</span><span class="cx"> #                    --disable-odbc \
</span><del>-# -&gt; opengl
-#                    --disable-opengl \
</del><span class="cx"> # -&gt; pythia6
</span><span class="cx"> #                    --disable-pythia6 \
</span><span class="cx"> # -&gt; pythia8
</span><span class="lines">@@ -201,18 +199,12 @@
</span><span class="cx"> #                    --disable-bonjour \
</span><span class="cx"> #                    --disable-gviz \
</span><span class="cx"> #                    --disable-soversion \
</span><del>-# -&gt; cocoa
-#                    --disable-cocoa \
-# -&gt; builtin_ftgl
-#                    --enable-builtin-ftgl \
</del><span class="cx"> # -&gt; mathmore
</span><span class="cx"> #                    --enable-mathmore \
</span><span class="cx"> # -&gt; genvector
</span><span class="cx"> #                    --enable-genvector \
</span><span class="cx"> # -&gt; memstat
</span><span class="cx"> #                    --enable-memstat \
</span><del>-# -&gt; unuran
-#                    --enable-unuran \
</del><span class="cx"> # -&gt; table
</span><span class="cx"> #                    --enable-table \
</span><span class="cx"> 
</span><span class="lines">@@ -463,19 +455,16 @@
</span><span class="cx"> #                             --with-pythia8-libdir=${prefix}/lib
</span><span class="cx"> #     depends_lib-append      port:pythia
</span><span class="cx"> # }
</span><del>-# 
-# variant cocoa description {Enables native OSX graphical backend instead of X11} {
-#     # Force a compatible clang compiler
-#     PortGroup compiler_blacklist_versions 1.0
-#     compiler.blacklist-append {clang &lt; 425} *gcc* macports-clang-3.3 macports-clang-2.9 macports-clang-3.0
-#     compiler.fallback-append macports-clang-3.2 macports-clang-3.1
-#     # Enable cocoa support in configure
-#     configure.args-delete --disable-cocoa
-#     configure.args-append --enable-cocoa
-#     # patch afterimage build to make sure TIFF suport is disabled. Causes problems with cocoa...
-#     patchfiles-append patch-builtin-afterimage-disabletiff.diff
-# }
-# 
</del><ins>+
+variant cocoa description {Enables native OSX graphical backend instead of X11} {
+    # Force a compatible clang compiler
+    PortGroup compiler_blacklist_versions 1.0
+    compiler.blacklist-append {clang &lt; 425} *gcc* macports-clang-3.3 macports-clang-2.9 macports-clang-3.0
+    compiler.fallback-append macports-clang-3.2 macports-clang-3.1
+    # Enable cocoa support in configure
+    configure.args-replace -Dcocoa=OFF -Dcocoa=ON
+}
+
</ins><span class="cx"> # variant clang31 conflicts clang32 clang33 description {Compile using MacPorts clang 3.1} {
</span><span class="cx"> #     configure.compiler      macports-clang-3.1
</span><span class="cx"> # }
</span></span></pre></div>
<a id="usersmojcaportsscienceroot5filespatchcmakediff"></a>
<div class="delfile"><h4>Deleted: users/mojca/ports/science/root5/files/patch-cmake.diff (117079 => 117080)</h4>
<pre class="diff"><span>
<span class="info">--- users/mojca/ports/science/root5/files/patch-cmake.diff        2014-02-15 02:55:28 UTC (rev 117079)
+++ users/mojca/ports/science/root5/files/patch-cmake.diff        2014-02-15 03:54:14 UTC (rev 117080)
</span><span class="lines">@@ -1,423 +0,0 @@
</span><del>-diff --git a/CMakeLists.txt b/CMakeLists.txt
-index d81cb5b..cc7cca8 100644
---- CMakeLists.txt
-+++ CMakeLists.txt
-@@ -80,7 +80,7 @@ include(RootConfiguration)
- if(NOT CMAKE_SOURCE_DIR STREQUAL CMAKE_INSTALL_PREFIX)
-   install(FILES LICENSE DESTINATION ${CMAKE_INSTALL_DOCDIR})
-   install(DIRECTORY README/ DESTINATION ${CMAKE_INSTALL_DOCDIR} PATTERN &quot;.svn&quot; EXCLUDE)
--  install(DIRECTORY etc/ DESTINATION ${CMAKE_INSTALL_ETCDIR} USE_SOURCE_PERMISSIONS
-+  install(DIRECTORY etc/ DESTINATION ${CMAKE_INSTALL_SYSCONFDIR} USE_SOURCE_PERMISSIONS
-                          PATTERN &quot;.svn&quot; EXCLUDE 
-                          REGEX system.rootrc EXCLUDE 
-                          REGEX root.mimes EXCLUDE)
-diff --git a/cint/reflex/CMakeLists.txt b/cint/reflex/CMakeLists.txt
-index 0cda3a0..eca73e9 100644
---- cint/reflex/CMakeLists.txt
-+++ cint/reflex/CMakeLists.txt
-@@ -27,7 +27,7 @@ if(CMAKE_PROJECT_NAME STREQUAL ROOT)
-   ROOT_EXECUTABLE(genmap genmap/genmap.cxx LIBRARIES Reflex ${CMAKE_DL_LIBS})
-   #---install headers--------------------------------------------------------
-   #ROOT_INSTALL_HEADERS()
--  install(DIRECTORY inc/Reflex/ DESTINATION ${CMAKE_INSTALL_INCDIR}/Reflex
-+  install(DIRECTORY inc/Reflex/ DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/Reflex
-                             PATTERN &quot;.svn&quot; EXCLUDE
-                             PATTERN &quot;Makefile.am&quot; EXCLUDE
-                             REGEX &quot;LinkDef&quot; EXCLUDE )
-diff --git a/cmake/modules/RootBuildOptions.cmake b/cmake/modules/RootBuildOptions.cmake
-index 4971024..32e1f0c 100644
---- cmake/modules/RootBuildOptions.cmake
-+++ cmake/modules/RootBuildOptions.cmake
-@@ -179,6 +179,13 @@ endif()
- #---Add Installation Variables------------------------------------------------------------------
- include(RootInstallDirs)

-+#get_cmake_property(_variableNames VARIABLES)
-+#foreach (_variableName ${_variableNames})
-+#  if(_variableName MATCHES &quot;^CMAKE_INSTALL_&quot;)
-+#    message(STATUS &quot;${_variableName}=${${_variableName}}&quot;)
-+#  endif()
-+#endforeach()
-+



-diff --git a/cmake/modules/RootConfiguration.cmake b/cmake/modules/RootConfiguration.cmake
-index fcc336a..d92eb2e 100644
---- cmake/modules/RootConfiguration.cmake
-+++ cmake/modules/RootConfiguration.cmake
-@@ -26,12 +26,12 @@ set(explicitlink ${value${explicitlink}})

- if(gnuinstall)
-   set(prefix ${CMAKE_INSTALL_PREFIX})
--  set(etcdir ${CMAKE_INSTALL_FULL_ETCDIR})
-+  set(etcdir ${CMAKE_INSTALL_FULL_SYSCONFDIR})
-   set(bindir ${CMAKE_INSTALL_FULL_BINDIR})
-   set(libdir ${CMAKE_INSTALL_FULL_LIBDIR})
--  set(incdir ${CMAKE_INSTALL_FULL_INCDIR})
-+  set(incdir ${CMAKE_INSTALL_FULL_INCLUDEDIR})
-   set(mandir ${CMAKE_INSTALL_FULL_MANDIR})
--  set(plugindir ${CMAKE_INSTALL_FULL_ETCDIR}/plugins)
-+  set(plugindir ${CMAKE_INSTALL_FULL_SYSCONFDIR}/plugins)
-   set(datadir ${CMAKE_INSTALL_FULL_DATADIR})
-   set(elispdir ${CMAKE_INSTALL_FULL_ELISPDIR})
-   set(ttffontdir ${CMAKE_INSTALL_FULL_FONTDIR})
-@@ -45,12 +45,12 @@ if(gnuinstall)
-   set(aclocaldir ${CMAKE_INSTALL_FULL_ACLOCALDIR})
- else()
-   set(prefix $(ROOTSYS))
--  set(etcdir ${prefix}/${CMAKE_INSTALL_ETCDIR})
-+  set(etcdir ${prefix}/${CMAKE_INSTALL_SYSCONFDIR})
-   set(bindir ${prefix}/${CMAKE_INSTALL_BINDIR})
-   set(libdir ${prefix}/${CMAKE_INSTALL_LIBDIR})
--  set(incdir ${prefix}/${CMAKE_INSTALL_INCDIR})
-+  set(incdir ${prefix}/${CMAKE_INSTALL_INCLUDEDIR})
-   set(mandir ${prefix}/${CMAKE_INSTALL_MANDIR})
--  set(plugindir ${prefix}/${CMAKE_INSTALL_ETCDIR}/plugins)
-+  set(plugindir ${prefix}/${CMAKE_INSTALL_SYSCONFDIR}/plugins)
-   set(datadir ${prefix}/${CMAKE_INSTALL_DATADIR})
-   set(elispdir ${prefix}/${CMAKE_INSTALL_ELISPDIR})
-   set(ttffontdir ${prefix}/${CMAKE_INSTALL_FONTDIR})
-@@ -377,11 +377,11 @@ set(pythonvers ${PYTHON_VERSION})
- include(WriteConfigCint)
- WRITE_CONFIG_CINT( ${CMAKE_CURRENT_BINARY_DIR}/tmp/configcint.h)
- execute_process(COMMAND cmake -E copy_if_different ${CMAKE_CURRENT_BINARY_DIR}/tmp/configcint.h ${HEADER_OUTPUT_PATH}/configcint.h)
--#install(FILES ${HEADER_OUTPUT_PATH}/configcint.h DESTINATION ${CMAKE_INSTALL_INCDIR})
-+#install(FILES ${HEADER_OUTPUT_PATH}/configcint.h DESTINATION ${CMAKE_INSTALL_INCLUDEDIR})

- #---RConfigure.h---------------------------------------------------------------------------------------------
- configure_file(${PROJECT_SOURCE_DIR}/config/RConfigure.in include/RConfigure.h)
--install(FILES ${CMAKE_BINARY_DIR}/include/RConfigure.h DESTINATION ${CMAKE_INSTALL_INCDIR})
-+install(FILES ${CMAKE_BINARY_DIR}/include/RConfigure.h DESTINATION ${CMAKE_INSTALL_INCLUDEDIR})

- #---Configure and install various files----------------------------------------------------------------------
- execute_Process(COMMAND hostname OUTPUT_VARIABLE BuildNodeInfo OUTPUT_STRIP_TRAILING_WHITESPACE )
-@@ -502,11 +502,11 @@ install(FILES ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/genreflex

- install(FILES ${CMAKE_BINARY_DIR}/include/RConfigOptions.h
-               ${CMAKE_BINARY_DIR}/include/compiledata.h 
--              DESTINATION ${CMAKE_INSTALL_INCDIR})
-+              DESTINATION ${CMAKE_INSTALL_INCLUDEDIR})

- install(FILES ${CMAKE_BINARY_DIR}/etc/root.mimes 
-               ${CMAKE_BINARY_DIR}/etc/system.rootrc
--              DESTINATION ${CMAKE_INSTALL_ETCDIR})
-+              DESTINATION ${CMAKE_INSTALL_SYSCONFDIR})
-               
- install(FILES ${CMAKE_BINARY_DIR}/root-help.el DESTINATION ${CMAKE_INSTALL_ELISPDIR})

-diff --git a/cmake/modules/RootInstallDirs.cmake b/cmake/modules/RootInstallDirs.cmake
-index cbc181a..95f94fc 100644
---- cmake/modules/RootInstallDirs.cmake
-+++ cmake/modules/RootInstallDirs.cmake
-@@ -7,13 +7,13 @@
- # where &lt;dir&gt; is one of:
- #  BINDIR           - user executables (bin)
- #  LIBDIR           - object code libraries (lib or lib64 or lib/&lt;multiarch-tuple&gt; on Debian)
--#  INCDIR           - C/C++ header files (include)
--#  ETCDIR           - read-only single-machine data (etc)
-+#  INCLUDEDIR       - C/C++ header files (include)
-+#  SYSCONFDIR       - read-only single-machine data (etc)
- #  DATAROOTDIR      - read-only architecture-independent data (share/root)
- #  DATADIR          - read-only architecture-independent data (DATAROOTDIR)
- #  MANDIR           - man documentation (DATAROOTDIR/man)
- #  MACRODIR         - ROOT macros (DATAROOTDIR/macros)
--#  CINTINCDIR       - CINT include files (LIBDIR/macros)
-+#  CINTINCDIR       - CINT include files (LIBDIR/cint)
- #  ICONDIR          - icons (DATAROOTDIR/icons)
- #  SRCDIR           - sources (DATAROOTDIR/src)
- #  FONTDIR          - fonts (DATAROOTDIR/fonts)
-@@ -58,44 +58,48 @@ if(NOT DEFINED CMAKE_INSTALL_LIBDIR)
-   endif()
- endif()

--if(NOT DEFINED CMAKE_INSTALL_CINTINCDIR)
-+if(NOT DEFINED CMAKE_INSTALL_INCLUDEDIR)
-   if(gnuinstall)
--    set(CMAKE_INSTALL_CINTINCDIR &quot;lib/root/cint&quot; CACHE PATH &quot;cint includes and libraries libraries (cint)&quot;)
-+    set(CMAKE_INSTALL_INCLUDEDIR &quot;include/root&quot; CACHE PATH &quot;C header files (include)&quot;)
-   else()
--    set(CMAKE_INSTALL_CINTINCDIR &quot;cint&quot; CACHE PATH &quot;cint includes and libraries libraries (cint)&quot;)
-+    set(CMAKE_INSTALL_INCLUDEDIR &quot;include&quot; CACHE PATH &quot;C header files (include)&quot;)
-   endif()
- endif()

--if(NOT DEFINED CMAKE_INSTALL_INCDIR)
-+if(NOT DEFINED CMAKE_INSTALL_SYSCONFDIR)
-   if(gnuinstall)
--    set(CMAKE_INSTALL_INCDIR &quot;include/root&quot; CACHE PATH &quot;C header files (include)&quot;)
-+    set(CMAKE_INSTALL_SYSCONFDIR &quot;/etc/root&quot; CACHE PATH &quot;read-only single-machine data (etc)&quot;)
-   else()
--    set(CMAKE_INSTALL_INCDIR &quot;include&quot; CACHE PATH &quot;C header files (include)&quot;)
-+    set(CMAKE_INSTALL_SYSCONFDIR &quot;etc&quot; CACHE PATH &quot;read-only single-machine data (etc)&quot;)
-   endif()
- endif()

--if(NOT DEFINED CMAKE_INSTALL_ETCDIR)
-+if(NOT DEFINED CMAKE_INSTALL_DATAROOTDIR)
-   if(gnuinstall)
--    set(CMAKE_INSTALL_ETCDIR &quot;/etc/root&quot; CACHE PATH &quot;read-only single-machine data (etc)&quot;)
-+    set(CMAKE_INSTALL_DATAROOTDIR &quot;share&quot; CACHE PATH &quot;root for the data (share/root)&quot;)
-   else()
--    set(CMAKE_INSTALL_ETCDIR &quot;etc&quot; CACHE PATH &quot;read-only single-machine data (etc)&quot;)
-+    set(CMAKE_INSTALL_DATAROOTDIR &quot;&quot; CACHE PATH &quot;root for the data ()&quot;)
-   endif()
- endif()

--if(gnuinstall)
--  set(__dataroot__ share/root/)
--  set(__share__ share/)
--endif()
--
- #-----------------------------------------------------------------------------
- # Values whose defaults are relative to DATAROOTDIR.  Store empty values in
- # the cache and store the defaults in local variables if the cache values are
- # not set explicitly.  This auto-updates the defaults as DATAROOTDIR changes.

-+if(NOT CMAKE_INSTALL_CINTINCDIR)
-+  if(gnuinstall)
-+    set(CMAKE_INSTALL_CINTINCDIR &quot;&quot; CACHE PATH &quot;cint includes and libraries libraries  (LIBDIR/cint)&quot;)
-+    set(CMAKE_INSTALL_CINTINCDIR &quot;${CMAKE_INSTALL_LIBDIR}/cint&quot;)
-+  else()
-+    set(CMAKE_INSTALL_CINTINCDIR &quot;cint&quot; CACHE PATH &quot;cint includes and libraries libraries (cint)&quot;)
-+  endif()
-+endif()
-+
- if(NOT CMAKE_INSTALL_DATADIR)
-   set(CMAKE_INSTALL_DATADIR &quot;&quot; CACHE PATH &quot;read-only architecture-independent data (DATAROOTDIR)&quot;)
-   if(gnuinstall)
--    set(CMAKE_INSTALL_DATADIR &quot;${__share__}root&quot;)
-+    set(CMAKE_INSTALL_DATADIR &quot;${CMAKE_INSTALL_DATAROOTDIR}/root&quot;)
-   else()
-     set(CMAKE_INSTALL_DATADIR &quot;.&quot;)
-   endif()
-@@ -103,48 +107,80 @@ endif()

- if(NOT CMAKE_INSTALL_MANDIR)
-   set(CMAKE_INSTALL_MANDIR &quot;&quot; CACHE PATH &quot;man documentation (DATAROOTDIR/man)&quot;)
--  set(CMAKE_INSTALL_MANDIR &quot;${__share__}man&quot;)
-+  if(gnuinstall)
-+    set(CMAKE_INSTALL_MANDIR &quot;${CMAKE_INSTALL_DATAROOTDIR}/man&quot;)
-+  else()
-+    set(CMAKE_INSTALL_MANDIR &quot;man&quot;)
-+  endif()
- endif()

- if(NOT CMAKE_INSTALL_MACRODIR)
--  set(CMAKE_INSTALL_MACRODIR &quot;&quot; CACHE PATH &quot;macros documentation (DATAROOTDIR/macros)&quot;)
--  set(CMAKE_INSTALL_MACRODIR &quot;${__dataroot__}macros&quot;)
-+  set(CMAKE_INSTALL_MACRODIR &quot;&quot; CACHE PATH &quot;macros documentation (DATADIR/macros)&quot;)
-+  if(gnuinstall)
-+    set(CMAKE_INSTALL_MACRODIR &quot;${CMAKE_INSTALL_DATADIR}/macros&quot;)
-+  else()
-+    set(CMAKE_INSTALL_MACRODIR &quot;macros&quot;)
-+  endif()
- endif()

- if(NOT CMAKE_INSTALL_ICONDIR)
--  set(CMAKE_INSTALL_ICONDIR &quot;&quot; CACHE PATH &quot;icons (DATAROOTDIR/icons)&quot;)
--  set(CMAKE_INSTALL_ICONDIR &quot;${__dataroot__}icons&quot;)
-+  set(CMAKE_INSTALL_ICONDIR &quot;&quot; CACHE PATH &quot;icons (DATADIR/icons)&quot;)
-+  if(gnuinstall)
-+    set(CMAKE_INSTALL_ICONDIR &quot;${CMAKE_INSTALL_DATADIR}/icons&quot;)
-+  else()
-+    set(CMAKE_INSTALL_ICONDIR &quot;icons&quot;)
-+  endif()
- endif()

- if(NOT CMAKE_INSTALL_FONTDIR)
--  set(CMAKE_INSTALL_FONTDIR &quot;&quot; CACHE PATH &quot;fonts (DATAROOTDIR/fonts)&quot;)
--  set(CMAKE_INSTALL_FONTDIR &quot;${__dataroot__}fonts&quot;)
-+  set(CMAKE_INSTALL_FONTDIR &quot;&quot; CACHE PATH &quot;fonts (DATADIR/fonts)&quot;)
-+  if(gnuinstall)
-+    set(CMAKE_INSTALL_FONTDIR &quot;${CMAKE_INSTALL_DATADIR}/fonts&quot;)
-+  else()
-+    set(CMAKE_INSTALL_FONTDIR &quot;fonts&quot;)
-+  endif()
- endif()

- if(NOT CMAKE_INSTALL_SRCDIR)
--  set(CMAKE_INSTALL_SRCDIR &quot;&quot; CACHE PATH &quot;sources (DATAROOTDIR/src)&quot;)
--  set(CMAKE_INSTALL_SRCDIR &quot;${__dataroot__}src&quot;)
-+  set(CMAKE_INSTALL_SRCDIR &quot;&quot; CACHE PATH &quot;sources (DATADIR/src)&quot;)
-+  if(gnuinstall)
-+    set(CMAKE_INSTALL_SRCDIR &quot;${CMAKE_INSTALL_DATADIR}/src&quot;)
-+  else()
-+    set(CMAKE_INSTALL_SRCDIR &quot;src&quot;)
-+  endif()
- endif()

- if(NOT CMAKE_INSTALL_ACLOCALDIR)
-   set(CMAKE_INSTALL_ACLOCALDIR &quot;&quot; CACHE PATH &quot;locale-dependent data (DATAROOTDIR/aclocal)&quot;)
--  set(CMAKE_INSTALL_ACLOCALDIR &quot;${__share__}aclocal&quot;)
-+  if(gnuinstall)
-+    set(CMAKE_INSTALL_ACLOCALDIR &quot;${CMAKE_INSTALL_DATAROOTDIR}/aclocal&quot;)
-+  else()
-+    set(CMAKE_INSTALL_ACLOCALDIR &quot;aclocal&quot;)
-+  endif()
- endif()

- if(NOT CMAKE_INSTALL_CMAKEDIR)
-   set(CMAKE_INSTALL_CMAKEDIR &quot;&quot; CACHE PATH &quot;CMake modules (DATAROOTDIR/cmake)&quot;)
--  set(CMAKE_INSTALL_CMAKEDIR &quot;${__dataroot__}cmake&quot;)
-+  if(gnuinstall)
-+    set(CMAKE_INSTALL_CMAKEDIR &quot;${CMAKE_INSTALL_DATADIR}/cmake&quot;)
-+  else()
-+    set(CMAKE_INSTALL_CMAKEDIR &quot;cmake&quot;)
-+  endif()
- endif()

- if(NOT CMAKE_INSTALL_ELISPDIR)
-   set(CMAKE_INSTALL_ELISPDIR &quot;&quot; CACHE PATH &quot;Lisp files (DATAROOTDIR/emacs/site-lisp)&quot;)
--  set(CMAKE_INSTALL_ELISPDIR &quot;${__share__}emacs/site-lisp&quot;)
-+  if(gnuinstall)
-+    set(CMAKE_INSTALL_ELISPDIR &quot;${CMAKE_INSTALL_DATAROOTDIR}/emacs/site-lisp&quot;)
-+  else()
-+    set(CMAKE_INSTALL_ELISPDIR &quot;emacs/site-lisp&quot;)
-+  endif()
- endif()

- if(NOT CMAKE_INSTALL_DOCDIR)
--  set(CMAKE_INSTALL_DOCDIR &quot;&quot; CACHE PATH &quot;documentation root (DATAROOTDIR/doc/PROJECT_NAME)&quot;)
-+  set(CMAKE_INSTALL_DOCDIR &quot;&quot; CACHE PATH &quot;documentation root (DATAROOTDIR/doc/root)&quot;)
-   if(gnuinstall)
--    set(CMAKE_INSTALL_DOCDIR &quot;${__share__}doc/root&quot;)
-+    set(CMAKE_INSTALL_DOCDIR &quot;${CMAKE_INSTALL_DATAROOTDIR}/doc/root&quot;)
-   else()
-     set(CMAKE_INSTALL_DOCDIR &quot;.&quot;)
-   endif()
-@@ -152,12 +188,20 @@ endif()

- if(NOT CMAKE_INSTALL_TESTDIR)
-   set(CMAKE_INSTALL_TESTDIR &quot;&quot; CACHE PATH &quot;root tests (DOCDIR/test)&quot;)
--  set(CMAKE_INSTALL_TESTDIR &quot;${CMAKE_INSTALL_DOCDIR}/test&quot;)
-+  if(gnuinstall)
-+    set(CMAKE_INSTALL_TESTDIR &quot;${CMAKE_INSTALL_DOCDIR}/test&quot;)
-+  else()
-+    set(CMAKE_INSTALL_TESTDIR &quot;test&quot;)
-+  endif()
- endif()

- if(NOT CMAKE_INSTALL_TUTDIR)
-   set(CMAKE_INSTALL_TUTDIR &quot;&quot; CACHE PATH &quot;root tutorials (DOCDIR/tutorials)&quot;)
--  set(CMAKE_INSTALL_TUTDIR &quot;${CMAKE_INSTALL_DOCDIR}/tutorials&quot;)
-+  if(gnuinstall)
-+    set(CMAKE_INSTALL_TUTDIR &quot;${CMAKE_INSTALL_DOCDIR}/tutorials&quot;)
-+  else()
-+    set(CMAKE_INSTALL_TUTDIR &quot;tutorials&quot;)
-+  endif()
- endif()


-@@ -166,8 +210,8 @@ endif()
- mark_as_advanced(
-   CMAKE_INSTALL_BINDIR
-   CMAKE_INSTALL_LIBDIR
--  CMAKE_INSTALL_INCDIR
--  CMAKE_INSTALL_ETCDIR
-+  CMAKE_INSTALL_INCLUDEDIR
-+  CMAKE_INSTALL_SYSCONFDIR
-   CMAKE_INSTALL_MANDIR
-   CMAKE_INSTALL_DATAROOTDIR
-   CMAKE_INSTALL_DATADIR
-@@ -188,8 +232,8 @@ mark_as_advanced(
- #
- foreach(dir BINDIR 
-             LIBDIR 
--            INCDIR
--            ETCDIR 
-+            INCLUDEDIR
-+            SYSCONFDIR 
-             MANDIR 
-             DATAROOTDIR 
-             DATADIR 
-diff --git a/cmake/modules/RootNewMacros.cmake b/cmake/modules/RootNewMacros.cmake
-index 5bb62a5..9d496e0 100644
---- cmake/modules/RootNewMacros.cmake
-+++ cmake/modules/RootNewMacros.cmake
-@@ -455,7 +455,7 @@ function(ROOT_INSTALL_HEADERS)
-     set(dirs inc/)
-   endif()
-   foreach(d ${dirs})  
--    install(DIRECTORY ${d} DESTINATION ${CMAKE_INSTALL_INCDIR}
-+    install(DIRECTORY ${d} DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}
-                            COMPONENT headers 
-                            PATTERN &quot;.svn&quot; EXCLUDE
-                            PATTERN &quot;X11&quot; EXCLUDE
-diff --git a/cmake/modules/SetUpWindows.cmake b/cmake/modules/SetUpWindows.cmake
-index 4b5d396..1cfe4d5 100644
---- cmake/modules/SetUpWindows.cmake
-+++ cmake/modules/SetUpWindows.cmake
-@@ -31,8 +31,8 @@ endif()
- if(CMAKE_PROJECT_NAME STREQUAL ROOT)
-   set(CMAKE_CXX_FLAGS &quot;-nologo -I${CMAKE_SOURCE_DIR}/build/win -FIw32pragma.h -FIsehmap.h ${BLDCXXFLAGS} -EHsc- -W3 -wd4244 -D_WIN32&quot;)
-   set(CMAKE_C_FLAGS   &quot;-nologo -I${CMAKE_SOURCE_DIR}/build/win -FIw32pragma.h -FIsehmap.h ${BLDCFLAGS} -EHsc- -W3 -D_WIN32&quot;)
--  install(FILES ${CMAKE_SOURCE_DIR}/build/win/w32pragma.h  DESTINATION ${CMAKE_INSTALL_INCDIR} COMPONENT headers)
--  install(FILES ${CMAKE_SOURCE_DIR}/build/win/sehmap.h  DESTINATION ${CMAKE_INSTALL_INCDIR} COMPONENT headers)  
-+  install(FILES ${CMAKE_SOURCE_DIR}/build/win/w32pragma.h  DESTINATION ${CMAKE_INSTALL_INCLUDEDIR} COMPONENT headers)
-+  install(FILES ${CMAKE_SOURCE_DIR}/build/win/sehmap.h  DESTINATION ${CMAKE_INSTALL_INCLUDEDIR} COMPONENT headers)  
- else()
-   set(CMAKE_CXX_FLAGS &quot;-nologo -FIw32pragma.h -FIsehmap.h ${BLDCXXFLAGS} -EHsc- -W3 -wd4244 -D_WIN32&quot;)
-   set(CMAKE_C_FLAGS   &quot;-nologo -FIw32pragma.h -FIsehmap.h ${BLDCFLAGS} -EHsc- -W3 -D_WIN32&quot;)
-diff --git a/core/lzma/CMakeLists.txt b/core/lzma/CMakeLists.txt
-index 551e946..5652a65 100644
---- core/lzma/CMakeLists.txt
-+++ core/lzma/CMakeLists.txt
-@@ -16,5 +16,5 @@ list(APPEND LibCore_INCLUDE_DIRS ${CMAKE_CURRENT_SOURCE_DIR}/inc)
- set(LibCore_SRCS ${LibCore_SRCS} PARENT_SCOPE)
- set(LibCore_INCLUDE_DIRS ${LibCore_INCLUDE} PARENT_SCOPE)

--install(FILES ${LZMA_headers} DESTINATION ${CMAKE_INSTALL_INCDIR})
-+install(FILES ${LZMA_headers} DESTINATION ${CMAKE_INSTALL_INCLUDEDIR})

-diff --git a/core/zip/CMakeLists.txt b/core/zip/CMakeLists.txt
-index 0593770..57dfaf1 100644
---- core/zip/CMakeLists.txt
-+++ core/zip/CMakeLists.txt
-@@ -62,7 +62,7 @@ endif()

- # Define all the header files which should be installed when
- # doing a &quot;make install&quot;
--install(FILES ${ZLIB_HEADERS} DESTINATION ${CMAKE_INSTALL_INCDIR})
-+install(FILES ${ZLIB_HEADERS} DESTINATION ${CMAKE_INSTALL_INCLUDEDIR})
- set_property(GLOBAL APPEND PROPERTY ROOT_INCLUDE_DIRS ${CMAKE_CURRENT_SOURCE_DIR}/inc)

- # Add all source files of this subdirectory to the source files
-diff --git a/roofit/histfactory/CMakeLists.txt b/roofit/histfactory/CMakeLists.txt
-index ee552f9..0f78aab 100644
---- roofit/histfactory/CMakeLists.txt
-+++ roofit/histfactory/CMakeLists.txt
-@@ -17,6 +17,6 @@ ROOT_EXECUTABLE(hist2workspace MakeModelAndMeasurements.cxx hist2workspace.cxx
-                                          Graf Gpad Minuit Foam RooStats XMLParser)

- #ROOT_INSTALL_HEADERS()
--install(DIRECTORY inc/RooStats/HistFactory/ DESTINATION ${CMAKE_INSTALL_INCDIR}/RooStats/HistFactory 
-+install(DIRECTORY inc/RooStats/HistFactory/ DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/RooStats/HistFactory 
-                        PATTERN &quot;.svn&quot; EXCLUDE
-                        REGEX &quot;LinkDef&quot; EXCLUDE )
-diff --git a/roofit/roostats/CMakeLists.txt b/roofit/roostats/CMakeLists.txt
-index ded7586..385ea0f 100644
---- roofit/roostats/CMakeLists.txt
-+++ roofit/roostats/CMakeLists.txt
-@@ -10,7 +10,7 @@ ROOT_LINKER_LIBRARY(RooStats  *.cxx G__RooStats.cxx LIBRARIES Core Cint
-                                DEPENDENCIES RooFit RooFitCore Tree RIO Hist Matrix MathCore Minuit Foam Graf Gpad )

- #ROOT_INSTALL_HEADERS()
--install(DIRECTORY inc/RooStats/ DESTINATION ${CMAKE_INSTALL_INCDIR}/RooStats
-+install(DIRECTORY inc/RooStats/ DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/RooStats
-                        COMPONENT headers
-                        PATTERN &quot;.svn&quot; EXCLUDE
-                        REGEX &quot;LinkDef&quot; EXCLUDE )
-diff --git a/tmva/CMakeLists.txt b/tmva/CMakeLists.txt
-index 8183c7e..9a5379a 100644
---- tmva/CMakeLists.txt
-+++ tmva/CMakeLists.txt
-@@ -59,7 +59,7 @@ ROOT_GENERATE_ROOTMAP(TMVA LINKDEF LinkDef1.h LinkDef2.h LinkDef3.h LinkDef4.h
- ROOT_LINKER_LIBRARY(TMVA *.cxx G__TMVA1.cxx G__TMVA2.cxx G__TMVA3.cxx G__TMVA4.cxx LIBRARIES Core Cint 
-                     DEPENDENCIES RIO Hist Tree MLP Minuit XMLIO)

--install(DIRECTORY inc/TMVA/ DESTINATION ${CMAKE_INSTALL_INCDIR}/TMVA
-+install(DIRECTORY inc/TMVA/ DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/TMVA
-                             PATTERN &quot;.svn&quot; EXCLUDE
-                             REGEX &quot;LinkDef&quot; EXCLUDE )
- #if(NOT CMAKE_SOURCE_DIR STREQUAL CMAKE_INSTALL_PREFIX)
</del></span></pre>
</div>
</div>

</body>
</html>