# -*- 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                    libofx
version                 0.10.4
categories              devel
maintainers             nomaintainer
description             A parser and an API designed to allow applications \
                        to very easily support OFX command responses
long_description        This is the LibOFX library. It is a parser and an API \
                        designed to allow applications to very easily support \
                        OFX command responses, usually provided by financial \
                        institutions for statement downloads. To my knowledge, \
                        it is the first working OpenSource implementation of \
                        the OFX (Open Financial eXchange) specification on \
                        the client side.
homepage                http://libofx.sourceforge.net/
platforms               darwin
license                 GPL-2+
master_sites            sourceforge

checksums               rmd160  9c59a15769438a613dfc250e21be129d30cdaba8 \
                        sha256  416f30969a9978708efb1d166bf83e26fe97dfc160736028d9f34ad98fa78ed1 \
                        size    1822609

depends_build-append    port:pkgconfig
depends_lib-append      port:opensp

# https://trac.macports.org/ticket/67302
compiler.cxx_standard   2011

use_autoreconf          yes
configure.args          --with-opensp-includes=${prefix}/include/OpenSP \
                        --with-opensp-libs=${prefix}/lib

patchfiles              patch-libofx-remove-hardcoded-libsdtcxx.diff

platform darwin 8 {
    patchfiles-append   patch-ofx_preproc.cpp.diff
}

livecheck.type      regex
livecheck.url       http://sourceforge.net/projects/libofx/files/libofx/
livecheck.regex     "libofx-(\\d+\\.\\d+\\.\\d+)\\.tar"

