pkgsrc/textproc/xapian-omega/Makefile
schmonz 83982ff4ab Update to 1.4.2. From the changelog:
documentation:

* Replace auto-generated list of the supported MIME types with an
  auto-generated table showing the extensions that are mapped to each MIME type
  by default.  Partly addresses #569, reported by catkin.

indexers:

* omindex: Add support for indexing markdown files (extension .md or .markdown,
  mime-type text/markdown, using "markdown" to convert to HTML).

testsuite:

* Add support for "make installcheck" to run tests against installed version.

build system:

* configure: Fail with clear error with xapian-core < 1.4.0.

portability:

* Fix GCC -Wimplicit-fallthrough warning.

* Add missing <ctime> for time_t.

* Avoid snprintf_for formatting fixed-width integers - it results in warnings
  about possible output truncation with GCC7 (which aren't actually possible
  due to limited input range) and it's a bit heavyweight for this job anyway.
2017-01-01 10:41:03 +00:00

50 lines
1.4 KiB
Makefile

# $NetBSD: Makefile,v 1.33 2017/01/01 10:41:03 schmonz Exp $
DISTNAME= xapian-omega-${VERSION}
VERSION= 1.4.2
CATEGORIES= textproc
MASTER_SITES= http://oligarchy.co.uk/xapian/${VERSION}/
EXTRACT_SUFX= .tar.xz
MAINTAINER= schmonz@NetBSD.org
HOMEPAGE= http://xapian.org/docs/omega/overview.html
COMMENT= Search engine application for websites using Xapian
LICENSE= gnu-gpl-v2
GNU_CONFIGURE= yes
CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR:Q}
USE_LIBTOOL= yes
USE_LANGUAGES= c c++
USE_TOOLS+= perl:run
TEST_TARGET= check
REPLACE_PERL= dbi2omega htdig2omega mbox2omega
SUBST_CLASSES+= files
SUBST_STAGE.files= do-configure
SUBST_FILES.files= omega.conf
SUBST_SED.files= -e "s|@VARBASE@|${VARBASE}|g"
SUBST_MESSAGE.files= Fixing configuration files.
OWN_DIRS+= ${VARBASE}/log/${PKGBASE}
OWN_DIRS+= ${VARBASE}/${PKGBASE}/cdb
OWN_DIRS+= ${VARBASE}/${PKGBASE}/data
OWN_DIRS+= ${VARBASE}/${PKGBASE}/templates
EGDIR= ${PREFIX}/share/examples/${PKGBASE}
CONF_FILES+= ${EGDIR}/omega.conf ${PKG_SYSCONFDIR}/omega.conf
INSTALLATION_DIRS= ${EGDIR}
INSTALL_TARGET= install install-dist_sysconfDATA
INSTALL_MAKE_FLAGS+= ${MAKE_FLAGS} sysconfdir=${EGDIR:Q}
BUILD_DEFS+= VARBASE
.include "../../sysutils/file/buildlink3.mk"
.include "../../textproc/xapian/buildlink3.mk"
.include "../../devel/pcre/buildlink3.mk"
.include "../../devel/zlib/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"