summaryrefslogtreecommitdiff
path: root/textproc/xapian
diff options
context:
space:
mode:
authordsainty <dsainty@pkgsrc.org>2009-01-21 06:42:32 +0000
committerdsainty <dsainty@pkgsrc.org>2009-01-21 06:42:32 +0000
commit9a7ff63cac7465e7211542deede96f47d1365fa2 (patch)
treeba6b12ea03b5ed252f12f813090d6bd607bbce57 /textproc/xapian
parent0d05ddce9c6058367c659663009f66cc8307a8ea (diff)
downloadpkgsrc-9a7ff63cac7465e7211542deede96f47d1365fa2.tar.gz
Add xapian-flint-backend and xapian-quartz-backend options, allowing
rationalisation of backends (and also allows wiring the database to the older database format if desired). The "suggested options" select support for both formats, which is also the status quo.
Diffstat (limited to 'textproc/xapian')
-rw-r--r--textproc/xapian/Makefile24
-rw-r--r--textproc/xapian/PLIST26
2 files changed, 36 insertions, 14 deletions
diff --git a/textproc/xapian/Makefile b/textproc/xapian/Makefile
index 5c3533aa1b8..868f0ab4563 100644
--- a/textproc/xapian/Makefile
+++ b/textproc/xapian/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.3 2009/01/08 03:43:31 dsainty Exp $
+# $NetBSD: Makefile,v 1.4 2009/01/21 06:42:32 dsainty Exp $
#
DISTNAME= xapian-core-1.0.10
@@ -14,5 +14,27 @@ GNU_CONFIGURE= yes
USE_LIBTOOL= yes
USE_LANGUAGES= c c++
+PKG_OPTIONS_VAR= PKG_OPTIONS.xapian
+PKG_SUPPORTED_OPTIONS= xapian-flint-backend xapian-quartz-backend
+PKG_SUGGESTED_OPTIONS= xapian-flint-backend xapian-quartz-backend
+
+.include "../../mk/bsd.options.mk"
+
+PLIST_VARS+= quartz
+.if !empty(PKG_OPTIONS:Mxapian-quartz-backend)
+CONFIGURE_ARGS+= --enable-backend-quartz
+PLIST.quartz= yes
+.else
+CONFIGURE_ARGS+= --disable-backend-quartz
+.endif
+
+PLIST_VARS+= flint
+.if !empty(PKG_OPTIONS:Mxapian-flint-backend)
+CONFIGURE_ARGS+= --enable-backend-flint
+PLIST.flint= yes
+.else
+CONFIGURE_ARGS+= --disable-backend-flint
+.endif
+
.include "../../devel/zlib/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
diff --git a/textproc/xapian/PLIST b/textproc/xapian/PLIST
index 9a86319eb48..7e876ea1254 100644
--- a/textproc/xapian/PLIST
+++ b/textproc/xapian/PLIST
@@ -1,17 +1,17 @@
-@comment $NetBSD: PLIST,v 1.1.1.1 2008/07/26 23:35:05 schmonz Exp $
+@comment $NetBSD: PLIST,v 1.2 2009/01/21 06:42:32 dsainty Exp $
bin/copydatabase
bin/delve
-bin/quartzcheck
-bin/quartzcompact
-bin/quartzdump
+${PLIST.quartz}bin/quartzcheck
+${PLIST.quartz}bin/quartzcompact
+${PLIST.quartz}bin/quartzdump
bin/quest
bin/simpleexpand
bin/simpleindex
bin/simplesearch
-bin/xapian-check
-bin/xapian-compact
+${PLIST.flint}bin/xapian-check
+${PLIST.flint}bin/xapian-compact
bin/xapian-config
-bin/xapian-inspect
+${PLIST.flint}bin/xapian-inspect
bin/xapian-progsrv
bin/xapian-tcpsrv
include/xapian.h
@@ -40,14 +40,14 @@ include/xapian/visibility.h
lib/libxapian.la
man/man1/copydatabase.1
man/man1/delve.1
-man/man1/quartzcheck.1
-man/man1/quartzcompact.1
-man/man1/quartzdump.1
+${PLIST.quartz}man/man1/quartzcheck.1
+${PLIST.quartz}man/man1/quartzcompact.1
+${PLIST.quartz}man/man1/quartzdump.1
man/man1/quest.1
-man/man1/xapian-check.1
-man/man1/xapian-compact.1
+${PLIST.flint}man/man1/xapian-check.1
+${PLIST.flint}man/man1/xapian-compact.1
man/man1/xapian-config.1
-man/man1/xapian-inspect.1
+${PLIST.flint}man/man1/xapian-inspect.1
man/man1/xapian-progsrv.1
man/man1/xapian-tcpsrv.1
share/aclocal/xapian.m4