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

Last change on this file since 2123 was 2123, checked in by mij, 17 years ago

Add CVS Id tags.

  • Property svn:eol-style set to native
File size: 2.0 KB
Line 
1# $Id: Portfile,v 1.3 2003/03/03 06:31:22 mij 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 design makes it easy to extend both the computer player and human player interface. It currently has 6 different computer players ranging from completely random to tree search with Alpha-Beta pruning.
11
12depends_lib             lib:libqt-mt.3:qt3 lib:libX11.6:XFree86
13
14platforms               darwin
15master_sites            http://download.sourceforge.net/qthello/
16checksums               md5 a5eea252376b5e5082ac68cb649089f7
17patchfiles              patch-Makefile
18
19post-patch {
20                        reinplace s|viewmag|${prefix}/share/${name}/gfx/viewmag|g ${worksrcpath}/othello.cpp
21                        reinplace s|new\.xpm|${prefix}/share/${name}/gfx/new\.xpm|g ${worksrcpath}/othello.cpp
22                        reinplace s|stop\.png|${prefix}/share/${name}/gfx/stop\.png|g ${worksrcpath}/othello.cpp
23                        reinplace s|gfx|${prefix}/share/${name}/gfx|g ${worksrcpath}/boardwidget.cpp
24}
25
26configure {}
27
28build.target            all QTDIR=${prefix}
29
30install {
31                        system "install -c -m 655 ${worksrcpath}/qthello ${prefix}/bin/qthello"
32                        system "mkdir -p -m 655 ${prefix}/share/${name}/gfx/"
33                        system "install -c -m 644 ${worksrcpath}/stop.png ${prefix}/share/${name}/gfx/"
34                        system "install -c -m 644 ${worksrcpath}/new.xpm ${prefix}/share/${name}/gfx/"
35                        system "install -c -m 644 ${worksrcpath}/viewmag+.png ${prefix}/share/${name}/gfx/"
36                        system "install -c -m 644 ${worksrcpath}/viewmag-.png ${prefix}/share/${name}/gfx/"
37                        system "install -c -m 644 ${worksrcpath}/gfx/black.gif ${prefix}/share/${name}/gfx/"
38                        system "install -c -m 644 ${worksrcpath}/gfx/white.gif ${prefix}/share/${name}/gfx/"
39}
40
41contents                bin/qthello \
42                        share/${name}/gfx/stop.png \
43                        share/${name}/gfx/viewmag+.png \
44                        share/${name}/gfx/viewmag-.png \
45                        share/${name}/gfx/black.gif \
46                        share/${name}/gfx/white.gif \
47                        share/${name}/gfx \
48                        share/${name}
Note: See TracBrowser for help on using the repository browser.