summaryrefslogtreecommitdiff
path: root/finance
diff options
context:
space:
mode:
authorwiz <wiz>2014-01-06 09:19:25 +0000
committerwiz <wiz>2014-01-06 09:19:25 +0000
commit8f7113b95b040926559235f0caa0bd7c4b801f42 (patch)
tree8e6e2c23e27a4bd76f4a5c04bfd0d524f55033d6 /finance
parent80b79fff9f08c6ca19f665fc3cd23c97bd962fee (diff)
downloadpkgsrc-8f7113b95b040926559235f0caa0bd7c4b801f42.tar.gz
Add sqlite3 option, and adapt PLIST for it.
From Gary Duzan.
Diffstat (limited to 'finance')
-rw-r--r--finance/kmymoney2/Makefile5
-rw-r--r--finance/kmymoney2/PLIST3
-rw-r--r--finance/kmymoney2/options.mk15
3 files changed, 16 insertions, 7 deletions
diff --git a/finance/kmymoney2/Makefile b/finance/kmymoney2/Makefile
index 580e7c02f93..229e966e374 100644
--- a/finance/kmymoney2/Makefile
+++ b/finance/kmymoney2/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.78 2014/01/05 21:19:18 wiz Exp $
+# $NetBSD: Makefile,v 1.79 2014/01/06 09:19:25 wiz Exp $
DISTNAME= kmymoney2-1.0.5
PKGREVISION= 25
@@ -11,7 +11,7 @@ HOMEPAGE= http://kmymoney2.sourceforge.net/
COMMENT= Personal finance manager for KDE
LICENSE= gnu-gpl-v2
-USE_TOOLS+= gmake msgfmt perl pkg-config bash
+USE_TOOLS+= gmake msgfmt perl pkg-config bash gsed
USE_LANGUAGES= c c++
USE_LIBTOOL= YES
GNU_CONFIGURE= YES
@@ -45,5 +45,4 @@ REPLACE_PERL+= admin/fixuifiles
BUILDLINK_ABI_DEPENDS.qt3-libs+= qt3-libs>=3.3.8nb9
.endif
.include "../../x11/qt3-libs/buildlink3.mk"
-.include "../../databases/sqlite3/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
diff --git a/finance/kmymoney2/PLIST b/finance/kmymoney2/PLIST
index 8f368bbbd30..b58ad2454d5 100644
--- a/finance/kmymoney2/PLIST
+++ b/finance/kmymoney2/PLIST
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.15 2013/12/31 13:53:46 hauke Exp $
+@comment $NetBSD: PLIST,v 1.16 2014/01/06 09:19:25 wiz Exp $
bin/kmymoney
bin/kmymoney2
include/kmymoney/export.h
@@ -81,6 +81,7 @@ lib/libkmm_kdchart.la
lib/libkmm_mymoney.la
lib/libkmm_plugin.la
man/man1/kmymoney2.1
+${PLIST.sqlite3}qt3/plugins/sqldrivers/libsqlite3.so
share/applications/kde/kmymoney2.desktop
share/doc/kde/HTML/en/kmymoney2/account_edit.png
share/doc/kde/HTML/en/kmymoney2/account_options.png
diff --git a/finance/kmymoney2/options.mk b/finance/kmymoney2/options.mk
index ab9a5e115ab..262f884d8b6 100644
--- a/finance/kmymoney2/options.mk
+++ b/finance/kmymoney2/options.mk
@@ -1,14 +1,23 @@
-# $NetBSD: options.mk,v 1.4 2012/06/02 18:33:32 dholland Exp $
+# $NetBSD: options.mk,v 1.5 2014/01/06 09:19:25 wiz Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.kmymoney2
-PKG_SUPPORTED_OPTIONS= libofx
+PKG_SUPPORTED_OPTIONS= libofx sqlite3
PKG_SUGGESTED_OPTIONS= libofx
.include "../../mk/bsd.options.mk"
-PLIST_VARS+= libofx #sqlite3
+PLIST_VARS+= libofx sqlite3
.if !empty(PKG_OPTIONS:Mlibofx)
.include "../../finance/libofx/buildlink3.mk"
PLIST.libofx= yes
.endif
+
+# sqlite3 support builds but does not function properly
+.if !empty(PKG_OPTIONS:Msqlite3)
+.include "../../databases/sqlite3/buildlink3.mk"
+PLIST.sqlite3= yes
+CONFIGURE_ARGS+= --enable-sqlite3
+.else
+CONFIGURE_ARGS+= --disable-sqlite3
+.endif