1 | # $Id: Portfile,v 1.8 2004/11/18 21:17:01 matt Exp $ |
---|
2 | |
---|
3 | PortSystem 1.0 |
---|
4 | name gnubg |
---|
5 | version 0.14.3 |
---|
6 | revision 1 |
---|
7 | categories games |
---|
8 | platforms darwin |
---|
9 | maintainers matt@opendarwin.org |
---|
10 | homepage http://www.gnubg.org/ |
---|
11 | description GNU Backgammon |
---|
12 | |
---|
13 | long_description GNU Backgammon (gnubg) is a software for playing and analysing \ |
---|
14 | backgammon positions, games and matches. It's based on a neural \ |
---|
15 | network. Although it already plays at a very high level, it's \ |
---|
16 | still work in progress. You can play at GNU Backgammon using the \ |
---|
17 | command line or via a graphical interface based (on GTK+). |
---|
18 | |
---|
19 | master_sites ftp://alpha.gnu.org/gnu/${name}/ \ |
---|
20 | http://public.planetmirror.com/pub/gnu-alpha/${name}/ \ |
---|
21 | ftp://ftp.funet.fi/pub/mirrors/alpha.gnu.org/gnu/${name}/ |
---|
22 | |
---|
23 | distfiles ${distname}.tar.gz ${name}.weights-0.14.gz |
---|
24 | extract.only ${distname}.tar.gz |
---|
25 | |
---|
26 | checksums ${name}-${version}.tar.gz md5 b3ab1ace76fa4bea69db8e617ab587da \ |
---|
27 | ${name}.weights-0.14.gz md5 9f1154a9b327954a260726aa6aa6eea5 |
---|
28 | |
---|
29 | depends_lib lib:libgtk.2:gtk2 \ |
---|
30 | lib:libxml.2:libxml2 \ |
---|
31 | lib:freetype:freetype \ |
---|
32 | bin:pkg-config:pkgconfig |
---|
33 | |
---|
34 | post-extract { cd ${worksrcpath} |
---|
35 | system "cp ${distpath}/${name}.weights-0.14.gz ." |
---|
36 | system "gzip -d ${name}.weights-0.14.gz" |
---|
37 | system "mv ${name}.weights-0.14 ${name}.weights" |
---|
38 | } |
---|
39 | |
---|
40 | patchfiles patch-configure.diff |
---|
41 | |
---|
42 | configure.env CPPFLAGS="-I${prefix}/include" \ |
---|
43 | CFLAGS="-lmx" \ |
---|
44 | LDFLAGS="-L${prefix}/lib -L${x11prefix}/lib -lX11 \ |
---|
45 | -bind_at_load -multiply_defined suppress" |
---|
46 | |
---|
47 | |
---|
48 | configure.args --mandir=${prefix}/share/man \ |
---|
49 | --infodir=${prefix}/share/info \ |
---|
50 | --sysconfdir=${prefix}/etc \ |
---|
51 | --libdir=${prefix}/lib \ |
---|
52 | --disable-gtkextratest \ |
---|
53 | --disable-libarttest \ |
---|
54 | --disable-esdtest \ |
---|
55 | --disable-audiofiletest \ |
---|
56 | --disable-gtkglext-test \ |
---|
57 | --disable-artsc-test \ |
---|
58 | --disable-nas \ |
---|
59 | --without-sound \ |
---|
60 | --without-board3d \ |
---|
61 | --without-libintl-prefix \ |
---|
62 | --without-python \ |
---|
63 | --without-gtkextra \ |
---|
64 | --with-gtk2 |
---|
65 | |
---|
66 | |
---|
67 | post-destroot { xinstall -d ${destroot}${prefix}/share/doc/${name} |
---|
68 | xinstall -m 644 -v -W ${worksrcpath} \ |
---|
69 | AUTHORS ChangeLog README TODO \ |
---|
70 | ${destroot}${prefix}/share/doc/${name} |
---|
71 | system "rm -rf ${destroot}${prefix}/share/${name}/sounds" |
---|
72 | } |
---|
73 | |
---|
74 | variant gdbm { depends_lib-append lib:libgdbm:gdbm |
---|
75 | configure.args-append --with-gdbm |
---|
76 | } |
---|
77 | |
---|
78 | variant guile { depends_lib-append bin:guile:guile |
---|
79 | configure.args-append --with-guile |
---|
80 | } |
---|
81 | |
---|
82 | variant python { depends_lib-append bin:python:python |
---|
83 | configure.args-delete --without-python |
---|
84 | configure.args-append --with-python |
---|
85 | } |
---|
86 | |
---|