# -*- 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
# $Id$

PortSystem          1.0

name                bigloo
version             3.8c
categories          lang scheme
platforms           darwin
license             {GPL-2+ LGPL}
maintainers         nomaintainer

description         Bigloo is a fast Scheme implementation.
long_description    Bigloo is a Scheme implementation devoted to one goal: \
                    enabling Scheme based programming style where C(++) is \
                    usually required. Bigloo attempts to make Scheme practical \
                    by offering features usually presented by traditional \
                    programming languages but not offered by Scheme and \
                    functional programming. Bigloo compiles Scheme modules. \
                    It delivers small and fast standalone binary executables. \
                    Bigloo enables full connections between Scheme and C programs, \
                    between Scheme and Java programs, and between Scheme and \
                    C# programs.

homepage            http://www-sop.inria.fr/mimosa/fp/Bigloo/
master_sites        ftp://ftp-sop.inria.fr/mimosa/fp/Bigloo/
distfiles           ${name}${version}.tar.gz
worksrcdir          ${name}${version}
checksums           rmd160  0bbbd73c8249450e61ee00a28dae94fae4f739ee \
                    sha256  3835d6aec4428f7a9dc8029a434b4c845e7ea15728141d60b72f9ebc6ddd45e1

if {[string match "*clang*" ${configure.compiler}]} {
    configure.cflags-append -fbracket-depth=4096
}

configure.args      --mandir=${prefix}/share/man/man1 \
                    --infodir=${prefix}/share/info \
                    --docdir=${prefix}/share/doc/bigloo \
                    --lispdir=${prefix}/share/emacs/site-lisp/bigloo \
                    --jvm=yes \
                    --native-default-backend \
                    --finalization=yes \
                    --stack-check=no

build.target