# $Id: Portfile,v 1.6 2004/12/06 22:50:30 toby Exp $

PortSystem 1.0
name             q
version          6.0
categories       lang
maintainers      toby@opendarwin.org
description      extensible scripting language
long_description \
    Q is a powerful and extensible scripting language with advanced \
    symbolic processing and functional programming capabilities. Q \
    is based on term rewriting. Consequently, Q scripts are just \
    collections of equations which are used to evaluate expressions \
    in a symbolic fashion. Despite its conceptual simplicity, Q is \
    a full-featured functional programming language with a modern \
    syntax, curried function applications, dynamic object-oriented \
    typing, exception handling, and POSIX multithreading.
homepage         http://q-lang.sourceforge.net/
platforms        darwin

depends_lib      lib:libgmp.3:gmp \
                 lib:libreadline.5:readline \
                 lib:libcurl.3:curl

master_sites     sourceforge:q-lang
checksums        md5 bbf875950eed0aa0c8df1a657d74f273

configure.env    CPPFLAGS="-I${prefix}/include" \
                 LDFLAGS="-L${prefix}/lib"
configure.args   --mandir=${prefix}/share/man \
                 --infodir=${prefix}/share/info \
                 --with-gmp --with-rl --with-pthread --with-curl \
                 --without-gdbm \
                 --without-x --without-ggi --without-ft2 \
                 --without-magick \
                 --without-odbc \
                 --without-tk \
                 --without-xml \
                 --without-dxl \
                 --without-dmalloc

test.run         yes

platform darwin 6 {
    depends_lib-append lib:libdl:dlcompat
}
