Ticket #24433: Portfile

File Portfile, 2.7 KB (added by mkae (Marko Käning), 15 years ago)

Portfile for 1.0.4_6 (now using xinstall instead of system for file copying)

Line 
1# $Id: Portfile 64097 2010-02-22 08:59:42Z ryandesign@macports.org $
2
3PortSystem        1.0
4
5name              kmymoney
6version           1.0.4
7revision          6
8
9categories        kde finance
10maintainers       techno.ms:mk-macports pixilla.com:brad
11platforms         darwin
12
13description       a personal finance manager
14long_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
27homepage          http://kmymoney2.sourceforge.net/index-home.html
28master_sites      sourceforge:kmymoney2
29distname          kmymoney2-${version}
30use_bzip2         yes
31checksums         md5     5971b8b2bc4107b967e267bc635d1b5c \
32                  sha1    c6d3bdceec354502d8dee24b88ee714aa29e80b4 \
33                  rmd160  71e5bbd4ddba7d6b5f71443f67eebba6ea26c20a
34
35depends_build     port:libtool
36
37depends_lib       port:aqbanking \
38                  port:kdelibs3
39
40configure.cppflags-append  "-L${prefix}/lib"
41configure.cflags-append    "-L${prefix}/lib"
42configure.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"
43configure.env     MKDIR_P="mkdir -p" \
44                  QTDIR=${prefix}/lib/qt3 \
45                  HOME=${worksrcpath}
46configure.args    --with-qt-dir=${prefix}/lib/qt3 \
47                  --without-arts \
48                  --enable-mac \
49                  --enable-ofxbanking
50
51variant no_ofx description {Without support for OFX} {
52    configure.args-delete \
53                  --enable-ofxbanking
54}
55
56post-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
62build.env         HOME=${worksrcpath}
63
64post-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}