aboutsummaryrefslogtreecommitdiff
path: root/finance/homebank/Makefile
blob: 1f8d88277a9c520b251f66893b74e3932e99890b (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
# New ports collection makefile for:	homebank
# Date created:				24 June 2006
# Whom:					Mezz <mezz@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=	homebank
PORTVERSION=	4.1
CATEGORIES=	finance
MASTER_SITES=	http://homebank.free.fr/public/

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Manage your personal accounts at home

OPTIONS=	OFX "Enable libOFX support" on

USE_GNOME=	desktopfileutils gnomehier gtk20
USE_GETTEXT=	yes
USE_GMAKE=	yes
GNU_CONFIGURE=	yes
CONFIGURE_ENV=	CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
INSTALLS_ICONS=	yes

CPPFLAGS=	-I${LOCALBASE}/include ${PTHREAD_CFLAGS}
LDFLAGS=	-L${LOCALBASE}/lib ${PTHREAD_LIBS}

.include <bsd.port.pre.mk>

.if defined(WITHOUT_OFX)
CONFIGURE_ARGS+=--without-ofx
.else
LIB_DEPENDS+=	ofx.4:${PORTSDIR}/finance/libofx
CONFIGURE_ARGS+=--with-ofx
.endif

post-install:
.if !defined(NOPORTDOCS)
	@${MKDIR} ${DOCSDIR}
.for file in AUTHORS ChangeLog NEWS README
	${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR}
.endfor
.endif
	@-update-desktop-database
	@-update-mime-database ${PREFIX}/share/mime

.include <bsd.port.post.mk>