# -*- 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
PortGroup               github 1.0
PortGroup               legacysupport 1.1

github.setup            apertium apertium 3.9.4 v
revision                0
categories              textproc
license                 GPL-2+
maintainers             mm.st:unhammer+dill openmaintainer

description             machine translation platform

long_description        Apertium is a free and open source machine \
                        translation platform, initially aimed at related \
                        language pairs but recently expanded to deal with \
                        more divergent language pairs (such as \
                        English-Catalan). This package provides the \
                        language-independent machine translation engine \
                        (language pairs are in separate packages), which \
                        includes both translation tools (deformatters for \
                        ODT, DOCX, HTML, etc., TMX handling, the actual \
                        translation pipeline) and the tools used to create \
                        new language pairs.

homepage                http://apertium.org/

checksums               rmd160  40325e2567d5d8af92c434f2d11558fdd44e87e6 \
                        sha256  b78bf0c36e479c58e31ec10ebe30a031bf876d70ada1e61f52e320a1aa87c4dd \
                        size    754947

compiler.cxx_standard   2017
configure.cxxflags-append \
                        -std=c++17 \
                        -I${prefix}/include/utf8cpp \
                        -Wno-register

# For std::filesystem
legacysupport.newest_darwin_requires_legacy 18
legacysupport.use_mp_libcxx yes

use_autoreconf          yes

depends_build-append    path:bin/pkg-config:pkgconfig \
                        port:utfcpp

depends_lib-append      port:gawk port:libxslt \
                        port:lttoolbox port:pcre

