<!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>[154289] trunk/dports/graphics/glfw</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 { white-space: pre-line; 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/154289">154289</a></dd>
<dt>Author</dt> <dd>michaelld@macports.org</dd>
<dt>Date</dt> <dd>2016-10-26 18:23:55 +0200 (Wed, 26 Oct 2016)</dd>
</dl>

<h3>Log Message</h3>
<pre>glfw:
+ add support for Mac OS X 10.6 and prior, via using commit a94a84b5 (latest to suppose those OS versions);
+ update devel to 8d6f2654 (20161019).</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkdportsgraphicsglfwPortfile">trunk/dports/graphics/glfw/Portfile</a></li>
</ul>

<h3>Added Paths</h3>
<ul>
<li><a href="#trunkdportsgraphicsglfwfilespatchCMakeListstxtlegacydiff">trunk/dports/graphics/glfw/files/patch-CMakeLists.txt.legacy.diff</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkdportsgraphicsglfwPortfile"></a>
<div class="modfile"><h4>Modified: trunk/dports/graphics/glfw/Portfile (154288 => 154289)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/dports/graphics/glfw/Portfile      2016-10-26 16:16:27 UTC (rev 154288)
+++ trunk/dports/graphics/glfw/Portfile 2016-10-26 16:23:55 UTC (rev 154289)
</span><span class="lines">@@ -12,47 +12,72 @@
</span><span class="cx"> license             zlib
</span><span class="cx"> platforms           darwin macosx
</span><span class="cx"> 
</span><del>-subport glfw-devel {}
</del><ins>+platform darwin {
+    if {${os.major} < 11} {
</ins><span class="cx"> 
</span><del>-if {${subport} eq ${name}} {
</del><ins>+        # Mac OS X 10.6 and prior: latest commit supporting
</ins><span class="cx"> 
</span><del>-    # release
</del><ins>+        github.setup    glfw glfw a94a84b507b0d6d11e8a3f257cb21f4bd6553516
+        checksums       rmd160 1c07a75a88f272653ca246aa1212a208a83ecb30 \
+                        sha256 ff4745264f92b740c50ecc90370f102c86c439f2b6108f1495bd60c87e5d6a83
</ins><span class="cx"> 
</span><del>-    github.setup    glfw glfw 3.2.1
-    checksums       rmd160 5fb5988736a0a2812426907ab8d64b94eeacc010 \
-                    sha256 34bc25f8111501eec35a52fd39fa50336a0c2e812d4a14454c7c946458ab015c
</del><ins>+        # bump the epoch because I moved the version from 20151012 to 3.1.2
</ins><span class="cx"> 
</span><del>-    # bump the epoch because I moved the version from 20151012 to 3.1.2
</del><ins>+        epoch           1
</ins><span class="cx"> 
</span><del>-    epoch           1
</del><ins>+        long_description ${description}. This version of GLFW is the latest to provide support for Mac OS X 10.6 and prior, and is will not be updated. It is provided in the hope that it allows ports depending on GLFW to build on these older Mac OS X installs.
</ins><span class="cx"> 
</span><del>-    conflicts       glfw-devel
-    long_description ${description}: \
-        This port follows the release version of GLFW, which is typically updated every 6 months. If for some reason this port does not build or function as desired, try the ${name}-devel port.
</del><ins>+        # patch to fix install directory for cmake files and docs
</ins><span class="cx"> 
</span><del>-} else {
</del><ins>+        patchfiles-append patch-CMakeLists.txt.legacy.diff
</ins><span class="cx"> 
</span><del>-    # devel
</del><ins>+    } else {
</ins><span class="cx"> 
</span><del>-    github.setup    glfw glfw aa10ec6e455a4c767c5feed83e2e8623adb3e775
-    version         20161010
-    checksums       rmd160 5235fb6db8d7882a51b18b841b30050b3f691dea \
-                    sha256 df2898ee8b58e02f0f240254429cc87f1af52e4d1add4a9f3fba9eeaede0b7e5
</del><ins>+        # Mac OS X 10.7 and newer: release and devel
</ins><span class="cx"> 
</span><del>-    conflicts       glfw
-    long_description ${description}: \
-    This port follows the GIT master version of GLFW, which is typically updated every few days to weeks.
</del><ins>+        subport glfw-devel {}
</ins><span class="cx"> 
</span><del>-}
</del><ins>+        if {${subport} eq ${name}} {
</ins><span class="cx"> 
</span><del>-# patch to fix install name of library
</del><ins>+            # release
</ins><span class="cx"> 
</span><del>-patchfiles-append   patch-src_CMakeLists.txt.diff
</del><ins>+            github.setup    glfw glfw 3.2.1
+            checksums       rmd160 5fb5988736a0a2812426907ab8d64b94eeacc010 \
+                            sha256 34bc25f8111501eec35a52fd39fa50336a0c2e812d4a14454c7c946458ab015c
</ins><span class="cx"> 
</span><del>-# patch to fix install directory for cmake files and docs
</del><ins>+            # bump the epoch because I moved the version from 20151012 to 3.1.2
</ins><span class="cx"> 
</span><del>-patchfiles-append patch-CMakeLists.txt.diff
</del><ins>+            epoch           1
</ins><span class="cx"> 
</span><ins>+            conflicts       glfw-devel
+            long_description ${description}: \
+                This port follows the release version of GLFW, which is typically updated every 6 months. If for some reason this port does not build or function as desired, try the ${name}-devel port.
+
+        } else {
+
+            # devel
+
+            github.setup    glfw glfw 8d6f265441959d0eff2d3fd97edfb99b98ce2777
+            version         20161019
+            checksums       rmd160 43b59ba3be7d03b23536db3628021f4dda8d3147 \
+                            sha256 6a9cc3d0f8effac9978613523fd5c5f1b81c8577ed13f206fa177678619cb445
+
+            conflicts       glfw
+            long_description ${description}: \
+                This port follows the GIT master version of GLFW, which is typically updated every few days to weeks.
+        }
+
+        # patch to fix install name of library
+
+        patchfiles-append patch-src_CMakeLists.txt.diff
+
+        # patch to fix install directory for cmake files and docs
+
+        patchfiles-append patch-CMakeLists.txt.diff
+
+    }
+}
+
</ins><span class="cx"> # use the real home page, not github's
</span><span class="cx"> 
</span><span class="cx"> homepage            http://www.glfw.org/
</span><span class="lines">@@ -84,16 +109,3 @@
</span><span class="cx"> } else {
</span><span class="cx">     configure.args-append -DDOXYGEN_EXECUTABLE=
</span><span class="cx"> }
</span><del>-
-# error out if trying to build on OSX 10.6 or earlier; not supported
-
-platform darwin {
-    if {${os.major} < 11} {
-        set os_note "${name} ${version} is designed for OS X 10.7 Lion and newer."
-        notes-append "\n\n${os_note}"
-        pre-fetch {
-            ui_error ${os_note}
-            error "unsupported platform"
-        }
-    }
-}
</del></span></pre></div>
<a id="trunkdportsgraphicsglfwfilespatchCMakeListstxtlegacydiff"></a>
<div class="addfile"><h4>Added: trunk/dports/graphics/glfw/files/patch-CMakeLists.txt.legacy.diff (0 => 154289)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/dports/graphics/glfw/files/patch-CMakeLists.txt.legacy.diff                                (rev 0)
+++ trunk/dports/graphics/glfw/files/patch-CMakeLists.txt.legacy.diff   2016-10-26 16:23:55 UTC (rev 154289)
</span><span class="lines">@@ -0,0 +1,50 @@
</span><ins>+--- CMakeLists.txt.orig
++++ CMakeLists.txt
+@@ -391,12 +391,12 @@
+ #--------------------------------------------------------------------
+ include(CMakePackageConfigHelpers)

