aboutsummaryrefslogtreecommitdiff
path: root/finance/kmymoney/Makefile
blob: 8936c9f894a3395fb42b0344bc9f5d47586ed9e5 (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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
# $FreeBSD$

PORTNAME=	kmymoney
PORTVERSION=	5.1.0
CATEGORIES=	finance kde
MASTER_SITES=	KDE/stable/${PORTNAME}/${PORTVERSION}/src

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

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

LIB_DEPENDS=	libalkimia5.so:finance/alkimia \
		libKChart.so:graphics/kdiagram

USES=		cmake compiler:c++14-lang desktop-file-utils gettext kde:5 \
		pkgconfig qt:5 shared-mime-info shebangfix tar:xz
USE_QT=		buildtools_build core dbus gui network printsupport qmake_build \
		sql testlib_build xml webkit widgets
USE_KDE=	activities archive auth bookmarks codecs completion config \
		configwidgets coreaddons doctools_build ecm_build i18n \
		iconthemes itemmodels itemviews jobwidgets kcmutils \
		kio notifications textwidgets service solid sonnet \
		wallet widgetsaddons xmlgui
USE_LDCONFIG=	yes

SHEBANG_FILES=	kmymoney/misc/financequote.pl

OPTIONS_GROUP=		PLUGINS
OPTIONS_GROUP_PLUGINS=	CALENDAR KBANKING OFX SQLCIPHER WEBOOB
WEB_DESC=		Web content renderer
OPTIONS_SINGLE=		WEB
OPTIONS_SINGLE_WEB=	KDEWEBKIT QTWEBENGINE
OPTIONS_DEFINE=		ADDRESSBOOK GNUPG HOLIDAYS QUOTES
OPTIONS_DEFAULT=	CALENDAR GNUPG HOLIDAYS KBANKING KDEWEBKIT OFX QUOTES
OPTIONS_SUB=		yes

ADDRESSBOOK_DESC=	Address book support
ADDRESSBOOK_USE=	kde=akonadi,contacts,identitymanagement,pimtextedit
ADDRESSBOOK_CMAKE_BOOL_OFF=	CMAKE_DISABLE_FIND_PACKAGE_KF5Akonadi \
				CMAKE_DISABLE_FIND_PACKAGE_KF5Contacts \
				CMAKE_DISABLE_FIND_PACKAGE_KF5IdentityManagement

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

GNUPG_LIB_DEPENDS=	libgpgme.so:security/gpgme \
			libgpgmepp.so:security/gpgme-cpp \
			libassuan.so:security/libassuan \
			libgpg-error.so:security/libgpg-error
GNUPG_CMAKE_BOOL_OFF=	CMAKE_DISABLE_FIND_PACKAGE_Gpgmepp \
			CMAKE_DISABLE_FIND_PACKAGE_KF5Gpgmepp

HOLIDAYS_DESC=		Holidays support
HOLIDAYS_USE=		kde=holidays
HOLIDAYS_CMAKE_BOOL_OFF=	CMAKE_DISABLE_FIND_PACKAGE_KF5Holidays

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

KDEWEBKIT_DESC=		Web content rendering via KDEWebKit
KDEWEBKIT_USE=		kde=kdewebkit

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

QTWEBENGINE_DESC=	Web content rendering via QtWebEngine
QTWEBENGINE_USE=	qt=location,webchannel,webengine
QTWEBENGINE_CMAKE_BOOL=	ENABLE_WEBENGINE

QUOTES_DESC=		Online stock and currency price quotes
QUOTES_USES=		perl5
QUOTES_USE=		PERL5=run
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

SQLCIPHER_DESC=		KMyMoney database encryption
SQLCIPHER_LIB_DEPENDS=	libsqlcipher.so:databases/sqlcipher
SQLCIPHER_CMAKE_BOOL=	ENABLE_SQLCIPHER

WEBOOB_DESC=		Online banking via Web Outside Of Browsers
WEBOOB_BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}weboob>0:www/py-weboob@${PY_FLAVOR}
WEBOOB_RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}weboob>0:www/py-weboob@${PY_FLAVOR}
WEBOOB_USES=		python:2.7
WEBOOB_USE=		qt=concurrent
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 '/icalendar/s|^|%%CALENDAR%%|g' -e '/kbanking/s|^|%%KBANKING%%|g' \
		-e '/ofximport/s|^|%%OFX%%|g' -e '/qsqlcipher/s|^|%%SQLCIPHER%%|g' \
		-e '/weboob/s|^|%%WEBOOB%%|g' \
		pkg-plist)
.endif

.include <bsd.port.mk>