summaryrefslogblamecommitdiffstats
path: root/finance/gnucash/Makefile
blob: c0fdddc8b95468b8020f8fcbf84deecbc67fac30 (plain) (tree)
1
2
3
4
5
6




                                                                 
                                                                              









                                                                    
                                






















                                                                                                              
                   


































                                                                        
# Ports collection makefile for:  gnucash
# Date created:           Mon Feb 03, 1997
# Whom:               David O'Brien (obrien@NUXI.com)
#
# $FreeBSD$
#   $MCom: ports/finance/gnucash/Makefile,v 1.4 2006/08/19 19:06:17 mezz Exp $
#

PORTNAME=   gnucash
PORTVERSION=    1.8.12
PORTREVISION=   2
CATEGORIES= finance gnome
MASTER_SITES=   http://www.gnucash.org/pub/gnucash/sources/stable/ \
        ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= gnucash

MAINTAINER= ahze@FreeBSD.org
COMMENT=    Quicken-like money and finance manager

LIB_DEPENDS=    guile.15:${PORTSDIR}/lang/guile \
        guppi.16:${PORTSDIR}/math/guppi \
        popt.0:${PORTSDIR}/devel/popt \
        ofx.2:${PORTSDIR}/finance/libofx \
        gw-standard.0:${PORTSDIR}/devel/g-wrap
RUN_DEPENDS=    ${LOCALBASE}/share/guile/slibcat:${PORTSDIR}/lang/slib-guile \
        ${SITE_PERL}/HTML/Base.pm:${PORTSDIR}/www/p5-HTML \
        ${SITE_PERL}/LWP.pm:${PORTSDIR}/www/p5-libwww \
        ${SITE_PERL}/Date/Manip.pm:${PORTSDIR}/devel/p5-Date-Manip \
        ${SITE_PERL}/Finance/Quote.pm:${PORTSDIR}/finance/p5-Finance-Quote \
        ${SITE_PERL}/Finance/QuoteHist.pm:${PORTSDIR}/finance/p5-Finance-QuoteHist \
        ${LOCALBASE}/share/gnome/omf/gnucash-docs/gnucash-guide-C.omf:${PORTSDIR}/finance/gnucash-docs

OPTIONS=    AQBANKING   "AqBanking support (HBCI/OpenHBCI)" off

USE_XLIB=   yes
USE_GMAKE=  yes
USE_XPM=    yes
USE_PERL5=  yes
USE_GNOME=  gnomeprefix gnomehack gnomeprint libglade gtkhtml libghttp intltool intlhack
GNU_CONFIGURE=  yes
USE_LDCONFIG=   yes
CONFIGURE_ARGS= --with-glib-config=${GLIB_CONFIG} \
        --enable-ofx \
        --disable-error-on-warning
CONFIGURE_ENV=  CPPFLAGS="-I${LOCALBASE}/include -I${X11BASE}/include" \
        LIBS="-L${LOCALBASE}/lib -L${X11BASE}/lib -lintl"

MAN1=       gnc-prices.1 gnucash.1
INFO=       gnucash-design

.include <bsd.port.pre.mk>

.if exists(${LOCALBASE}/include/db41/db_185.h)
LIB_DEPENDS+=   db41.1:${PORTSDIR}/databases/db41
post-patch:
    @${REINPLACE_CMD} -e "s|db4/db_185.h|db41/db_185.h|g" \
        ${WRKSRC}/configure
.else
LIB_DEPENDS+=   db4.0:${PORTSDIR}/databases/db4
.endif

# WITH_OPENHBCI is old synonym for aqbanking option
.if defined(WITH_AQBANKING) || defined(WITH_OPENHBCI)
LIB_DEPENDS+=   aqbanking.5:${PORTSDIR}/finance/aqbanking \
        ktoblzcheck.4:${PORTSDIR}/finance/ktoblzcheck
CONFIGURE_ARGS+=--enable-hbci
PLIST_SUB=  AQBANKING=""
.else
CONFIGURE_ARGS+=--disable-hbci
PLIST_SUB=  AQBANKING="@comment "
.endif

post-configure:
    @${RM} ${WRKSRC}/src/doc/design/gnucash-design.info

.include <bsd.port.post.mk>