[122233] trunk/dports/games/gnubg

dtakahashi at macports.org dtakahashi at macports.org
Thu Jul 17 22:21:52 PDT 2014


Revision: 122233
          https://trac.macports.org/changeset/122233
Author:   dtakahashi at macports.org
Date:     2014-07-17 22:21:52 -0700 (Thu, 17 Jul 2014)
Log Message:
-----------
gnubg: update to the current version

Modified Paths:
--------------
    trunk/dports/games/gnubg/Portfile

Added Paths:
-----------
    trunk/dports/games/gnubg/files/darwin-disable-canberra.configure.ac.diff

Removed Paths:
-------------
    trunk/dports/games/gnubg/files/patch-Makefile.in.diff
    trunk/dports/games/gnubg/files/patch-configure.diff
    trunk/dports/games/gnubg/files/patch-export.c.diff
    trunk/dports/games/gnubg/files/patch-rollout.h.diff

Modified: trunk/dports/games/gnubg/Portfile
===================================================================
--- 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)
@@ -3,13 +3,14 @@
 
 PortSystem 1.0
 
+PortGroup               active_variants 1.1
+
 name                    gnubg
-version                 0.14.3
-revision                5
+version                 1.02.000
 categories              games
-license                 GPL-2
+license                 GPL-3
 platforms               darwin
-maintainers             nomaintainer
+maintainers             dtakahashi openmaintainer
 homepage                http://www.gnubg.org/
 description             GNU Backgammon
 
@@ -19,74 +20,55 @@
                         still work in progress. You can play at GNU Backgammon using the \
                         command line or via a graphical interface based (on GTK+).
 
-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}/
+master_sites            http://files.gnubg.org/media/sources/
                         
-distfiles               ${distname}.tar.gz ${name}.weights-0.14.gz
-extract.only            ${distname}.tar.gz
+distfiles               ${name}-release-${version}-sources.tar.gz
                         
-checksums           ${name}-${version}.tar.gz \
-                    rmd160  da7b2a3b52194ca11d505a70fba805e99f15c3ed \
-                    sha256  76d18f1a7952a4ba2372e439b3c4ecf2fcd244d334c609bb22d3f501067d1d72 \
-                    ${name}.weights-0.14.gz \
-                    rmd160  5d588b1145f0d0489b5d70fa6cfccd9ce6738f04 \
-                    sha256  6c134ded36d0875cb673a4f9fd84e2d30424935951baeffcd94852ccdb2daf70
+checksums               ${name}-release-${version}-sources.tar.gz \
+                        rmd160  15bfc5524fa6b92d8c60818a19632e029d1ebafb \
+                        sha256  7ece7fc02481f8e6c08869306f1cf52cad9ec5ddd675de67782cf028a6dcb504
 
-depends_build           port:pkgconfig
+patchfiles              darwin-disable-canberra.configure.ac.diff
+
+use_autoreconf          yes
+
+depends_build           port:pkgconfig \
+                        port:bison \
+                        port:flex
+
 depends_lib             port:gtk2 \
+                        port:sqlite3 \
                         port:gmp \
                         port:libiconv \
-                        port:libxml2 \
                         port:freetype \
+                        port:python27 \
                         port:readline
 
-post-extract {          copy ${distpath}/${name}.weights-0.14.gz ${worksrcpath}
-                        system "cd ${worksrcpath} && gzip -d ${name}.weights-0.14.gz"
-                        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
-
 configure.args          --mandir=${prefix}/share/man \
                         --infodir=${prefix}/share/info \
                         --sysconfdir=${prefix}/etc \
                         --libdir=${prefix}/lib \
-                        --disable-gtkextratest \
-                        --disable-libarttest \
-                        --disable-esdtest \
-                        --disable-audiofiletest \
-                        --disable-gtkglext-test \
-                        --disable-artsc-test \
-                        --disable-nas \
-                        --without-sound \
+                        --with-python=${prefix}/bin/python \
                         --without-board3d \
-                        --without-libintl-prefix \
-                        --without-python \
-                        --without-gtkextra \
                         --with-gtk2
 
+notes \
+"Recommended ports:
+  py27-mysql    provides the MySQL backend of a game database
+  py27-pygersql provides the PostgreSQL backend of a game database"
 
-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 "rm -rf ${destroot}${prefix}/share/${name}/sounds"
-                        }
-
-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
-                        }
+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
+}

Added: trunk/dports/games/gnubg/files/darwin-disable-canberra.configure.ac.diff
===================================================================
--- 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)
@@ -0,0 +1,18 @@
+--- 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 >= 1.0], have_pangocairo="yes", [AC_MSG_WARN([no pangocairo support])])
+ PKG_CHECK_MODULES(SQLITE, [sqlite3], have_sqlite="yes", AC_MSG_WARN([no sqlite support]))
+ 
+-if test "x$win32" != "xyes"; then
+-    PKG_CHECK_MODULES(CANBERRA, [libcanberra-gtk], have_canberra="yes", AC_MSG_WARN([no libcanberra-gtk support]))
+-else
++if test "x$win32" = "xyes"; then
+     have_canberra="no"
++elif test "x$darwin" = "xyes"; then
++    have_canberra="no"
++else
++    PKG_CHECK_MODULES(CANBERRA, [libcanberra-gtk], have_canberra="yes", AC_MSG_WARN([no libcanberra-gtk support]))
+ fi
+ 
+ PKG_CHECK_MODULES(GTK, [gtk+-2.0 >= 2.6.0], have_gtk="yes" , AC_MSG_WARN([no gtk support]))

Deleted: trunk/dports/games/gnubg/files/patch-Makefile.in.diff
===================================================================
--- 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)
@@ -1,47 +0,0 @@
---- 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

Deleted: trunk/dports/games/gnubg/files/patch-configure.diff
===================================================================
--- 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)
@@ -1,11 +0,0 @@
---- 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 "$as_dir/$ac_prog$ac_exec_ext"; then
-           if test $ac_prog = install &&

Deleted: trunk/dports/games/gnubg/files/patch-export.c.diff
===================================================================
--- 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)
@@ -1,13 +0,0 @@
---- 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);
- 

Deleted: trunk/dports/games/gnubg/files/patch-rollout.h.diff
===================================================================
--- 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)
@@ -1,11 +0,0 @@
---- 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 ],
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20140717/a6559142/attachment-0001.html>


More information about the macports-changes mailing list