# -*- 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                ferite
version             1.1.17
revision            3
set branch          [join [lrange [split ${version} .] 0 1] .]
categories          lang
license             BSD
maintainers         nomaintainer

description         Embeddable scripting language
long_description    A scripting language designed to be embedded in other \
                    applications, that aims to provide a powerful object \
                    oriented syntax with low memory and cpu overhead.

homepage            http://ferite.org
master_sites        sourceforge:project/ferite/ferite/${branch}

checksums           rmd160  c6c1236bdf04be8a47cd7ff996c6b003e8e65f23 \
                    sha256  d407f3db45482e17f41820fb029cf8b06e6104699b8d7340f3946f57d3f4e690 \
                    size    2174774

patchfiles          patch-triton-prefix.diff

# https://github.com/Homebrew/legacy-homebrew/issues/15105
patchfiles-append   patch-pcre_info.diff

post-patch {
    reinplace "s,@PREFIX@,${prefix}," ${worksrcpath}/libs/triton/src/Makefile.am
}

depends_lib         port:pcre \
                    port:libxml2

# ld: library not found for -lferitestream
use_parallel_build  no
