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

Last change on this file since 1678 was 1678, checked in by fkr, 17 years ago

build.target.all -> build.target
build.target.install -> install.target

  • Property svn:eol-style set to native
File size: 1.9 KB
Line 
1PortSystem 1.0
2name                    qthello
3version                 1.0
4categories              games x11
5maintainers             landonf@opendarwin.org
6homepage                http://qthello.sourceforge.net/
7description             Othello program written in Qt
8long_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.
9
10depends_lib             lib:libqt-mt.3:qt3 lib:libX11.6:XFree86
11
12platforms               darwin
13master_sites            http://download.sourceforge.net/qthello/
14checksums               md5 a5eea252376b5e5082ac68cb649089f7
15patchfiles              patch-Makefile
16
17post-patch {
18                        reinplace s|viewmag|${prefix}/share/${name}/gfx/viewmag|g ${worksrcpath}/othello.cpp
19                        reinplace s|new\.xpm|${prefix}/share/${name}/gfx/new\.xpm|g ${worksrcpath}/othello.cpp
20                        reinplace s|stop\.png|${prefix}/share/${name}/gfx/stop\.png|g ${worksrcpath}/othello.cpp
21                        reinplace s|gfx|${prefix}/share/${name}/gfx|g ${worksrcpath}/boardwidget.cpp
22}
23
24configure {}
25
26build.target            all QTDIR=${prefix}
27
28install {
29                        system "install -c -m 655 ${worksrcpath}/qthello ${prefix}/bin/qthello"
30                        system "mkdir -p -m 655 ${prefix}/share/${name}/gfx/"
31                        system "install -c -m 644 ${worksrcpath}/stop.png ${prefix}/share/${name}/gfx/"
32                        system "install -c -m 644 ${worksrcpath}/new.xpm ${prefix}/share/${name}/gfx/"
33                        system "install -c -m 644 ${worksrcpath}/viewmag+.png ${prefix}/share/${name}/gfx/"
34                        system "install -c -m 644 ${worksrcpath}/viewmag-.png ${prefix}/share/${name}/gfx/"
35                        system "install -c -m 644 ${worksrcpath}/gfx/black.gif ${prefix}/share/${name}/gfx/"
36                        system "install -c -m 644 ${worksrcpath}/gfx/white.gif ${prefix}/share/${name}/gfx/"
37}
38
39contents                bin/qthello \
40                        share/${name}/gfx/stop.png \
41                        share/${name}/gfx/viewmag+.png \
42                        share/${name}/gfx/viewmag-.png \
43                        share/${name}/gfx/black.gif \
44                        share/${name}/gfx/white.gif \
45                        share/${name}/gfx \
46                        share/${name}
Note: See TracBrowser for help on using the repository browser.