<!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>[122233] trunk/dports/games/gnubg</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/122233">122233</a></dd>
<dt>Author</dt> <dd>dtakahashi@macports.org</dd>
<dt>Date</dt> <dd>2014-07-17 22:21:52 -0700 (Thu, 17 Jul 2014)</dd>
</dl>

<h3>Log Message</h3>
<pre>gnubg: update to the current version</pre>

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

<h3>Added Paths</h3>
<ul>
<li><a href="#trunkdportsgamesgnubgfilesdarwindisablecanberraconfigureacdiff">trunk/dports/games/gnubg/files/darwin-disable-canberra.configure.ac.diff</a></li>
</ul>

<h3>Removed Paths</h3>
<ul>
<li><a href="#trunkdportsgamesgnubgfilespatchMakefileindiff">trunk/dports/games/gnubg/files/patch-Makefile.in.diff</a></li>
<li><a href="#trunkdportsgamesgnubgfilespatchconfigurediff">trunk/dports/games/gnubg/files/patch-configure.diff</a></li>
<li><a href="#trunkdportsgamesgnubgfilespatchexportcdiff">trunk/dports/games/gnubg/files/patch-export.c.diff</a></li>
<li><a href="#trunkdportsgamesgnubgfilespatchrollouthdiff">trunk/dports/games/gnubg/files/patch-rollout.h.diff</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkdportsgamesgnubgPortfile"></a>
<div class="modfile"><h4>Modified: trunk/dports/games/gnubg/Portfile (122232 => 122233)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/dports/games/gnubg/Portfile        2014-07-18 04:52:25 UTC (rev 122232)
+++ trunk/dports/games/gnubg/Portfile        2014-07-18 05:21:52 UTC (rev 122233)
</span><span class="lines">@@ -3,13 +3,14 @@
</span><span class="cx"> 
</span><span class="cx"> PortSystem 1.0
</span><span class="cx"> 
</span><ins>+PortGroup               active_variants 1.1
+
</ins><span class="cx"> name                    gnubg
</span><del>-version                 0.14.3
-revision                5
</del><ins>+version                 1.02.000
</ins><span class="cx"> categories              games
</span><del>-license                 GPL-2
</del><ins>+license                 GPL-3
</ins><span class="cx"> platforms               darwin
</span><del>-maintainers             nomaintainer
</del><ins>+maintainers             dtakahashi openmaintainer
</ins><span class="cx"> homepage                http://www.gnubg.org/
</span><span class="cx"> description             GNU Backgammon
</span><span class="cx"> 
</span><span class="lines">@@ -19,74 +20,55 @@
</span><span class="cx">                         still work in progress. You can play at GNU Backgammon using the \
</span><span class="cx">                         command line or via a graphical interface based (on GTK+).
</span><span class="cx"> 
</span><del>-master_sites            http://alpha.gnu.org/gnu/${name}/ \
-                        ftp://alpha.gnu.org/gnu/${name}/ \
-                        ftp://ftp.funet.fi/pub/mirrors/alpha.gnu.org/gnu/${name}/
</del><ins>+master_sites            http://files.gnubg.org/media/sources/
</ins><span class="cx">                         
</span><del>-distfiles               ${distname}.tar.gz ${name}.weights-0.14.gz
-extract.only            ${distname}.tar.gz
</del><ins>+distfiles               ${name}-release-${version}-sources.tar.gz
</ins><span class="cx">                         
</span><del>-checksums           ${name}-${version}.tar.gz \
-                    rmd160  da7b2a3b52194ca11d505a70fba805e99f15c3ed \
-                    sha256  76d18f1a7952a4ba2372e439b3c4ecf2fcd244d334c609bb22d3f501067d1d72 \
-                    ${name}.weights-0.14.gz \
-                    rmd160  5d588b1145f0d0489b5d70fa6cfccd9ce6738f04 \
-                    sha256  6c134ded36d0875cb673a4f9fd84e2d30424935951baeffcd94852ccdb2daf70
</del><ins>+checksums               ${name}-release-${version}-sources.tar.gz \
+                        rmd160  15bfc5524fa6b92d8c60818a19632e029d1ebafb \
+                        sha256  7ece7fc02481f8e6c08869306f1cf52cad9ec5ddd675de67782cf028a6dcb504
</ins><span class="cx"> 
</span><del>-depends_build           port:pkgconfig
</del><ins>+patchfiles              darwin-disable-canberra.configure.ac.diff
+
+use_autoreconf          yes
+
+depends_build           port:pkgconfig \
+                        port:bison \
+                        port:flex
+
</ins><span class="cx"> depends_lib             port:gtk2 \
</span><ins>+                        port:sqlite3 \
</ins><span class="cx">                         port:gmp \
</span><span class="cx">                         port:libiconv \
</span><del>-                        port:libxml2 \
</del><span class="cx">                         port:freetype \
</span><ins>+                        port:python27 \
</ins><span class="cx">                         port:readline
</span><span class="cx"> 
</span><del>-post-extract {          copy ${distpath}/${name}.weights-0.14.gz ${worksrcpath}
-                        system &quot;cd ${worksrcpath} &amp;&amp; gzip -d ${name}.weights-0.14.gz&quot;
-                        move ${worksrcpath}/${name}.weights-0.14 ${worksrcpath}/${name}.weights
-                        }
-
-patchfiles              patch-configure.diff patch-rollout.h.diff \
-                        patch-export.c.diff patch-Makefile.in.diff
-
-configure.cflags-append -lmx
-configure.ldflags -lX11 -liconv -bind_at_load -multiply_defined suppress
-
</del><span class="cx"> configure.args          --mandir=${prefix}/share/man \
</span><span class="cx">                         --infodir=${prefix}/share/info \
</span><span class="cx">                         --sysconfdir=${prefix}/etc \
</span><span class="cx">                         --libdir=${prefix}/lib \
</span><del>-                        --disable-gtkextratest \
-                        --disable-libarttest \
-                        --disable-esdtest \
-                        --disable-audiofiletest \
-                        --disable-gtkglext-test \
-                        --disable-artsc-test \
-                        --disable-nas \
-                        --without-sound \
</del><ins>+                        --with-python=${prefix}/bin/python \
</ins><span class="cx">                         --without-board3d \
</span><del>-                        --without-libintl-prefix \
-                        --without-python \
-                        --without-gtkextra \
</del><span class="cx">                         --with-gtk2
</span><span class="cx"> 
</span><ins>+notes \
+&quot;Recommended ports:
+  py27-mysql    provides the MySQL backend of a game database
+  py27-pygersql provides the PostgreSQL backend of a game database&quot;
</ins><span class="cx"> 
</span><del>-post-destroot {         xinstall -d ${destroot}${prefix}/share/doc/${name}
-                        xinstall -m 644 -v -W ${worksrcpath} \
-                                AUTHORS ChangeLog README TODO \
-                                ${destroot}${prefix}/share/doc/${name}
-                        system &quot;rm -rf ${destroot}${prefix}/share/${name}/sounds&quot;
-                        }
-
-variant gdbm {          depends_lib-append      lib:libgdbm:gdbm
-                        configure.args-append   --with-gdbm
-                        }
-
-variant guile {         depends_lib-append      bin:guile:guile
-                        configure.args-append   --with-guile
-                        }
-
-variant python {        depends_lib-append      bin:python:python24
-                        configure.args-delete   --without-python
-                        configure.args-append   --with-python
-                        }
</del><ins>+variant board3d description enable OpenGL board {
+  depends_lib-append      port:gtkglext
+  ## disable 3D board on the quartz variants
+  ## because of the display issue
+  ## see also https://mail.gnome.org/archives/gtkglext-list/2009-December/msg00023.html
+  require_active_variants port:gtkglext {} quartz
+  
+  configure.args-delete   --without-board3d
+  configure.args-append   --with-board3d
+  
+  ## gtkglext+x11 links to libgl that is provided by macports.
+  ## Therefore, it should include macports' opengl headers
+  ## instead of the ones provided by OSX
+  configure.cflags-append -I${prefix}/include/GL
+}
</ins></span></pre></div>
<a id="trunkdportsgamesgnubgfilesdarwindisablecanberraconfigureacdiff"></a>
<div class="addfile"><h4>Added: trunk/dports/games/gnubg/files/darwin-disable-canberra.configure.ac.diff (0 => 122233)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/dports/games/gnubg/files/darwin-disable-canberra.configure.ac.diff                                (rev 0)
+++ trunk/dports/games/gnubg/files/darwin-disable-canberra.configure.ac.diff        2014-07-18 05:21:52 UTC (rev 122233)
</span><span class="lines">@@ -0,0 +1,18 @@
</span><ins>+--- configure.ac.orig        2013-07-27 06:23:42.000000000 +0900
++++ configure.ac        2014-07-17 14:24:58.000000000 +0900
+@@ -131,10 +131,12 @@
+ PKG_CHECK_MODULES(PANGOCAIRO, [pangocairo &gt;= 1.0], have_pangocairo=&quot;yes&quot;, [AC_MSG_WARN([no pangocairo support])])
+ PKG_CHECK_MODULES(SQLITE, [sqlite3], have_sqlite=&quot;yes&quot;, AC_MSG_WARN([no sqlite support]))

