# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
PortGroup active_variants 1.1
maintainers {dtakahashi @daitakahashi} openmaintainer
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 http://files.gnubg.org/media/sources/
distfiles ${name}-release-${version}-sources.tar.gz
patchfiles ignore-linkforshared-python_devel_m4.diff \
GLU-test-configure_ac.diff
checksums ${name}-release-${version}-sources.tar.gz \
rmd160 fc83de42ae54163a90c04f9eb5e0a03a02ddac59 \
sha256 b2c5f9457a023a229708bb788aee6f712428c911e199f32fb07f3a83d6c8b60b
depends_build-append port:pkgconfig \
configure.args --mandir=${prefix}/share/man \
--infodir=${prefix}/share/info \
--sysconfdir=${prefix}/etc \
--with-python=${prefix}/bin/python2.7 \
py27-mysql provides the MySQL backend of a game database
py27-pygresql provides the PostgreSQL backend of a game database"
# the following variants indicate the binary dependencies
# based on the backend of gtk2
variant random_org description "enable random.org support" {
depends_lib-append port:curl
configure.args-replace --without-libcurl --with-libcurl=${prefix}
default_variants +random_org
variant x11 conflicts quartz {
require_active_variants port:gtk2 x11
variant quartz conflicts x11 {
require_active_variants port:gtk2 quartz
if {![variant_isset quartz]} {
variant board3d conflicts quartz 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