# $Id: Portfile 45017 2009-01-06 14:54:26Z toby@macports.org $

PortSystem 1.0

name             ctris
version          0.42
categories       games
platforms        darwin
maintainers      jmpp openmaintainer

description      Ncurses based tetris clone written in C.
long_description \
    ctetris is a beautiful tetris clone, written in C using the ncurses \
    library. It works very fast and efficiently, so it should be possible to \
    play it even over a slow remote terminal.

homepage         http://www.hackl.dhs.org/ctris/
master_sites     http://www.hackl.dhs.org/data/download/files/
use_bzip2        yes
checksums        md5 035627486d5f767f0c818a17a97bbe0c \
                 sha1 f367f4b91724f9c272f2e7bf4523721a8f3c1f99 \
                 rmd160 e64a8d52a73bf3238512b8a12760bab64df1f5d4

patchfiles       patch-Makefile.diff

configure {
    reinplace "s|__PREFIX__|${prefix}|" ${worksrcpath}/Makefile
    reinplace "s|__CC__|${configure.cc}|" ${worksrcpath}/Makefile
    reinplace "s|__CFLAGS__|${configure.cflags}|" ${worksrcpath}/Makefile
}