+-if test &quot;x$win32&quot; != &quot;xyes&quot;; then
+-    PKG_CHECK_MODULES(CANBERRA, [libcanberra-gtk], have_canberra=&quot;yes&quot;, AC_MSG_WARN([no libcanberra-gtk support]))
+-else
++if test &quot;x$win32&quot; = &quot;xyes&quot;; then
+     have_canberra=&quot;no&quot;
++elif test &quot;x$darwin&quot; = &quot;xyes&quot;; then
++    have_canberra=&quot;no&quot;
++else
++    PKG_CHECK_MODULES(CANBERRA, [libcanberra-gtk], have_canberra=&quot;yes&quot;, AC_MSG_WARN([no libcanberra-gtk support]))
+ fi

+ PKG_CHECK_MODULES(GTK, [gtk+-2.0 &gt;= 2.6.0], have_gtk=&quot;yes&quot; , AC_MSG_WARN([no gtk support]))
</ins></span></pre></div>
<a id="trunkdportsgamesgnubgfilespatchMakefileindiff"></a>
<div class="delfile"><h4>Deleted: trunk/dports/games/gnubg/files/patch-Makefile.in.diff (122232 => 122233)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/dports/games/gnubg/files/patch-Makefile.in.diff        2014-07-18 04:52:25 UTC (rev 122232)
+++ trunk/dports/games/gnubg/files/patch-Makefile.in.diff        2014-07-18 05:21:52 UTC (rev 122233)
</span><span class="lines">@@ -1,47 +0,0 @@
</span><del>---- Makefile.in.orig        2004-05-07 16:20:25.000000000 +1000
-+++ Makefile.in        2011-02-07 23:28:54.000000000 +1100
-@@ -225,7 +225,7 @@
-               @FT2_CFLAGS@ @GTKEXTRA_CFLAGS@ @PYTHON_CFLAGS@ \
-               @GLIB_CFLAGS@

