PORTNAME=	homebank
PORTVERSION=	5.10
CATEGORIES=	finance
MASTER_SITES=	https://www.gethomebank.org/public/sources/

MAINTAINER=	wen@FreeBSD.org
COMMENT=	Free, easy, personal accounting for everyone
WWW=		https://www.gethomebank.org

LICENSE=	GPLv2
LICENSE_FILE=	${WRKSRC}/COPYING

LIB_DEPENDS=	libsoup-3.0.so:devel/libsoup3 \
		libosp.so:textproc/opensp

WRKSRC=		${WRKDIR}/${PORTNAME}-${PORTVERSION}.0

GNU_CONFIGURE=	yes
USES=		desktop-file-utils gettext gmake gnome localbase pkgconfig \
		shared-mime-info
USE_CSTD=	c99
USE_GNOME=	cairo gtk30 intltool

PORTDOCS=	AUTHORS ChangeLog NEWS README

OPTIONS_DEFINE=	DOCS OFX
OFX_DESC=	OFX file format support
OPTIONS_DEFAULT=OFX

OFX_CONFIGURE_WITH=	ofx
OFX_LIB_DEPENDS=	libofx.so:finance/libofx

post-install-DOCS-on:
	@${MKDIR} ${STAGEDIR}${DOCSDIR}
	${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}

.include <bsd.port.mk>
