SUMMARY = "This package contains the core Xapian runtime library"
DESCRIPTION = "\
	The Xapian search engine library is a highly adaptable toolkit which allows \
	developers to easily add advanced indexing and search facilities to their own \
	applications.  It implements the probabilistic model of information retrieval, \
	and provides facilities for performing ranked free-text searches, relevance \
	eedback, phrase searching, boolean searching, stemming, and simultaneous \
	pdate and searching.  It is highly scalable, and is capable of working with \
	collections containing hundreds of millions of documents. \
"
HOMEPAGE = "http://xapian.org/"
PR = "r0"
inherit debian-package

LICENSE = "GPLv2+"
LIC_FILES_CHKSUM = "\
	file://COPYING;md5=4325afd396febcb659c36b49533135d4"
inherit autotools

#install follow Debian jessie
do_install_append() {
	install -d ${D}${libdir}/xapian-examples/examples
	mv ${D}${bindir}/simple* ${D}${libdir}/xapian-examples/examples/
}
PACKAGES =+ "libxapian22 xapian-examples"

DEBIANNAME_${PN} = "xapian-tools"
DEBIANNAME_${PN}-dev = "libxapian-dev"
DEBIANNAME_${PN}-doc = "xapian-doc"
DEBIANNAME_${PN}-dbg = "libxapian22-dbg"

FILES_libxapian22 = "${libdir}/libxapian.so.*"
FILES_xapian-examples = "${libdir}/xapian-examples/examples/simple*"
FILES_${PN}-dev += "${libdir}/cmake/xapian/* ${bindir}/xapian-config"
FILES_${PN}-dbg += "${libdir}/xapian-examples/examples/.debug/*"

#follow debian/control
RDEPENDS_libxapian-dev += "libxapian22 libc6-dev"
RDEPENDS_xapian-tools += "libxapian22"


Add recipe for xapian-core package
xapian-core: Add recipe for xapian-core package

Create recipe to build xapian-core package from Debian's source code

Signed-off-by: Nguyen Van Hieu <95b6c63292b73e14e1eaecc80ea875350fcf3ae9@toshiba-tsdv.com>
