47 lines
1.1 KiB
Makefile
Executable File
47 lines
1.1 KiB
Makefile
Executable File
# $OpenBSD: Makefile,v 1.40 2021/02/06 21:42:49 sthen Exp $
|
|
|
|
COMMENT= search engine library
|
|
|
|
V= 1.4.18
|
|
PORTROACH= limitw:1,even
|
|
DISTNAME= xapian-core-${V}
|
|
# the other xapian ports should be kept in-sync:
|
|
# databases/xapian-bindings
|
|
# www/xapian-omega
|
|
|
|
SHARED_LIBS += xapian 5.1 # 40.2
|
|
|
|
CATEGORIES= databases textproc
|
|
|
|
HOMEPAGE= https://xapian.org/
|
|
|
|
# GPLv2
|
|
PERMIT_PACKAGE= Yes
|
|
|
|
WANTLIB += c m ${COMPILER_LIBCXX} z
|
|
|
|
MASTER_SITES= https://oligarchy.co.uk/xapian/${V}/
|
|
EXTRACT_SUFX= .tar.xz
|
|
|
|
# -std=gnu++11
|
|
COMPILER= base-clang ports-gcc base-gcc
|
|
|
|
CONFIGURE_STYLE= gnu
|
|
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
|
|
CXXFLAGS="${CXXFLAGS} -Wno-redundant-decls" \
|
|
LDFLAGS="-L${LOCALBASE}/lib" \
|
|
ac_cv_header_uuid_uuid_h=false
|
|
# xapian is happy with libc uuid functions, but picks up libuuid if present
|
|
|
|
.include <bsd.port.arch.mk>
|
|
# amd64-capable CPUs all have SSE
|
|
.if !${ARCH:Mamd64}
|
|
CONFIGURE_ARGS+= --disable-sse
|
|
.endif
|
|
|
|
post-configure:
|
|
sed -i 's/^#define HAVE_TIMER_CREATE 1$$//' ${WRKSRC}/config.h
|
|
${SUBST_CMD} ${WRKSRC}/cmake/xapian-config.cmake.in
|
|
|
|
.include <bsd.port.mk>
|