aboutsummaryrefslogtreecommitdiff
path: root/finance/aqbanking/Makefile
blob: 2c0b6b09fedae1220caa44644f6a5f9f7b3a0ccc (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
# $FreeBSD$

PORTNAME=	aqbanking
PORTVERSION=	5.0.25
PORTREVISION=	3
CATEGORIES=	finance
MASTER_SITES=	http://www.aquamaniac.de/sites/download/download.php?package=03&release=95&file=01&dummy=/

MAINTAINER=	jhale@FreeBSD.org
COMMENT=	Online banking interface and financial data framework

LICENSE=	GPLv2 GPLv3
LICENSE_COMB=	dual

LIB_DEPENDS=	libgwenhywfar.so:${PORTSDIR}/devel/gwenhywfar \
		libgmp.so:${PORTSDIR}/math/gmp

USES=		pathfix pkgconfig gettext gmake libtool

GNU_CONFIGURE=	yes
CONFIGURE_ARGS=	--enable-release="yes"
CPPFLAGS+=	-I${LOCALBASE}/include
LDFLAGS+=	-L${LOCALBASE}/lib
LIBS+=		-lintl
MAKE_JOBS_UNSAFE=	yes

PLIST_SUB=	AQB_SHLIB_VER="${AQB_SHLIB_VER}" \
		GWEN_SHLIB_VER="${GWEN_SHLIB_VER}"
USE_LDCONFIG=	yes

AQB_SHLIB_VER=	34
GWEN_SHLIB_VER=	60

PORTDOCS=	*

OPTIONS_DEFINE=		DOXYGEN KTOBLZCHECK PAYPAL
OPTIONS_DEFAULT=	KTOBLZCHECK
OPTIONS_SUB=		yes

DOXYGEN_BUILD_DEPENDS=	doxygen:${PORTSDIR}/devel/doxygen \
			dot:${PORTSDIR}/graphics/graphviz
DOXYGEN_CONFIGURE_ENABLE=	full-doc

KTOBLZCHECK_DESC=	Enable KtoBlzCheck support

PAYPAL_DESC=		Build PayPal backend (separate license)
PAYPAL_CONFIGURE_ON=	--with-backends="aqhbci aqnone aqofxconnect aqpaypal"

.include <bsd.port.options.mk>

.if ${PORT_OPTIONS:MKTOBLZCHECK} || exists(${LOCALBASE}/lib/libktoblzcheck.so)
LIB_DEPENDS+=	libktoblzcheck.so:${PORTSDIR}/finance/ktoblzcheck
.endif

post-build:
.if ${PORT_OPTIONS:MDOXYGEN}
	@cd ${WRKSRC} && ${MAKE_CMD} srcdoc
.endif

post-install:
.if ${PORT_OPTIONS:MDOXYGEN}
	@${MKDIR} ${STAGEDIR}${DOCSDIR}/apidoc
	cd ${WRKSRC}/apidoc && \
		${COPYTREE_SHARE} \* ${STAGEDIR}${DOCSDIR}/apidoc
.endif

.include <bsd.port.mk>