aboutsummaryrefslogtreecommitdiff
path: root/www/linklint/Makefile
blob: eec749ac7783c3dea2490f9c444471637035b074 (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
# New ports collection makefile for:	linklint
# Date created:				16 Sep 2005
# Whom:					Emanuel Haupt <ehaupt@critical.ch>
#
# $FreeBSD$
#

PORTNAME=	linklint
PORTVERSION=	2.3.5
CATEGORIES=	www
MASTER_SITES=	http://www.linklint.org/download/

MAINTAINER=	ehaupt@FreeBSD.org
COMMENT=	Perl script that checks links on web sites

USE_PERL5_RUN=	yes
USE_REINPLACE=	yes
NO_BUILD=	yes

PLIST_FILES=	bin/linklint
HTMLDOC=	bugs.html doc_index.html dot.gif hints.html howitworks.html \
		index.html inputs.html language.html license.html linklint.gif \
		new.html outputs.html
DOC=		CHANGES.txt
PORTDOCS=	*

post-patch:
	@${REINPLACE_CMD} -e '1s|.*|#!${PERL}|' \
		${WRKSRC}/${DISTNAME}

do-install:
	${INSTALL_SCRIPT} ${WRKSRC}/${DISTNAME} ${PREFIX}/bin/${PORTNAME}

.if !defined(NOPORTDOCS)
	${MKDIR} ${DOCSDIR}/html
	${INSTALL_DATA} ${WRKSRC}/${DOC} ${DOCSDIR}
.for f in ${HTMLDOC}
	${INSTALL_DATA} ${WRKSRC}/doc/${f} ${DOCSDIR}/html
.endfor
.endif

.include <bsd.port.mk>