summaryrefslogtreecommitdiff
path: root/finance/alkimia/Makefile
blob: cd2810100a8e8689463f0a2b316f3b94020a4b72 (plain)
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

PORTNAME=	alkimia
PORTVERSION=	8.1.0
CATEGORIES=	finance kde
MASTER_SITES=	KDE/stable/${PORTNAME}/${PORTVERSION}

MAINTAINER=	jhale@FreeBSD.org
COMMENT=	KDE financial data handling library

LICENSE=	LGPL21+
LICENSE_FILE=	${WRKSRC}/COPYING.LIB

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

USES=		cmake compiler:c++11-lang kde:5 pathfix perl5 qt:5 \
		shebangfix tar:xz
USE_LDCONFIG=	yes
USE_KDE=	attica auth codecs completion config configwidgets coreaddons \
		i18n iconthemes jobwidgets kio newstuff service sonnet \
		textwidgets widgetsaddons windowsystem xmlgui ecm_build
USE_PERL5=	run
USE_QT=		concurrent core dbus declarative gui network widgets xml \
		buildtools_build qmake_build

CMAKE_OFF=	BUILD_DOXYGEN_DOCS

PLIST_SUB=	VER=${PORTVERSION:R}
SHEBANG_FILES=	src/financequote.pl

OPTIONS_RADIO=		BROWSER
OPTIONS_RADIO_BROWSER=	WEBKIT WEBENGINE
OPTIONS_SINGLE=		MPLIB
OPTIONS_SINGLE_MPLIB=	GMP MPIR
OPTIONS_DEFINE=		PLASMA TEST TOOLS
OPTIONS_DEFAULT=	MPIR TOOLS WEBKIT
OPTIONS_SUB=		yes
BROWSER_DESC=		Web browser support
MPLIB_DESC=		Multi-precision library (MPIR preferred)

GMP_LIB_DEPENDS=	libgmp.so:math/gmp
GMP_CMAKE_BOOL=		CMAKE_DISABLE_FIND_PACKAGE_MPIR

MPIR_DESC=		MPIR (multiple precision arithmetic) support
MPIR_LIB_DEPENDS=	libmpir.so:math/mpir

PLASMA_DESC=		Build Plasma applets
PLASMA_USE=		KDE=package,plasma-framework
PLASMA_CMAKE_BOOL=	BUILD_APPLETS

TEST_USE=		QT=testlib
TEST_CMAKE_BOOL=	BUILD_TESTING
TEST_TEST_TARGET=	test

TOOLS_DESC=		Build tools
TOOLS_CMAKE_BOOL=	BUILD_TOOLS

WEBENGINE_DESC=		Qt Web Engine support
WEBENGINE_USE=		QT=webengine
WEBENGINE_CMAKE_BOOL=	BUILD_WITH_WEBENGINE

WEBKIT_DESC=		Qt WebKit support
WEBKIT_USE=		QT=webkit
WEBKIT_CMAKE_BOOL=	BUILD_WITH_WEBKIT

pre-configure:
	${FIND} ${WRKSRC} -type f \( -name '*.bak' -o -name '*.orig' \) -exec ${RM} {} \;

.include <bsd.port.mk>