--COMMON_LIBS = @LIBOBJS@ -Llib -levent @GUILE_LIBS@ @INTLLIBS@ @LIBXML2_LIBS@ \
-+COMMON_LIBS = @LIBOBJS@ lib/libevent.a @GUILE_LIBS@ @INTLLIBS@ @LIBXML2_LIBS@ \
-               @FT2_LIBS@ @GTKEXTRA_LIBS@ @PYTHON_LIBS@ @GLIB_LIBS@

- COMMON_SOURCES = backgammon.h gnubg.c getopt.h getopt.c getopt1.c eval.h \
-@@ -293,7 +293,7 @@
-         bearoffgammon.c bearoffgammon.h bearoff.c bearoff.h path.c path.h \
-         format.c format.h mec.h mec.c $(LIBGEN_SOURCES)  $(BR1_SOURCES)

--makebearoff_LDADD = -Llib -levent $(COMMON_LIBS) @GTK_LIBS@
-+makebearoff_LDADD = lib/libevent.a $(COMMON_LIBS) @GTK_LIBS@
- makebearoff_DEPENDENCIES = lib/libevent.a

- makebearoff1_SOURCES = makebearoff1.c getopt.c getopt.h getopt1.c \
-@@ -303,7 +303,7 @@
- makebearoff1_DEPENDENCIES = 

- makeweights_SOURCES = makeweights.c i18n.c i18n.h $(LIBGEN_SOURCES)
--makeweights_LDADD = -Llib -levent $(COMMON_LIBS) @GTK_LIBS@
-+makeweights_LDADD = lib/libevent.a $(COMMON_LIBS) @GTK_LIBS@
- makeweights_DEPENDENCIES = lib/libevent.a

- makehyper_SOURCES = makehyper.c eval.h eval.c positionid.h positionid.c \
-@@ -314,7 +314,7 @@
-         $(LIBGEN_SOURCES) $(BR1_SOURCES)


