summaryrefslogtreecommitdiff
path: root/net/freewais-sf/Makefile
blob: a334868228e1c967960b3ca660d206a3c5f79a42 (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
# New ports collection makefile for:	FreeWAIS-sf
# Version required:	2.2.12
# Date created:		19 November 1996
# Whom:			Pedro Giffuni
#
# $FreeBSD$
#

DISTNAME=	freeWAIS-sf-2.2.12
PKGNAME=	freewais-sf-2.2.12
CATEGORIES=	net databases
MASTER_SITES=	ftp://ls6-ftp.cs.uni-dortmund.de/pub/src/freeWAIS-sf/

MAINTAINER=	ports@FreeBSD.org

HAS_CONFIGURE=	yes
CONFIGURE_SCRIPT=	Configure
CONFIGURE_ARGS=	< ${WRKDIR}/configure.ans
INSTALL_TARGET=	install install.man

MAN1=	catalog.1 dictionary.1 inverted_file.1 makedb.1 mkfmt.1 waisindex.1 \
	waisq.1 waissearch.1 waisserver.1 xwais.1 xwaisq.1
MAN3=	ftw.3 regexp.3 scandir.3

pre-configure:
	@${SED} -e "s:%%CC%%:${CC}:g" \
	        -e "s:%%CFLAGS%%:${CFLAGS}:g" \
		${FILESDIR}/configure.ans.skel > ${WRKDIR}/configure.ans

post-configure:
	@find ${WRKSRC} -type f -exec \
		${PERL} -pi -e "s:%%PREFIX%%:${PREFIX}:g" \{} \;

post-install:
.if !defined(NOPORTDOCS)
	@${MKDIR} ${PREFIX}/share/doc/SF
	${INSTALL_DATA} ${WRKSRC}/doc/SF/fwsf.ps ${PREFIX}/share/doc/SF
.endif

.include <bsd.port.mk>