+-if (UNIX)
+-    set(GLFW_CONFIG_PATH "${CMAKE_INSTALL_PREFIX}/lib/cmake/glfw3/")
+-else()
+-    set(GLFW_CONFIG_PATH "${CMAKE_INSTALL_PREFIX}/")
++if (NOT GLFW_CMAKE_CONFIG_PATH)
++  set(GLFW_CMAKE_CONFIG_PATH "lib${LIB_SUFFIX}")
+ endif()

++set(GLFW_CONFIG_PATH "${GLFW_CMAKE_CONFIG_PATH}/cmake/glfw3")
++
+ configure_package_config_file("${GLFW_SOURCE_DIR}/src/glfw3Config.cmake.in"
+                               "${GLFW_BINARY_DIR}/src/glfw3Config.cmake"
+                               INSTALL_DESTINATION "${GLFW_CONFIG_PATH}"
+@@ -433,6 +433,9 @@

+ if (DOXYGEN_FOUND AND GLFW_BUILD_DOCS)
+     add_subdirectory(docs)
++    if (NOT GLFW_DOCS_PATH)
++        set(GLFW_DOCS_PATH "share/doc/glfw3/")
++    endif()
+ endif()

+ #--------------------------------------------------------------------
+@@ -445,12 +448,18 @@

+     install(FILES "${GLFW_BINARY_DIR}/src/glfw3Config.cmake"
+                   "${GLFW_BINARY_DIR}/src/glfw3ConfigVersion.cmake"
+-            DESTINATION lib${LIB_SUFFIX}/cmake/glfw)
++            DESTINATION ${GLFW_CONFIG_PATH})
++
++    install(EXPORT glfwTargets DESTINATION ${GLFW_CONFIG_PATH})

+-    install(EXPORT glfwTargets DESTINATION lib${LIB_SUFFIX}/cmake/glfw)
+     install(FILES "${GLFW_BINARY_DIR}/src/glfw3.pc"
+             DESTINATION lib${LIB_SUFFIX}/pkgconfig)

++    if (DOXYGEN_FOUND AND GLFW_BUILD_DOCS)
++        install(FILES "${GLFW_BINARY_DIR}/docs/html"
++            DESTINATION "${GLFW_DOCS_PATH}")
++    endif()
++
+     # Only generate this target if no higher-level project already has
+     if (NOT TARGET uninstall)
+         configure_file("${GLFW_SOURCE_DIR}/cmake_uninstall.cmake.in"
</ins></span></pre>
</div>
</div>

</body>
</html>