aboutsummaryrefslogtreecommitdiffstats
path: root/finance/gnucash/Makefile
diff options
context:
space:
mode:
authoradamw <adamw@FreeBSD.org>2003-08-20 22:30:55 +0800
committeradamw <adamw@FreeBSD.org>2003-08-20 22:30:55 +0800
commit8964cc5e2ae747d529859236b3c61e9f1b3209ab (patch)
tree839a163cf727a399a90508acf855ebf54719c5da /finance/gnucash/Makefile
parentd26c558fff6f0b3988e05d58a810c996c6a2016b (diff)
downloadfreebsd-ports-graphics-8964cc5e2ae747d529859236b3c61e9f1b3209ab.tar.gz
freebsd-ports-graphics-8964cc5e2ae747d529859236b3c61e9f1b3209ab.tar.zst
freebsd-ports-graphics-8964cc5e2ae747d529859236b3c61e9f1b3209ab.zip
Update to 1.8.5.
Enable gnucash to build if db41 is installed.
Diffstat (limited to 'finance/gnucash/Makefile')
-rw-r--r--finance/gnucash/Makefile16
1 files changed, 13 insertions, 3 deletions
diff --git a/finance/gnucash/Makefile b/finance/gnucash/Makefile
index 6c1bc1b0b02..d7af5261d60 100644
--- a/finance/gnucash/Makefile
+++ b/finance/gnucash/Makefile
@@ -6,8 +6,7 @@
#
PORTNAME= gnucash
-PORTVERSION= 1.8.4
-PORTREVISION= 1
+PORTVERSION= 1.8.5
CATEGORIES= finance gnome
MASTER_SITES= http://www.gnucash.org/pub/gnucash/sources/stable/ \
ftp://ftp.gnucash.org/pub/gnucash/sources/stable/ \
@@ -49,4 +48,15 @@ CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include -I${X11BASE}/include" \
MAN1= gnc-prices.1 gnucash.1
INFO= gnucash-design
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if exists(${LOCALBASE}/include/db41/db_185.h)
+LIB_DEPENDS+= db4.0:${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
+
+.include <bsd.port.post.mk>