<!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>[145040] trunk/dports/games/crafty</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/145040">145040</a></dd>
<dt>Author</dt> <dd>khindenburg@macports.org</dd>
<dt>Date</dt> <dd>2016-01-23 19:32:49 -0800 (Sat, 23 Jan 2016)</dd>
</dl>

<h3>Log Message</h3>
<pre>crafty: update to 25.0.1
    attempt to use the right compiler - universal fails  to build#45178
    add folder for endgame tablebase</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkdportsgamescraftyPortfile">trunk/dports/games/crafty/Portfile</a></li>
</ul>

<h3>Added Paths</h3>
<ul>
<li>trunk/dports/games/crafty/files/</li>
<li><a href="#trunkdportsgamescraftyfilespatchMakefilediff">trunk/dports/games/crafty/files/patch-Makefile.diff</a></li>
<li><a href="#trunkdportsgamescraftyfilespatchdirsdiff">trunk/dports/games/crafty/files/patch-dirs.diff</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkdportsgamescraftyPortfile"></a>
<div class="modfile"><h4>Modified: trunk/dports/games/crafty/Portfile (145039 => 145040)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/dports/games/crafty/Portfile        2016-01-24 02:50:01 UTC (rev 145039)
+++ trunk/dports/games/crafty/Portfile        2016-01-24 03:32:49 UTC (rev 145040)
</span><span class="lines">@@ -5,8 +5,7 @@
</span><span class="cx"> 
</span><span class="cx"> name                crafty
</span><span class="cx"> categories          games
</span><del>-version             24.1
-revision            1
</del><ins>+version             25.0.1
</ins><span class="cx"> platforms           darwin
</span><span class="cx"> license             Unknown
</span><span class="cx"> maintainers         khindenburg openmaintainer
</span><span class="lines">@@ -23,9 +22,6 @@
</span><span class="cx">                     http://cis.uab.edu/hyatt/crafty/documentation:doc \
</span><span class="cx">                     http://cis.uab.edu/hyatt/crafty/book:book
</span><span class="cx"> 
</span><del>-# handle stealth update - remove when new version is released
-dist_subdir         ${name}/${version}_1
-
</del><span class="cx"> set dist_srczip     ${name}-${version}.zip
</span><span class="cx"> set dist_book1      book.bin
</span><span class="cx"> set dist_book2      bookc.bin
</span><span class="lines">@@ -33,7 +29,6 @@
</span><span class="cx"> set dist_ascii      ${name}.doc.ascii
</span><span class="cx"> set dist_ps         ${name}.doc.ps
</span><span class="cx"> set dist_man        ${name}.man
</span><del>-dist_subdir         ${name}/${version}
</del><span class="cx"> 
</span><span class="cx"> distfiles           ${dist_srczip}:src \
</span><span class="cx">                     ${dist_book1}:book \
</span><span class="lines">@@ -45,8 +40,8 @@
</span><span class="cx"> 
</span><span class="cx"> checksums \
</span><span class="cx">     ${dist_srczip} \
</span><del>-        rmd160  d3b00532e1fd0bd744a1d2956cf6162588ec99b9 \
-        sha256  a29d25d9a26a5a958f07a075d1f76f52c12d287ad16ee7aadb224a0dfee40659 \
</del><ins>+        rmd160  7df915f428b311f5ac027a0351147e0d27eae3b6 \
+        sha256  a86a3be9bc422d0a9d25900a7cd81a4149cf593248e300145c8fb679b0900f2b \
</ins><span class="cx">     ${dist_book1} \
</span><span class="cx">         rmd160  0254f07781ea9a096feae892bd7343e401e4b413 \
</span><span class="cx">         sha256  67a41dda9a477912b570cc5583fe5fac4f93fb2dba9db436f77f5f95217279b2 \
</span><span class="lines">@@ -67,21 +62,28 @@
</span><span class="cx">         sha256  7c6c217431abb178ed53a6f9f949a2412a9bf30be856077b30dfbc13d426ca0e
</span><span class="cx"> 
</span><span class="cx"> use_zip             yes
</span><ins>+extract.mkdir       yes
</ins><span class="cx"> extract.only        ${dist_srczip}
</span><span class="cx"> 
</span><ins>+patchfiles          patch-dirs.diff \
+                    patch-Makefile.diff
+
</ins><span class="cx"> post-patch {
</span><del>-    reinplace &quot;s|IPHONE|__APPLE__|g&quot; ${worksrcpath}/chess.h
-    reinplace -E &quot;s|BOOKDIR \+\&quot;.\&quot;|BOOKDIR \&quot;${prefix}/share/crafty\&quot;|g&quot; ${worksrcpath}/chess.h
</del><ins>+    reinplace &quot;s|@@PREFIX@@|${prefix}|&quot; ${worksrcpath}/chess.h
+
+    reinplace &quot;s|@@CC@@|${configure.cc}|g&quot; ${worksrcpath}/Makefile
+    reinplace &quot;s|@@CXX@@|${configure.cxx}|g&quot; ${worksrcpath}/Makefile
+    reinplace &quot;s|@@CFLAGS@@|${configure.cflags} [get_canonical_archflags cc]|g&quot; ${worksrcpath}/Makefile
+    reinplace &quot;s|@@CXFLAGS@@|${configure.cxxflags} [get_canonical_archflags cxx]|g&quot; ${worksrcpath}/Makefile
+    reinplace &quot;s|@@LDFLAGS@@|${configure.ldflags} [get_canonical_archflags ld]|g&quot; ${worksrcpath}/Makefile
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> use_configure       no
</span><span class="cx"> 
</span><ins>+# asm errors building +universal
+#variant universal {}
+
</ins><span class="cx"> build.target        unix-gcc
</span><del>-# in a next version, point crafty to the default location for books
-# for the moment use the classic bookpath switch when launching it
-# should you want to use endgame tables, put them into the TBDIR
-# build.args            -DBOOKDIR=${prefix}/share/${name}/ \
-#                    -DTBDIR=${prefix}/share/${name}/TB/
</del><span class="cx"> 
</span><span class="cx"> destroot {
</span><span class="cx">     # copy the executable
</span><span class="lines">@@ -95,6 +97,9 @@
</span><span class="cx">               ${distpath}/${dist_book3} \
</span><span class="cx">               ${destroot}${prefix}/share/${name}/
</span><span class="cx"> 
</span><ins>+    # create endgame tablebase folder
+    xinstall -m 755 -d ${destroot}${prefix}/share/${name}/TB
+
</ins><span class="cx">     # copy the docs
</span><span class="cx">     xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
</span><span class="cx">     file copy ${distpath}/${dist_ascii} \
</span><span class="lines">@@ -105,6 +110,7 @@
</span><span class="cx">     file copy ${distpath}/${dist_man} \
</span><span class="cx">               ${destroot}${prefix}/share/man/man1/${name}.1
</span><span class="cx"> }
</span><ins>+destroot.keepdirs   ${destroot}${prefix}/share/${name}/TB
</ins><span class="cx"> 
</span><span class="cx"> livecheck.type      regex
</span><span class="cx"> livecheck.url       http://cis.uab.edu/hyatt/crafty/source
</span></span></pre></div>
<a id="trunkdportsgamescraftyfilespatchMakefilediff"></a>
<div class="addfile"><h4>Added: trunk/dports/games/crafty/files/patch-Makefile.diff (0 => 145040)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/dports/games/crafty/files/patch-Makefile.diff                                (rev 0)
+++ trunk/dports/games/crafty/files/patch-Makefile.diff        2016-01-24 03:32:49 UTC (rev 145040)
</span><span class="lines">@@ -0,0 +1,20 @@
</span><ins>+--- Makefile        2016-01-10 15:41:46.000000000 -0500
++++ Makefile        2016-01-23 14:01:43.000000000 -0500
+@@ -83,13 +83,11 @@

+ unix-gcc:
+         $(MAKE) -j target=UNIX \
+-                CC=gcc CXX=g++ \
++                CC=@@CC@@ CXX=@@CXX@@ \
+                 opt='-DTEST -DINLINEASM -DPOPCNT -DCPUS=4' \
+-                CFLAGS='-Wall -Wno-array-bounds -pipe -O3 -fprofile-use \
+-                -fprofile-correction -pthread' \
+-                CXFLAGS='-Wall -Wno-array-bounds -pipe -O3 -fprofile-use \
+-                -fprofile-correction -pthread' \
+-                LDFLAGS='$(LDFLAGS) -fprofile-use -pthread -lstdc++' \
++                CFLAGS='@@CFLAGS@@' \
++                CXFLAGS='@@CXFLAGS@@' \
++                LDFLAGS='@@LDFLAGS@@' \
+                 crafty-make

+ unix-gcc-profile:
</ins></span></pre></div>
<a id="trunkdportsgamescraftyfilespatchdirsdiff"></a>
<div class="addfile"><h4>Added: trunk/dports/games/crafty/files/patch-dirs.diff (0 => 145040)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/dports/games/crafty/files/patch-dirs.diff                                (rev 0)
+++ trunk/dports/games/crafty/files/patch-dirs.diff        2016-01-24 03:32:49 UTC (rev 145040)
</span><span class="lines">@@ -0,0 +1,18 @@
</span><ins>+--- chess.h        2016-01-01 22:44:42.000000000 -0500
++++ chess.h        2016-01-01 22:49:54.000000000 -0500
+@@ -63,13 +63,13 @@
+ #    endif
+ #  endif
+ #  if !defined(BOOKDIR)
+-#    define   BOOKDIR      &quot;.&quot;
++#    define   BOOKDIR      &quot;@@PREFIX@@/share/crafty&quot;
+ #  endif
+ #  if !defined(LOGDIR)
+ #    define   LOGDIR       &quot;.&quot;
+ #  endif
+ #  if !defined(TBDIR)
+-#    define   TBDIR        &quot;./TB&quot;
++#    define   TBDIR        &quot;@@PREFIX@@/share/crafty/TB&quot;
+ #  endif
+ #  if !defined(RCDIR)
+ #    define   RCDIR        &quot;.&quot;
</ins></span></pre>
</div>
</div>

</body>
</html>