source: trunk/dports/games/gnubg/Portfile

Last change on this file was 149628, checked in by dtakahashi@…, 17 months ago

gnubg: fix GLU configuration problem

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.6 KB
Line 
1# -*- 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
2# $Id: Portfile 149628 2016-06-28 10:44:36Z ryandesign@macports.org $
3
4PortSystem 1.0
5
6PortGroup               active_variants 1.1
7
8name                    gnubg
9version                 1.05.002
10categories              games
11license                 GPL-3
12platforms               darwin
13maintainers             dtakahashi openmaintainer
14homepage                http://www.gnubg.org/
15description             GNU Backgammon
16
17long_description        GNU Backgammon (gnubg) is a software for playing and analysing \
18                        backgammon positions, games and matches. It's based on a neural \
19                        network. Although it already plays at a very high level, it's \
20                        still work in progress. You can play at GNU Backgammon using the \
21                        command line or via a graphical interface based (on GTK+).
22
23master_sites            http://files.gnubg.org/media/sources/
24                       
25distfiles               ${name}-release-${version}-sources.tar.gz
26                       
27patchfiles              ignore-linkforshared-python_devel_m4.diff \
28                        GLU-test-configure_ac.diff
29
30checksums               ${name}-release-${version}-sources.tar.gz \
31                        rmd160  fc83de42ae54163a90c04f9eb5e0a03a02ddac59 \
32                        sha256  b2c5f9457a023a229708bb788aee6f712428c911e199f32fb07f3a83d6c8b60b
33
34depends_build-append    port:pkgconfig \
35                        port:bison \
36                        port:flex
37
38depends_lib             port:gtk2 \
39                        port:sqlite3 \
40                        port:gmp \
41                        port:libiconv \
42                        port:freetype \
43                        port:python27 \
44                        port:readline
45
46use_autoreconf          yes
47
48configure.args          --mandir=${prefix}/share/man \
49                        --infodir=${prefix}/share/info \
50                        --sysconfdir=${prefix}/etc \
51                        --libdir=${prefix}/lib \
52                        --with-python=${prefix}/bin/python2.7 \
53                        --without-board3d \
54                        --with-gtk \
55                        --without-libcurl
56
57notes \
58"Recommended ports:
59    py27-mysql    provides the MySQL backend of a game database
60    py27-pygresql provides the PostgreSQL backend of a game database"
61
62#
63# the following variants indicate the binary dependencies
64# based on the backend of gtk2
65#
66
67variant random_org description "enable random.org support" {
68    depends_lib-append  port:curl
69    configure.args-replace --without-libcurl --with-libcurl=${prefix}
70}
71
72default_variants +random_org
73
74variant x11 conflicts quartz {
75    require_active_variants port:gtk2 x11
76}
77variant quartz conflicts x11 {
78    require_active_variants port:gtk2 quartz
79}
80
81if {![variant_isset quartz]} {
82    default_variants +x11
83}
84
85variant board3d conflicts quartz description "enable OpenGL board" {
86    depends_lib-append      port:gtkglext
87    ## disable 3D board on the quartz variants
88    ## because of the display issue
89    ## see also https://mail.gnome.org/archives/gtkglext-list/2009-December/msg00023.html
90    require_active_variants port:gtkglext {} quartz
91 
92    configure.args-replace  --without-board3d --with-board3d
93 
94    ## gtkglext+x11 links to libgl that is provided by macports.
95    ## Therefore, it should include macports' opengl headers
96    ## instead of the ones provided by OSX
97    configure.cflags-append -I${prefix}/include/GL
98}
99
100livecheck.type      regex
101livecheck.url       [lindex ${master_sites} 0]
102livecheck.regex     ${name}-release-(\[0-9.\]+)-sources${extract.suffix}
Note: See TracBrowser for help on using the repository browser.