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.
This commit is contained in:
dsainty 2009-01-21 06:42:32 +00:00
parent 0d05ddce9c
commit 9a7ff63cac
2 changed files with 36 additions and 14 deletions

View file

@ -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"

View file

@ -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