aboutsummaryrefslogtreecommitdiffstats
path: root/finance/kmymoney-kde4/Makefile
blob: 068e3dd850f75ad1d6ebd93d7019a0b41df00d87 (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
# $FreeBSD$

PORTNAME=   kmymoney
PORTVERSION=    4.6.3
PORTREVISION=   2
CATEGORIES= finance kde
MASTER_SITES=   SF/${PORTNAME}2/KMyMoney-KDE4/${PORTVERSION}

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

LICENSE=    GPLv2

LIB_DEPENDS=    boost_graph:${PORTSDIR}/devel/boost-libs \
        alkimia:${PORTSDIR}/finance/libalkimia

OPTIONS_DEFINE= NLS CALENDAR KBANKING OFX QUOTES
OPTIONS_DEFAULT=CALENDAR
NO_OPTIONS_SORT=yes

CALENDAR_DESC=  Enable Calendar plugin
KBANKING_DESC=  Enable KBanking plugin
OFX_DESC=   Enable OFX plugin
QUOTES_DESC=    Enable online price quotes

USE_BZIP2=  yes
USES=       cmake pkgconfig
USE_QT4=    gui dbus network phonon sql svg xml \
        qmake_build moc_build rcc_build uic_build
USE_KDE4=   kdehier kdeprefix automoc4 kdelibs pimlibs sharedmime
USE_LDCONFIG=   yes

MAN1=       kmymoney.1

NO_STAGE=   yes
.include <bsd.port.options.mk>

.if ${PORT_OPTIONS:MNLS}
USES+=      gettext
PLIST_SUB+= NLS=""
.else
CMAKE_ARGS+=    -DENABLE_NLS:BOOL=OFF
PLIST_SUB+= NLS="@comment "
.endif

.if ${PORT_OPTIONS:MCALENDAR}
LIB_DEPENDS+=   ical:${PORTSDIR}/devel/libical
CMAKE_ARGS+=    -DENABLE_LIBICAL:BOOL=ON
PLIST_SUB+= CALENDAR=""
.else
CMAKE_ARGS+=    -DENABLE_LIBICAL:BOOL=OFF
PLIST_SUB+= CALENDAR="@comment "
.endif

.if ${PORT_OPTIONS:MKBANKING}
LIB_DEPENDS+=   gwengui-qt4:${PORTSDIR}/devel/gwenhywfar-qt4 \
        aqbanking:${PORTSDIR}/finance/aqbanking
CMAKE_ARGS+=    -DENABLE_KBANKING:BOOL=ON
PLIST_SUB+= KBANKING=""
.else
CMAKE_ARGS+=    -DENABLE_KBANKING:BOOL=OFF
PLIST_SUB+= KBANKING="@comment "
.endif

.if ${PORT_OPTIONS:MOFX}
LIB_DEPENDS+=   ofx:${PORTSDIR}/finance/libofx
CMAKE_ARGS+=    -DENABLE_LIBOFX:BOOL=ON
PLIST_SUB+= OFX=""
.else
CMAKE_ARGS+=    -DENABLE_LIBOFX:BOOL=OFF
PLIST_SUB+= OFX="@comment "
.endif

.if ${PORT_OPTIONS:MQUOTES}
USES+=      perl5
USE_PERL5=  run
RUN_DEPENDS+=   p5-Date-Manip>=0:${PORTSDIR}/devel/p5-Date-Manip \
        p5-Finance-Quote>=0:${PORTSDIR}/finance/p5-Finance-Quote \
        p5-XML-Parser>=0:${PORTSDIR}/textproc/p5-XML-Parser \
        p5-XML-Writer>=0:${PORTSDIR}/textproc/p5-XML-Writer \
        p5-libwww>=0:${PORTSDIR}/www/p5-libwww
.endif

.include <bsd.port.mk>