summaryrefslogtreecommitdiff
path: root/textproc/mifluz/Makefile
blob: 77dbb89f789b0af3f5219a1308efc8026b1755df (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# Created by: Frederic Dubuy <fdubuy@free.fr>

PORTNAME=	mifluz
PORTVERSION=	0.26.0
PORTREVISION=	1
CATEGORIES=	textproc
MASTER_SITES=	GNU

MAINTAINER=	ports@FreeBSD.org
COMMENT=	C++ library to build and query a full text inverted index

LICENSE=	GPLv3

USES=		bison compiler iconv libtool makeinfo pathfix
GNU_CONFIGURE=	yes
CONFIGURE_ARGS=	--enable-posixmutexes \
		--localstatedir="${PREFIX}/var" \
		--without-unac
INSTALL_TARGET=	install-strip
USE_LDCONFIG=	yes

CXXFLAGS+=	${CXXFLAGS_${CHOSEN_COMPILER_TYPE}}
CXXFLAGS_clang=	-Wno-c++11-narrowing
CPPFLAGS+=	-I${LOCALBASE}/include
LDFLAGS+=	-L${LOCALBASE}/lib

SUB_FILES=	pkg-message

INFO=		mifluz

post-patch:
	@${REINPLACE_CMD} -e \
		'/^#ifndef HAVE_ALLOCA/s|_H||' ${WRKSRC}/clib/strncoll2.c

.include <bsd.port.mk>