source: trunk/dports/games/qthello/Portfile

Last change on this file was 82512, checked in by ryandesign@…, 6 years ago

qthello: rewrite master_sites to avoid redirects

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.8 KB
Line 
1# $Id: Portfile 82512 2011-08-15 05:04:45Z ryandesign@macports.org $
2
3PortSystem 1.0
4name                    qthello
5version                 1.0
6revision                1
7categories              games x11
8maintainers             nomaintainer
9homepage                http://qthello.sourceforge.net/
10master_sites            sourceforge:project/qthello/qthello/${version}
11
12description             Othello program written in Qt
13long_description        QtHello is an Othello program written in Qt. It's \
14                        design makes it easy to extend both the computer \
15                        player and human player interface. It currently \
16                        has 6 different computer players ranging from \
17                        completely random to tree search with Alpha-Beta \
18                        pruning.
19
20depends_lib             port:qt3
21
22platforms               darwin
23checksums               md5 a5eea252376b5e5082ac68cb649089f7
24patchfiles              patch-Makefile
25
26post-patch {
27                        reinplace s|viewmag|${prefix}/share/${name}/gfx/viewmag|g ${worksrcpath}/othello.cpp
28                        reinplace s|new\.xpm|${prefix}/share/${name}/gfx/new\.xpm|g ${worksrcpath}/othello.cpp
29                        reinplace s|stop\.png|${prefix}/share/${name}/gfx/stop\.png|g ${worksrcpath}/othello.cpp
30                        reinplace s|gfx|${prefix}/share/${name}/gfx|g ${worksrcpath}/boardwidget.cpp
31}
32
33use_configure           no
34
35build.target            all QTDIR=${prefix}
36
37destroot {
38                        system "install -c -m 655 ${worksrcpath}/qthello ${destroot}${prefix}/bin/qthello"
39                        system "mkdir -p -m 655 ${destroot}${prefix}/share/${name}/gfx/"
40                        system "install -c -m 644 ${worksrcpath}/stop.png ${destroot}${prefix}/share/${name}/gfx/"
41                        system "install -c -m 644 ${worksrcpath}/new.xpm ${destroot}${prefix}/share/${name}/gfx/"
42                        system "install -c -m 644 ${worksrcpath}/viewmag+.png ${destroot}${prefix}/share/${name}/gfx/"
43                        system "install -c -m 644 ${worksrcpath}/viewmag-.png ${destroot}${prefix}/share/${name}/gfx/"
44                        system "install -c -m 644 ${worksrcpath}/gfx/black.gif ${destroot}${prefix}/share/${name}/gfx/"
45                        system "install -c -m 644 ${worksrcpath}/gfx/white.gif ${destroot}${prefix}/share/${name}/gfx/"
46}
Note: See TracBrowser for help on using the repository browser.