# $Id: Portfile 53726 2009-07-13 00:43:39Z blb@macports.org $

PortSystem       1.0
name             vms-empire
version          1.7
revision         1
categories       games
maintainers      nomaintainer
description      war simulation game
long_description \
    Empire is a simulation of a full-scale war between two emperors, the \
    computer and you. Naturally, there is only room for one, so the object \
    of the game is to destroy the other. The computer plays by the same \
    rules that you do. This game is the ancestor of all the multiplayer \
    Empire simulations out there.
homepage         http://www.catb.org/~esr/vms-empire/
platforms        darwin
master_sites     ${homepage}
checksums        md5 d458082c1052e63c1700fa5b54d4ef6f

depends_lib      port:ncurses

patchfiles       patch-game.c

use_configure    no

build.args       LIBS="-L${prefix}/lib -lncurses"

destroot {
    xinstall -m 555 ${worksrcpath}/${name} \
        ${destroot}${prefix}/bin
    xinstall -m 444 ${worksrcpath}/${name}.6 \
        ${destroot}${prefix}/share/man/man6
    xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
    xinstall -m 444 -W ${worksrcpath} AUTHORS BUGS COPYING NEWS README \
        ${destroot}${prefix}/share/doc/${name}
}

