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

Last change on this file since 12223 was 3173, checked in by jkh, 16 years ago

Mass-merge of destroot target changes. Before committing this, I also
laid down a PRE_DESTROOT_TARGET so we can easily compare the before and
after photos (or, in extremis, revert this change). I doubt that will be
necessary, however, since things appear to be working quite well with this
change and it's better to do it sooner rather than later since it changes the
rules about what commands/variables to use in new ports.

Approved by: fkr

  • Property svn:eol-style set to native
File size: 1.9 KB
Line 
1# $Id: Portfile,v 1.6 2003/08/05 09:29:08 jkh 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
35destroot {
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.