source: trunk/dports/games/qthello/Portfile @ 2778

Last change on this file since 2778 was 2778, checked in by landonf (Landon Fuller), 17 years ago

Remove contents list and destrootify
Bug: 533
Submitted by: Lorin Rivers <lrivers@…>

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