blob: 1248c7991c20e6a8e020e3b7b4bfa6bc6ee1ba92 (
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
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
|
# $FreeBSD$
# $MCom: ports/finance/gnucash/Makefile,v 1.26 2008/12/31 03:25:18 mezz Exp $
PORTNAME= gnucash
PORTVERSION= 2.4.13
CATEGORIES= finance gnome
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}%20%28stable%29/${PORTVERSION}
MAINTAINER= gnome@FreeBSD.org
COMMENT= Quicken-like money and finance manager
LICENSE= GPLv3
BUILD_DEPENDS= guile>=1.8.6:${PORTSDIR}/lang/guile \
${LOCALBASE}/share/guile/1.8/slibcat:${PORTSDIR}/lang/slib-guile
LIB_DEPENDS= gnome-keyring:${PORTSDIR}/security/libgnome-keyring \
goffice-0.8:${PORTSDIR}/devel/goffice
RUN_DEPENDS= guile>=1.8.6:${PORTSDIR}/lang/guile \
${LOCALBASE}/share/guile/1.8/slibcat:${PORTSDIR}/lang/slib-guile \
p5-libwww>=0:${PORTSDIR}/www/p5-libwww \
p5-Date-Manip>=0:${PORTSDIR}/devel/p5-Date-Manip \
p5-Finance-Quote>=0:${PORTSDIR}/finance/p5-Finance-Quote
OPTIONS_DEFINE= AQBANKING OFX DATABASE LOCALE_TAX WEBKIT PYTHON
AQBANKING_DESC= AqBanking support (HBCI/OpenHBCI)
OFX_DESC= OFX support
DATABASE_DESC= Enable SQL database backends
LOCALE_TAX_DESC= Enable localized tax categories
WEBKIT_DESC= Use webkit instead of gtkhtml for the HTML engine
USE_BZIP2= yes
USES= gettext
USE_GMAKE= yes
USE_PERL5= yes
INSTALLS_ICONS= yes
USE_GNOME= gnomeprefix libglade2 libgnomeui
GNU_CONFIGURE= yes
USE_LDCONFIG= yes
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
CONFIGURE_ARGS= --disable-error-on-warning \
--disable-doxygen
MAN1= gnucash.1
GCONF_SCHEMAS= apps_gnucash_dialog_business_common.schemas \
apps_gnucash_dialog_commodities.schemas \
apps_gnucash_dialog_common.schemas \
apps_gnucash_dialog_prices.schemas \
apps_gnucash_dialog_print_checks.schemas \
apps_gnucash_dialog_reconcile.schemas \
apps_gnucash_dialog_scheduled_transctions.schemas \
apps_gnucash_dialog_totd.schemas \
apps_gnucash_general.schemas \
apps_gnucash_history.schemas \
apps_gnucash_import_generic_matcher.schemas \
apps_gnucash_import_qif.schemas \
apps_gnucash_warnings.schemas \
apps_gnucash_window_pages_account_tree.schemas \
apps_gnucash_window_pages_register.schemas
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MAQBANKING}
LIB_DEPENDS+= gwengui-gtk2:${PORTSDIR}/devel/gwenhywfar-gtk2 \
ktoblzcheck:${PORTSDIR}/finance/ktoblzcheck \
aqbanking:${PORTSDIR}/finance/aqbanking
GCONF_SCHEMAS+= apps_gnucash_dialog_hbci.schemas
CONFIGURE_ARGS+=--enable-aqbanking
PLIST_SUB+= AQBANKING=""
.else
CONFIGURE_ARGS+=--disable-aqbanking
PLIST_SUB+= AQBANKING="@comment "
.endif
.if ${PORT_OPTIONS:MOFX}
CONFIGURE_ARGS+=--enable-ofx
LIB_DEPENDS+= ofx:${PORTSDIR}/finance/libofx
PLIST_SUB+= OFX=""
.else
CONFIGURE_ARGS+=--disable-ofx
PLIST_SUB+= OFX="@comment "
.endif
.if ${PORT_OPTIONS:MDATABASE}
CONFIGURE_ARGS+=--enable-dbi
LIB_DEPENDS+= dbi:${PORTSDIR}/databases/libdbi
PLIST_SUB+= DATABASE=""
.else
CONFIGURE_ARGS+=--disable-dbi
PLIST_SUB+= DATABASE="@comment "
.endif
.if ${PORT_OPTIONS:MLOCALE_TAX}
CONFIGURE_ARGS+=--enable-locale-specific-tax
.endif
.if ${PORT_OPTIONS:MWEBKIT}
CONFIGURE_ARGS+=--with-html-engine=webkit
LIB_DEPENDS+= webkitgtk-1.0:${PORTSDIR}/www/webkit-gtk2
.else
USE_GNOME+= gtkhtml3
.endif
.if ${PORT_OPTIONS:MPYTHON}
CONFIGURE_ARGS+=--enable-python-bindings
USE_PYTHON= yes
PLIST_SUB+= PYTHON=""
.else
PLIST_SUB+= PYTHON="@comment "
.endif
post-install:
.if ${PORT_OPTIONS:MPYTHON}
@${PYTHON_CMD} ${PYTHON_LIBDIR}/compileall.py \
${PYTHON_SITELIBDIR:S|${LOCALBASE}|${PREFIX}|}/${PORTNAME}
@${PYTHON_CMD} -O ${PYTHON_LIBDIR}/compileall.py \
${PYTHON_SITELIBDIR:S|${LOCALBASE}|${PREFIX}|}/${PORTNAME}
.endif
@${CAT} ${PKGMESSAGE}
.include <bsd.port.mk>
|