Ticket #533: portfile_qthello.diff

File portfile_qthello.diff, 2.5 KB (added by ole_guldberg@…, 21 years ago)

diff to the portfile that removes the contents list from the portfile and installs into destroot

  • Portfile

    old new  
    77maintainers             landonf@opendarwin.org
    88homepage                http://qthello.sourceforge.net/
    99description             Othello program written in Qt
    10 long_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.
     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.
    1116
    1217depends_lib             lib:libqt-mt.3:qt3 lib:libX11.6:XFree86
    1318
     
    2833build.target            all QTDIR=${prefix}
    2934
    3035install {
    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/"
     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/"
    3944}
    40 
    41 contents                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}