# -*- 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
# $Id: Portfile 91999 2012-04-15 18:29:11Z mk@macports.org $

PortSystem              1.0

name                    libofx
version                 0.9.5
categories              devel
maintainers             mk openmaintainer
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               md5     58443fd7fa00dbbb6a36c75830774368 \
                        sha1    7e5245d68a0f3f7efad2fd809b2afbbff6ba0e73 \
                        rmd160  7ad1d1447e049bfed49acd858a91bc07bd2dfd3a

depends_build           path:bin/pkg-config:pkgconfig
depends_lib             port:opensp

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

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"

