summaryrefslogtreecommitdiff
path: root/net/freewais-sf/Makefile
blob: 67f58cd49b2fe6435b9536f01d4964dcc1d5d8f5 (plain)
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
# $NetBSD: Makefile,v 1.32 2011/05/21 05:56:08 obache Exp $
#

DISTNAME=	freeWAIS-sf-2.2.12
PKGNAME=	freewais-sf-2.2.12
PKGREVISION=	6
CATEGORIES=	net databases
MASTER_SITES=	ftp://ftp.informatik.uni-hamburg.de/pub/soft/infosystems/wais/freeWAIS/

MAINTAINER=	bad@NetBSD.org
HOMEPAGE=	http://www.is.informatik.uni-duisburg.de/projects/freeWAIS-sf/
COMMENT=	Enhanced Wide Area Information Server

NOT_FOR_PLATFORM=	Darwin-*-*

PKG_DESTDIR_SUPPORT=	user-destdir

USE_LIBTOOL=	yes
USE_TOOLS+=	makeinfo gzcat:run gzip:run perl:run

HAS_CONFIGURE=		yes
CONFIGURE_ENV+=		PREFIX=${PREFIX:Q}
CONFIGURE_SCRIPT=	./Configure
CONFIGURE_ARGS+=	-sde -Dprefix=${DESTDIR}${PREFIX:Q}		\
			-Darchname=${MACHINE_ARCH}-${LOWER_OPSYS}	\
			-Dmansrc=${DESTDIR}${PREFIX:Q}/${PKGMANDIR:Q}/man1	\
			-Dgzip=${TOOLS_PATH.gzip:Q}			\
			-Dzcat=${TOOLS_PATH.gzcat:Q}
CONFIGURE_ENV+=		PERL5=${PERL5:Q}
INSTALL_TARGET=		install install.man
INFO_FILES=		# PLIST

INSTALLATION_DIRS=	bin lib include ${PKGINFODIR} ${PKGMANDIR}/man1

post-build:
	cd ${WRKSRC}/doc/SF && makeinfo fwsf.texi

post-install:
	cd ${WRKSRC}/doc/SF; for f in fwsf.info fwsf.info-[0-9]*; do	\
		${TEST} ! -f "$$f" ||					\
		${INSTALL_DATA} "$$f" ${DESTDIR}${PREFIX}/${PKGINFODIR};\
	done

.include "../../mk/bsd.pkg.mk"