source: trunk/dports/kde/kmymoney/Portfile @ 105376

Last change on this file since 105376 was 105376, checked in by mk@…, 7 years ago

kmymoney: remove aqbanking and therefore its dep gwenhywfar (see ticket #38651)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.1 KB
Line 
1# -*- coding: utf-8; mode: tcl; tab-width: 4; truncate-lines: t; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:et:sw=4:ts=4:sts=4
2# $Id: Portfile 105376 2013-04-19 06:22:56Z mk@macports.org $
3
4PortSystem        1.0
5
6name              kmymoney
7version           1.0.5
8revision          4
9
10categories        kde finance
11maintainers       mk pixilla
12platforms         darwin
13license           GPL-2+
14
15description       a personal finance manager
16long_description  KMyMoney is the personal finance manager for KDE. \
17                  It operates in a similar way to Microsoft Money and \
18                  Quicken, it supports different account types, categorisation \
19                  of expenses and incomes, reconciliation of bank accounts, \
20                  QIF import/export, multiple currencies and initial online \
21                  banking support. \
22                  Released under the GNU General Public License. \
23                  KMyMoney is free software. \
24                  \
25                  NB: This port contains a starter .app which is located in \
26                  Applications/MacPorts and ensures that permissions of .kde \
27                  directory are set properly to run kmymoney.
28
29homepage          http://kmymoney2.sourceforge.net/index-home.html
30master_sites      sourceforge:kmymoney2
31
32livecheck.type    regex
33livecheck.url     http://sourceforge.net/projects/kmymoney2/files/KMyMoney/
34livecheck.regex   "(1\\.0\\.\\d+)"
35
36distname          kmymoney2-${version}
37use_bzip2         yes
38checksums         md5     7be750718277ac7c577c574c712f53a2 \
39                  sha1    dc496bb95353f0254125faa1de37b1431af06f1e \
40                  rmd160  14a468b54335bd753cae0bc531ca648275cd1bfd
41
42depends_build     port:libtool \
43                  port:makeicns \
44                  port:pkgconfig
45
46depends_lib       port:kdelibs3
47
48# aqbanking and kdelibs3 aren't universal
49universal_variant no
50
51configure.cppflags-append  "-L${prefix}/lib"
52configure.cflags-append    "-L${prefix}/lib"
53configure.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"
54configure.env     MKDIR_P="mkdir -p" \
55                  QTDIR=${prefix}/lib/qt3 \
56                  HOME=${worksrcpath}
57configure.args    --with-qt-dir=${prefix}/lib/qt3 \
58                  --without-arts \
59                  --enable-mac \
60                  --enable-ofxbanking
61
62variant no_ofx description {Without support for OFX} {
63    configure.args-delete \
64                  --enable-ofxbanking
65}
66
67post-configure {
68    ln -sf ${prefix}/bin/glibtool ${worksrcpath}/libtool
69    xinstall ${filespath}/KMyMoney.applescript ${worksrcpath}
70    reinplace "s|__PREFIX__|${prefix}|" ${worksrcpath}/KMyMoney.applescript
71}
72
73patchfiles        patch_kmymoney2-plugins-viewinterface.h.diff
74
75build.env         HOME=${worksrcpath}
76
77post-destroot {
78    system "osacompile -o ${destroot}${applications_dir}/KMyMoney.app ${worksrcpath}/KMyMoney.applescript"
79    system "makeicns -in ${worksrcpath}/kmymoney2/hi128-app-kmymoney2.png -out ${destroot}${applications_dir}/KMyMoney.app/Contents/Resources/applet.icns"
80}
Note: See TracBrowser for help on using the repository browser.