PortSystem 1.0
PortGroup           github 1.0

github.setup        mej Eterm e8fb85b56da21113aaf0f5f7987ae647c4413b6c
version             0.9.7-20200303
revision            0

maintainers	nomaintainer
categories	x11
license		X11 GPL-2+
platforms	darwin
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.

github.tarball_from archive
master_sites-append https://web.archive.org/web/20170203221417/http://www.eterm.org/download/:bg
homepage            https://web.archive.org/web/20180212170348/http://www.eterm.org/

set main_distfile   ${distfiles}
set bg_distfile     ${name}-bg-0.9.6${extract.suffix}
distfiles-append    ${bg_distfile}:bg

checksums           ${main_distfile} \
                    rmd160  5b5e4426f6d252350f7fb5a5f8e5ba6a1b9ecbf8 \
                    sha256  a8b15854ee6f11e3e5fab8b17a7eacd969752794b196f1dedcc5451546f4345f \
                    size    492621 \
                    ${bg_distfile} \
                    rmd160  acbab70cf5a22f1c45a16f5a8a92ed1e057a59a0 \
                    sha256  8be436c38337557b77bb73d31a65c4dfe21966e84b7d3306e1e28c5c1e809c55 \
                    size    1883627

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

patchfiles          implicit.patch

use_autoreconf      yes
autoreconf.cmd      ./autogen.sh
autoreconf.env      ACLOCAL=${prefix}/bin/aclocal \
                    AUTOCONF=${prefix}/bin/autoconf \
                    AUTOHEADER=${prefix}/bin/autoheader \
                    AUTOMAKE=${prefix}/bin/automake \
                    LIBTOOLIZE=${prefix}/bin/glibtoolize \
                    NOCONFIGURE=1

depends_build-append \
                    port:autoconf \
                    port:automake \
                    port:libtool

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

compiler.c_standard 1989
configure.cflags-append -std=gnu89
configure.args      --disable-utmp \
    --enable-auto-encoding \
    --enable-escreen \
    --enable-escreen-fx \
    --enable-multi-charset \
    --enable-name-reporting-escapes \
    --enable-profile \
    --enable-trans \
                    --without-sense-of-humor
