# $Id: Portfile 95090 2012-07-05 17:46:26Z jmr@macports.org $

PortSystem 1.0

name		Eterm
version		0.9.6
revision	1
maintainers	nomaintainer
categories	x11
license		X11 GPL-2+
platforms	darwin
homepage	http://www.eterm.org/
description	Eterm is a color terminal emulator.
long_description \
    Eterm is a color vt102 terminal emulator intended as a \
    replacement for xterm. It is designed  with a Freedom of \
    Choice philosophy, leaving as much power, flexibility, and \
    freedom as possible in the  hands of the user. It is designed \
    to look good and work well, but takes a feature-rich approach \
    rather than  one of minimalism while still maintaining speed \
    and efficiency.

master_sites    ${homepage}download/ \
                sourceforge:project/eterm/eterm/${name}-${version}

distfiles-append    ${name}-bg-${version}${extract.suffix}
checksums \
    ${distname}${extract.suffix} \
        md5 90e424584c22d4050496874d14f78bb1 \
        sha1 b4cb00f898ffd2de9bf7ae0ecde1cc3a5fee9f02 \
    ${name}-bg-${version}${extract.suffix} \
        md5 e8c6567b13d7fb760bded56c1d1a181d \
        sha1 26e81a1e91228c971c70ba06e006ef69490ef208

post-extract {
    foreach dir {bg/tile bg/scale} {
        foreach file [glob -directory ${workpath} ${dir}/*] {
            move -force ${file} ${worksrcpath}/${dir}
        }
    }
}

depends_lib \
	port:xorg-libXres \
	port:xorg-libXmu \
	port:libast

configure.cflags-append -std=gnu89
configure.args \
    --mandir=${prefix}/share/man \
    --enable-auto-encoding \
    --enable-escreen \
    --enable-escreen-fx \
    --enable-multi-charset \
    --enable-name-reporting-escapes \
    --enable-profile \
    --enable-trans \
    --disable-utmp

livecheck.type  regex
livecheck.url   http://www.eterm.org/download/
livecheck.regex ${name}-(\[0-9.\]+)\\.tar