--makehyper_LDADD = -Llib -levent $(COMMON_LIBS) @GTK_LIBS@
-+makehyper_LDADD = lib/libevent.a $(COMMON_LIBS) @GTK_LIBS@
- makehyper_DEPENDENCIES = lib/libevent.a

- bearoffdump_SOURCES = bearoffdump.c eval.h eval.c positionid.h positionid.c \
-@@ -323,7 +323,7 @@
-         bearoffgammon.c bearoffgammon.h bearoff.c bearoff.h path.c path.h \
-         format.c format.h mec.h mec.c $(LIBGEN_SOURCES)  $(BR1_SOURCES)

--bearoffdump_LDADD = -Llib -levent $(COMMON_LIBS) @GTK_LIBS@
-+bearoffdump_LDADD = lib/libevent.a $(COMMON_LIBS) @GTK_LIBS@
- bearoffdump_DEPENDENCIES = lib/libevent.a

- erftest_SOURCES = erftest.c
</del></span></pre></div>
<a id="trunkdportsgamesgnubgfilespatchconfigurediff"></a>
<div class="delfile"><h4>Deleted: trunk/dports/games/gnubg/files/patch-configure.diff (122232 => 122233)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/dports/games/gnubg/files/patch-configure.diff        2014-07-18 04:52:25 UTC (rev 122232)
+++ trunk/dports/games/gnubg/files/patch-configure.diff        2014-07-18 05:21:52 UTC (rev 122233)
</span><span class="lines">@@ -1,11 +0,0 @@
</span><del>---- configure.orig        Sat Mar 27 11:34:18 2004
-+++ configure                Wed Apr 21 23:39:46 2004
-@@ -1404,7 +1404,7 @@
-     # OSF1 and SCO ODT 3.0 have their own names for install.
-     # Don't use installbsd from OSF since it installs stuff as root
-     # by default.
--    for ac_prog in ginstall scoinst install; do
-+    for ac_prog in scoinst install; do
-       for ac_exec_ext in '' $ac_executable_extensions; do
-         if $as_executable_p &quot;$as_dir/$ac_prog$ac_exec_ext&quot;; then
-           if test $ac_prog = install &amp;&amp;
</del></span></pre></div>
<a id="trunkdportsgamesgnubgfilespatchexportcdiff"></a>
<div class="delfile"><h4>Deleted: trunk/dports/games/gnubg/files/patch-export.c.diff (122232 => 122233)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/dports/games/gnubg/files/patch-export.c.diff        2014-07-18 04:52:25 UTC (rev 122232)
+++ trunk/dports/games/gnubg/files/patch-export.c.diff        2014-07-18 05:21:52 UTC (rev 122233)
</span><span class="lines">@@ -1,13 +0,0 @@
</span><del>---- export.c.orig        2004-04-02 19:40:40.000000000 +1000
-+++ export.c        2011-02-07 22:53:47.000000000 +1100
-@@ -123,8 +123,8 @@ WritePNG (const char *sz, unsigned char 
-   atext[1].compression = PNG_TEXT_COMPRESSION_NONE;

- #ifdef PNG_iTXt_SUPPORTED
--  text_ptr[0].lang = NULL;
--  text_ptr[1].lang = NULL;
-+  atext[0].lang = NULL;
-+  atext[1].lang = NULL;
- #endif
-   png_set_text (ppng, pinfo, atext, 2);

</del></span></pre></div>
<a id="trunkdportsgamesgnubgfilespatchrollouthdiff"></a>
<div class="delfile"><h4>Deleted: trunk/dports/games/gnubg/files/patch-rollout.h.diff (122232 => 122233)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/dports/games/gnubg/files/patch-rollout.h.diff        2014-07-18 04:52:25 UTC (rev 122232)
+++ trunk/dports/games/gnubg/files/patch-rollout.h.diff        2014-07-18 05:21:52 UTC (rev 122233)
</span><span class="lines">@@ -1,11 +0,0 @@
</span><del>---- rollout.h.orig        2005-06-23 16:59:15.000000000 -0700
-+++ rollout.h                2005-06-23 16:59:33.000000000 -0700
-@@ -59,8 +59,6 @@

- } rolloutstat;

--extern int nSkip;
--
- typedef void
- (rolloutprogressfunc) ( float arOutput[][ NUM_ROLLOUT_OUTPUTS ],
-                         float arStdDev[][ NUM_ROLLOUT_OUTPUTS ],
</del></span></pre>
</div>
</div>

</body>
</html>