Gnubg version 0.14.3 - How to Download and Install on Mac OS X
Friday the 12th of March, 2010

    version 0.14.3

      View the most recent changes for the gnubg port at: gnubg.darwinports.com/diff
      Scroll down toward the bottom of the page to get installation instructions for gnubg.
      The raw portfile for gnubg 0.14.3 is located here:
      http://gnubg.darwinports.com/dports/games/gnubg/Portfile
      Find related portfiles with the unique DarwinPorts.com search feature.
      Check for any related Fink projects here: pdb.finkproject.org/pdb/package.php/gnubg


      The gnubg Portfile 50572 2009-05-04 19:19:09Z jeremyhu macports.org $

      PortSystem 1.0
      Name: gnubg
      Version: 0.14.3
      Revision: 3
      Category: games
      Platform: darwin
      Maintainers: nomaintainer
      Homepage: http://www.gnubg.org/
      Description: GNU Backgammon

      Long Description: GNU Backgammon (gnubg) is a software for playing and analysing backgammon positions, games and matches. It's based on a neural network. Although it already plays at a very high level, it's still work in progress. You can play at GNU Backgammon using the command line or via a graphical interface based (on GTK+).

      Master Sites: ftp://alpha.gnu.org/gnu/${name}/ http://public.planetmirror.com/pub/gnu-alpha/${name}/ ftp://ftp.funet.fi/pub/mirrors/alpha.gnu.org/gnu/${name}/

      distfiles ${distname}.tar.gz ${name}.weights-0.14.gz
      extract.only ${distname}.tar.gz

      Checksums: ${name}-${version}.tar.gz md5 b3ab1ace76fa4bea69db8e617ab587da ${name}.weights-0.14.gz md5 9f1154a9b327954a260726aa6aa6eea5

      depends_build path:bin/pkg-config:pkgconfig
      depends_lib port:gtk2 port:libxml2 port:freetype 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
      }

      Patch Files: patch-configure.diff

      platform darwin 8 { patchfiles-append patch-rollout.h.diff }

      platform darwin 9 { patchfiles-append patch-rollout.h.diff }

      configure.cflags-append "-lmx"
      configure.ldflags-append "-L${prefix}/lib -lX11 -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 --without-board3d --without-libintl-prefix --without-python --without-gtkextra --with-gtk2


      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
      }


    If you haven't already installed Darwin Ports, you can find easy instructions for doing so at the main Darwin Ports page.

    Once Darwin Ports has been installed, in a terminal window and while online, type the following and hit return:


      %  cd /opt/local/bin/portslocation/dports/gnubg
      % sudo port install gnubg
      Password:
    You will then be prompted for your root password, which you should enter. You may have to wait for a few minutes while the software is retrieved from the network and installed for you. Y ou should see something that looks similar to:

      ---> Fetching gnubg
      ---> Verifying checksum for gnubg
      ---> Extracting gnubg
      ---> Configuring gnubg
      ---> Building gnubg with target all
      ---> Staging gnubg into destroot
      ---> Installing gnubg
    - Make sure that you do not close the terminal window while Darwin Ports is working. Once the software has been installed, you can find further information about using gnubg with these commands:
      %  man gnubg
      % apropos gnubg
      % which gnubg
      % locate gnubg

     Where to find more information:

    Darwin Ports



    Lightbox this page.