# -*- 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            opensp
version         1.5.2
revision        2
categories      textproc
maintainers     nomaintainer
description     Collection of SGML/XML tools
homepage        https://openjade.sourceforge.net
license         MIT

long_description \
                OpenSP is a collection of SGML/XML tools that has \
                forked from James Clark's SP suite. These tools area \
                used to parse, validate and normalize SGML and XML files.

master_sites    sourceforge:project/openjade/opensp/${version}
distname        OpenSP-${version}

checksums       rmd160  6e671a267562c5b9283e7e6504e8339cb1d86850 \
                sha256  57f4898498a368918b0d49c826aa434bb5b703d2c3b169beb348016ab25617ce \
                size    1521390

patchfiles      patch-automake-1.13.diff

use_autoreconf  yes
autoreconf.args -fvi

depends_lib     port:gettext

configure.args  --enable-http --disable-dependency-tracking \
                --enable-default-catalog=${prefix}/share/sgml/catalog \
                --mandir=${prefix}/share/man --disable-doc-build

configure.env   "LIBS=-L${prefix}/lib -lintl"

# https://trac.macports.org/ticket/64609
configure.cxxflags-append   -std=c++98

livecheck.distname OpenSP
