summaryrefslogtreecommitdiff
path: root/recipes/xapian/xapian-quickstart.inc
blob: 920a48bfcd6ba407cbd448df8f5bb2e2e24fcbed (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
DESCRIPTION = "Simplest possible indexer (from an older release of xapian)."
HOMEPAGE = "http://users.softlab.ece.ntua.gr/~ttsiod/buildWikipediaOffline.html"
PRIORITY = "optional"
LICENSE = "GPL"
DEPENDS = "xapian-core"

BINARY_NAME = ${@bb.data.getVar("PN",d,1).replace("xapian-","").replace("-native","")}
S = "${WORKDIR}"

SRC_URI = "http://users.softlab.ece.ntua.gr/~ttsiod/${BINARY_NAME}.cc"

do_compile() {
        ${CXX} ${CXXLAGS} ${LDFLAGS} -I${STAGING_INCDIR_NATIVE} -lxapian -o ${BINARY_NAME} ${BINARY_NAME}.cc
}

do_install() {
        install -d ${D}
        install -d ${D}${bindir}
        install -m 0755 ${WORKDIR}/${BINARY_NAME} ${D}${bindir}/
}