# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4

PortSystem          1.0
PortGroup           makefile 1.0

name                vms-empire
version             1.17
revision            0
categories          games
license             GPL-2+
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/
master_sites        ${homepage}

checksums           rmd160  8e5fc0b176f83d65561810c90b0abef705190945 \
                    sha256  0261ecea88d571f825bef16f0bd273356552dade02a2a83c5b0c8d08cfac127a \
                    size    111265

depends_lib         port:ncurses

# https://gitlab.com/esr/vms-empire/-/issues/4
patchfiles          patch-empire.diff

makefile.override-append    CFLAGS

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