Ticket #24823: Portfile

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

update portfile now using makeicns for auto-creation of icon file

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