# $Id: Portfile 55875 2009-08-20 18:50:55Z ryandesign@macports.org $

PortSystem        1.0

name              kmymoney
version           1.0.0

categories        kde finance
maintainers       nomaintainer
platforms         darwin

description       a personal finance manager
long_description  KMyMoney is the personal finance manager for KDE. \
                  It operates in a similar way to Microsoft Money and \
                  Quicken, it supports different account types, categorisation \
                  of expenses and incomes, reconciliation of bank accounts, \
                  QIF import/export, multiple currencies and initial online \
                  banking support. \
                  Released under the GNU General Public License. \
                  KMyMoney is free software.

homepage          http://kmymoney2.sourceforge.net/index-home.html
master_sites      sourceforge:kmymoney2
distname          kmymoney2-${version}
use_bzip2         yes
checksums         md5     f702ea77ff5bf6aec727768da34d98ec \
                  sha1    c52790f04d2541e430103e61eb8b267cecd024c5 \
                  rmd160  ecc35c25b37b8284c08c3e01c8852cb0c7c596b2

depends_build     port:libtool

depends_lib       port:aqbanking \
                  port:kdebase3 \
                  port:qt3

configure.cppflags-append  "-L${prefix}/lib"
configure.cflags-append    "-L${prefix}/lib"
configure.ldflags-append   "-Wl,-dylib_file,/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib:/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib"
configure.env     MKDIR_P="mkdir -p" \
                  QTDIR=${prefix}/lib/qt3
configure.args    --with-qt-dir=${prefix}/lib/qt3 \
                  --without-arts \
                  --enable-mac \
                  --enable-ofxbanking

post-configure {
    ln -sf ${prefix}/bin/glibtool ${worksrcpath}/libtool
}
