sthen 278d40cea9 update xapian to 1.4.16, from Lucas Raab, tweaks: I didn't take the
SHARED_LIBS bump because there's no apparent reason for doing so, and
remove a REVISION from -bindings.
2020-07-25 19:48:43 +00:00

46 lines
1.3 KiB
Makefile

# $OpenBSD: Makefile,v 1.29 2020/07/25 19:48:43 sthen Exp $
COMMENT= web search application
V= 1.4.16
PORTROACH= limitw:1,even
DISTNAME= xapian-omega-${V}
CATEGORIES= www textproc
HOMEPAGE= https://xapian.org/
# GPLv2
PERMIT_PACKAGE= Yes
WANTLIB += ${COMPILER_LIBCXX} c iconv m magic pcre uuid xapian z
MASTER_SITES= https://oligarchy.co.uk/xapian/${V}/
EXTRACT_SUFX= .tar.xz
# C++11
COMPILER= base-clang ports-gcc base-gcc
LIB_DEPENDS= databases/xapian-core>=${V} \
devel/pcre \
devel/libmagic
CONFIGURE_STYLE= gnu
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib"
FAKE_FLAGS= sysconfdir=${PREFIX}/share/examples/xapian-omega \
pkglibbindir=${PREFIX}/libexec/xapian-omega/cgi-bin
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/omega/templates
${INSTALL_DATA} ${WRKBUILD}/templates/godmode ${PREFIX}/share/omega/templates
${INSTALL_DATA} ${WRKBUILD}/templates/opensearch ${PREFIX}/share/omega/templates
${INSTALL_DATA} ${WRKBUILD}/templates/query ${PREFIX}/share/omega/templates
${INSTALL_DATA} ${WRKBUILD}/templates/topterms ${PREFIX}/share/omega/templates
${INSTALL_DATA} ${WRKBUILD}/templates/xml ${PREFIX}/share/omega/templates
${INSTALL_DATA_DIR} ${PREFIX}/share/omega/templates/inc
${INSTALL_DATA} ${WRKBUILD}/templates/inc/* ${PREFIX}/share/omega/templates/inc
.include <bsd.port.mk>