aboutsummaryrefslogtreecommitdiffstats
path: root/finance/kmymoney-kde4/Makefile
blob: a1ac102e83bdc9d7e54196a6239c13f1784495b5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
# $FreeBSD$

PORTNAME=   kmymoney
PORTVERSION=    4.8.2
PORTREVISION=   2
CATEGORIES= finance kde
MASTER_SITES=   KDE/stable/${PORTNAME}/${PORTVERSION}/src
PKGNAMESUFFIX=  -kde4

MAINTAINER= jhale@FreeBSD.org
COMMENT=    KDE4 personal finance manager

LICENSE=    GPLv2+
LICENSE_FILE=   ${WRKSRC}/COPYING

LIB_DEPENDS=    libboost_graph.so:devel/boost-libs \
        libalkimia.so:finance/alkimia-qt4 \
        libgpgme.so:security/gpgme \
        libassuan.so:security/libassuan \
        libgpg-error.so:security/libgpg-error

USES=       cmake kde:4 pkgconfig qt:4 shared-mime-info shebangfix tar:xz
USE_QT=     corelib gui dbus declarative network phonon script sql svg xml \
        qmake_build moc_build rcc_build uic_build
USE_KDE=    automoc4 kdelibs pimlibs soprano
USE_LDCONFIG=   yes

# Crash occurs when built with Gpgmepp instead of Qgpgme and trying to
# configure encryption:
# Settings -> Configure KMyMoney... -> Encryption
CMAKE_ON=   CMAKE_DISABLE_FIND_PACKAGE_Gpgmepp

CONFLICTS_INSTALL=  kmymoney

SHEBANG_FILES=  kmymoney/misc/financequote.pl

OPTIONS_GROUP=      PLUGINS
OPTIONS_GROUP_PLUGINS=  CALENDAR KBANKING OFX WEBOOB
OPTIONS_DEFINE=     NLS QUOTES
OPTIONS_DEFAULT=    CALENDAR KBANKING OFX QUOTES
OPTIONS_SUB=        yes

NLS_USES=       gettext
NLS_CMAKE_BOOL=     BUILD_po

CALENDAR_DESC=      iCalendar exporter
CALENDAR_LIB_DEPENDS=   libical.so:devel/libical
CALENDAR_CMAKE_BOOL=    ENABLE_LIBICAL

KBANKING_DESC=      Online banking via KBanking (AqBanking)
KBANKING_LIB_DEPENDS=   libgwenhywfar.so:devel/gwenhywfar \
            libgwengui-qt4.so:devel/gwenhywfar-qt4 \
            libaqbanking.so:finance/aqbanking
KBANKING_CMAKE_BOOL=    ENABLE_KBANKING

OFX_DESC=       OFX (Open Financial Exchange) importer
OFX_LIB_DEPENDS=    libofx.so:finance/libofx
OFX_CMAKE_BOOL=     ENABLE_LIBOFX

QUOTES_DESC=        Online stock and currency price quotes
QUOTES_RUN_DEPENDS= p5-Date-Manip>=0:devel/p5-Date-Manip \
            p5-Finance-Quote>=0:finance/p5-Finance-Quote \
            p5-XML-Parser>=0:textproc/p5-XML-Parser \
            p5-XML-Writer>=0:textproc/p5-XML-Writer \
            p5-libwww>=0:www/p5-libwww
QUOTES_USES=        perl5
QUOTES_USE=     PERL5=run

WEBOOB_DESC=        Online banking via Web Outside Of Browsers
WEBOOB_RUN_DEPENDS= ${KDE_PREFIX}/lib/kde4/krosspython.so:devel/py-krosspython-kde4 \
            ${PYTHON_PKGNAMEPREFIX}weboob>=0:www/py-weboob@${PY_FLAVOR}
WEBOOB_USES=        python:run
WEBOOB_CMAKE_BOOL=  ENABLE_WEBOOB

.if defined(MAINTAINER_MODE)
# Apply additional substitutions to pkg-plist generated by the 'makeplist' target
create-plist: stage
    @(cd ${.CURDIR} && ${MAKE} makeplist > pkg-plist && \
    ${SED} -i "" -e '1d' \
        -e '/share\/locale/s|^|%%NLS%%|g' \
        -e 's|KDE4_KDELIBS_VERSION|KDE4_GENERIC_LIB_VERSION|g' \
        -e '/icalendar/s|^|%%CALENDAR%%|g' -e '/kbanking/s|^|%%KBANKING%%|g' \
        -e '/ofximport/s|^|%%OFX%%|g' -e '/weboob/s|^|%%WEBOOB%%|g' \
        pkg-plist)
.endif

.include <bsd.port.mk>