aboutsummaryrefslogtreecommitdiff
path: root/textproc/sary/Makefile
blob: 98d07e205cf77de7f84dac08cea53e55a139bc69 (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
36
37
38
39
40
41
42
43
44
45
# New ports collection makefile for:	Sary
# Date created:		8 October 2002
# Whom:			Akinori MUSHA aka knu <knu@idaemons.org>
#
# $FreeBSD$
#

PORTNAME=	sary
PORTVERSION=	1.1.0
PORTREVISION=	1
CATEGORIES=	textproc
MASTER_SITES=	http://prime.sourceforge.jp/freebsd/

MAINTAINER=	knu@FreeBSD.org
COMMENT=	A suffix array library and tools, which provide fast full-text search

USE_GNOME=	glib20 gnomehack
USE_REINPLACE=	yes

GNU_CONFIGURE=	yes
USE_AUTOMAKE_VER=	15
AUTOMAKE_ARGS=	-a
USE_LIBTOOL_VER=13
INSTALLS_SHLIB=	yes

MAN1=		sary.1	mksary.1

pre-configure:
	cd ${WRKSRC} && ${LIBTOOLIZE} && ${AUTOHEADER}

post-patch:
.if !defined(NOPORTDOCS)
	${FIND} ${WRKSRC}/docs -type f -name 'Makefile.am' | \
		${XARGS} ${REINPLACE_CMD} \
		-e 's,^docsdir = .*,docsdir = \$$(datadir)/doc/sary,'
.endif
	@cd ${WRKSRC} && ${ACLOCAL}
	${REINPLACE_CMD} -e 's,--no-verify,,' ${WRKSRC}/aclocal.m4

post-install:
.if !defined(NOPORTDOCS)
	cd ${WRKSRC}/docs; ${MAKE} install
.endif

.include <bsd.port.mk>