PortSystem          1.0
PortGroup           deprecated 1.0

# Project is dormant: no releases since 2008,
# no git activity since 2011
deprecated.upstream_support no

# Port is outdated; efforts to update to 1.1.9 are unsuccessful.
# Dependents should use the Java portgroup instead.
# See https://trac.macports.org/ticket/45198
deprecated.macports_support no

# Port fails to build across-the-board, so prevent wasted time on the buildbots
known_fail          yes

name                kaffe
version             1.1.7
categories          lang
license             GPL-2+
maintainers         nomaintainer
platforms           darwin
description         A complete java VM and class library.
long_description    This is Kaffe, a complete virtual machine and class \
                    library set which allows the execution of Java code. \
                    It comes with a virtual machine and a set of class \
                    libraries including beans, and an AWT graphics system.

homepage            http://www.kaffe.org
master_sites        ftp://ftp.kaffe.org/pub/kaffe/v1.1.x-development/

checksums           md5 375c3dc44656f3f253455ea219f768b1

configure.cflags-append     -fstrict-aliasing \
                            -funroll-loops \
                            -L${prefix}/lib
configure.cppflags-append   -L${prefix}/lib \
                            -I${prefix}/include/freetype2
configure.args      --disable-nls \
                    --disable-rpath \
                    --disable-debug \
                    --with-engine=intrp \
                    --mandir=${prefix}/share/man \
                    --x-includes=${prefix}/include \
                    --x-libraries=${prefix}/lib

platform darwin {
    supported_archs i386 ppc
}

depends_build       port:jikes \
                    port:pkgconfig
depends_lib         port:esound \
                    port:gmp \
                    path:lib/pkgconfig/gtk+-2.0.pc:gtk2 \
                    port:libart_lgpl \
                    port:freetype \
                    port:xorg-libXtst \
                    port:xorg-libsm

livecheck.type      regex
livecheck.regex     ${name}-(\[0-9.\]+)\\.tar
