aboutsummaryrefslogtreecommitdiffstats
path: root/finance/kmymoney-kde4/Makefile
blob: 386d5498b6ab483fbdfc393371a760a19ef7957a (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
# New ports collection makefile for:    KMyMoney
# Date created:             21 June 2004
# Whom:                 Alexander Novitsky
#
# $FreeBSD$
#

PORTNAME=   kmymoney
PORTVERSION=    4.6.0
PORTREVISION=   3
CATEGORIES= finance kde
MASTER_SITES=   SF/${PORTNAME}2/KMyMoney-KDE4/${PORTVERSION}
DISTFILES=  ${PORTNAME}-${PORTVERSION}-2${EXTRACT_SUFX}

MAINTAINER= bsdkaffee@gmail.com
COMMENT=    KDE 4.x-based personal finance manager

LICENSE=    GPLv2
LICENSE_FILE=   ${WRKSRC}/COPYING

BUILD_DEPENDS=  ${LOCALBASE}/share/xml/docbook/4.2/docbookx.dtd:${PORTSDIR}/textproc/docbook-xml
LIB_DEPENDS=    boost_graph.4:${PORTSDIR}/devel/boost-libs \
        alkimia.4:${PORTSDIR}/finance/libalkimia

USE_BZIP2=  yes
USE_CMAKE=  yes
USE_QT_VER= 4
QT_COMPONENTS=  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
USE_GETTEXT=    yes
MAKE_JOBS_SAFE= yes

MAN1=       kmymoney.1

OPTIONS=    CALENDAR "Enable Calendar plugin" on \
        KBANKING "Enable KBanking plugin" off \
        OFX "Enable OFX plugin" off \
        QUOTES "Enable online price quotes" off

.include <bsd.port.options.mk>

.if defined(WITH_CALENDAR)
LIB_DEPENDS+=   ical.44:${PORTSDIR}/devel/libical
CMAKE_ARGS+=    -DENABLE_LIBICAL:BOOL=ON
PLIST_SUB+= WITH_CALENDAR=""
.else
CMAKE_ARGS+=    -DENABLE_LIBICAL:BOOL=OFF
PLIST_SUB+= WITH_CALENDAR="@comment "
.endif

.if defined(WITH_KBANKING)
LIB_DEPENDS+=   gwengui-qt4.0:${PORTSDIR}/devel/gwenhywfar \
        aqbanking.33:${PORTSDIR}/finance/aqbanking
CMAKE_ARGS+=    -DENABLE_KBANKING:BOOL=ON
PLIST_SUB+= WITH_KBANKING=""
.else
CMAKE_ARGS+=    -DENABLE_KBANKING:BOOL=OFF
PLIST_SUB+= WITH_KBANKING="@comment "
.endif

.if defined(WITH_OFX)
LIB_DEPENDS+=   ofx.4:${PORTSDIR}/finance/libofx
CMAKE_ARGS+=    -DENABLE_LIBOFX:BOOL=ON
PLIST_SUB+= WITH_OFX=""
.else
CMAKE_ARGS+=    -DENABLE_LIBOFX:BOOL=OFF
PLIST_SUB+= WITH_OFX="@comment "
.endif

.if defined(WITH_QUOTES)
USE_PERL5_RUN=  yes
RUN_DEPENDS+=   ${SITE_PERL}/Date/Manip.pm:${PORTSDIR}/devel/p5-Date-Manip \
        ${SITE_PERL}/Finance/Quote.pm:${PORTSDIR}/finance/p5-Finance-Quote \
        ${SITE_PERL}/${PERL_ARCH}/XML/Parser.pm:${PORTSDIR}/textproc/p5-XML-Parser \
        ${SITE_PERL}/XML/Writer.pm:${PORTSDIR}/textproc/p5-XML-Writer \
        ${SITE_PERL}/LWP.pm:${PORTSDIR}/www/p5-libwww
.endif

.if !defined(PACKAGE_BUILDING) && defined(WITH_KBANKING) && !exists(${LOCALBASE}/lib/libgwengui-qt4.so)
IGNORE=     please rebuild devel/gwenhywfar with the WITH_QT4 option set
.endif

.include <bsd.port.mk>