Skip to content
Browse files

Portfile for GNU Backgammon

git-svn-id: d073be05-634f-4543-b044-5fe20cf6d1d6
  • Loading branch information
Matt Anton
Matt Anton committed Dec 12, 2003
1 parent 013f1e7 commit 66c8b237f8028a0763343fefd0da802e37d20bbf
Showing with 59 additions and 0 deletions.
  1. +59 −0 games/gnubg/Portfile
@@ -0,0 +1,59 @@
# $Id: Portfile,v 1.1 2003/12/12 10:26:04 matt Exp $

PortSystem 1.0
name gnubg
version 0.13.0
categories games
platforms darwin
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${name}/ \${name}/ \${name}/ \${name}/

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

checksums ${name}-${version}.tar.gz md5 91db5727b6589dbfd410e6ce1683fa95 \
${name}.weights-0.13a.gz md5 5ea773401747c895149027bbfcfdc3d7

depends_lib lib:libgtk.2:gtk2

post-extract { cd ${worksrcpath}
system "cp ${distpath}/${name}.weights-0.13a.gz ."
system "gzip -d ${name}.weights-0.13a.gz"
system "mv ${name}.weights-0.13a ${name}.weights"

configure.env CPPFLAGS="-I${prefix}/include" \
CFLAGS="-lmx" \
LDFLAGS="-L${prefix}/lib -L${x11prefix}/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-esdtest \
--disable-artsc-test \

post-destroot { system "install -d -m 755 '${destroot}${prefix}/share/doc/${name}'"
system "install -c -m 644 ${worksrcpath}/README \

variant gdbm { depends_lib-append lib:libgdbm:gdbm
configure.args-append --with-gdbm

0 comments on commit 66c8b23

Please sign in to comment.
You can’t perform that action at this time.