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

PortSystem              1.0

name                    ficl
version                 4.1.0
set branch              [join [lrange [split ${version} .] 0 1] .]
categories              lang
license                 BSD
maintainers             nomaintainer
platforms               darwin
homepage                http://ficl.sourceforge.net/
master_sites            sourceforge:project/ficl/ficl-all/ficl${branch}

description             Ficl is an acronym for Forth Inspired Command Language

long_description        Ficl is a programming language interpreter designed \
                        to be embedded into other systems as a command, \
                        macro, and development prototyping language.

checksums               rmd160  742ce10df29866028d7d1f5dbd23cdd0fd7fd1fe \
                        sha256  4daf74f3d3d6f8b86ea7cb47bc24931d50b4809b50ba34ca32e0ca1e972bd3a3

use_configure           no

variant universal {}

build.target
build.args              CC="${configure.cc} [get_canonical_archflags cc]"

destroot {
    file copy ${worksrcpath}/ficl ${destroot}${prefix}/bin
    file copy ${worksrcpath}/libficl.a ${destroot}${prefix}/lib
}
