| 1 | # $Id: Portfile 64097 2010-02-22 08:59:42Z ryandesign@macports.org $ |
|---|
| 2 | |
|---|
| 3 | PortSystem 1.0 |
|---|
| 4 | |
|---|
| 5 | name kmymoney |
|---|
| 6 | version 1.0.4 |
|---|
| 7 | revision 6 |
|---|
| 8 | |
|---|
| 9 | categories kde finance |
|---|
| 10 | maintainers techno.ms:mk-macports pixilla.com:brad |
|---|
| 11 | platforms darwin |
|---|
| 12 | |
|---|
| 13 | description a personal finance manager |
|---|
| 14 | long_description KMyMoney is the personal finance manager for KDE. \ |
|---|
| 15 | It operates in a similar way to Microsoft Money and \ |
|---|
| 16 | Quicken, it supports different account types, categorisation \ |
|---|
| 17 | of expenses and incomes, reconciliation of bank accounts, \ |
|---|
| 18 | QIF import/export, multiple currencies and initial online \ |
|---|
| 19 | banking support. \ |
|---|
| 20 | Released under the GNU General Public License. \ |
|---|
| 21 | KMyMoney is free software. \ |
|---|
| 22 | \ |
|---|
| 23 | NB: This port contains a starter .app which is located in \ |
|---|
| 24 | Applications/MacPorts and ensures that permissions of .kde \ |
|---|
| 25 | directory are set properly to run kmymoney. |
|---|
| 26 | |
|---|
| 27 | homepage http://kmymoney2.sourceforge.net/index-home.html |
|---|
| 28 | master_sites sourceforge:kmymoney2 |
|---|
| 29 | distname kmymoney2-${version} |
|---|
| 30 | use_bzip2 yes |
|---|
| 31 | checksums md5 5971b8b2bc4107b967e267bc635d1b5c \ |
|---|
| 32 | sha1 c6d3bdceec354502d8dee24b88ee714aa29e80b4 \ |
|---|
| 33 | rmd160 71e5bbd4ddba7d6b5f71443f67eebba6ea26c20a |
|---|
| 34 | |
|---|
| 35 | depends_build port:libtool |
|---|
| 36 | |
|---|
| 37 | depends_lib port:aqbanking \ |
|---|
| 38 | port:kdelibs3 |
|---|
| 39 | |
|---|
| 40 | configure.cppflags-append "-L${prefix}/lib" |
|---|
| 41 | configure.cflags-append "-L${prefix}/lib" |
|---|
| 42 | 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" |
|---|
| 43 | configure.env MKDIR_P="mkdir -p" \ |
|---|
| 44 | QTDIR=${prefix}/lib/qt3 \ |
|---|
| 45 | HOME=${worksrcpath} |
|---|
| 46 | configure.args --with-qt-dir=${prefix}/lib/qt3 \ |
|---|
| 47 | --without-arts \ |
|---|
| 48 | --enable-mac \ |
|---|
| 49 | --enable-ofxbanking |
|---|
| 50 | |
|---|
| 51 | variant no_ofx description {Without support for OFX} { |
|---|
| 52 | configure.args-delete \ |
|---|
| 53 | --enable-ofxbanking |
|---|
| 54 | } |
|---|
| 55 | |
|---|
| 56 | post-configure { |
|---|
| 57 | ln -sf ${prefix}/bin/glibtool ${worksrcpath}/libtool |
|---|
| 58 | xinstall ${filespath}/KMyMoney.applescript ${worksrcpath} |
|---|
| 59 | reinplace "s|__PREFIX__|${prefix}|" ${worksrcpath}/KMyMoney.applescript |
|---|
| 60 | } |
|---|
| 61 | |
|---|
| 62 | build.env HOME=${worksrcpath} |
|---|
| 63 | |
|---|
| 64 | post-destroot { |
|---|
| 65 | system "osacompile -o ${destroot}${applications_dir}/KMyMoney.app ${worksrcpath}/KMyMoney.applescript" |
|---|
| 66 | xinstall ${filespath}/applet.icns ${destroot}${applications_dir}/KMyMoney.app/Contents/Resources/ |
|---|
| 67 | } |
|---|