summaryrefslogtreecommitdiff
path: root/www/htmllint/Makefile
blob: 1c4106dacc53b9412efb504d3d274d18a90d58e7 (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
45
46
47
48
49
# $NetBSD: Makefile,v 1.12 2003/07/17 22:55:37 grant Exp $
#

DISTNAME=	htmllint
PKGNAME=	htmllint-20030518
WRKSRC=		${WRKDIR}
CATEGORIES=	www japanese
MASTER_SITES=	http://openlab.ring.gr.jp/k16/htmllint/archives/
EXTRACT_SUFX=	.zip

MAINTAINER=	kei@NetBSD.org
HOMEPAGE=	http://openlab.ring.gr.jp/k16/htmllint/
COMMENT=	Another HTML-Lint program

DEPENDS+=	p5-Jcode>=0.68:../../converters/p5-Jcode

DIST_SUBDIR=	${PKGNAME}

REPLACE_PERL=	htmllint.cgi htmllint parsedtd.pl tagslist.cgi
USE_PERL5=	# defined
NO_BUILD=	# defined

CGIDIR=		${LOCALBASE}/libexec/cgi-bin
HTMLDIR=	${LOCALBASE}/share/httpd/htdocs/htmllint
IMGDIR=		${HTMLDIR}/images

post-patch:
.for f in faq.html htmllintenv htmllint
	@${MV} ${WRKSRC}/${f} ${WRKSRC}/${f}.orig; 			\
	${SED} -e 's!@PREFIX@!${PREFIX}!g' < ${WRKSRC}/${f}.orig 	\
		> ${WRKSRC}/${f}
.endfor

do-install:
	@${INSTALL_SCRIPT} ${WRKSRC}/htmllint ${PREFIX}/bin; 		\
	${INSTALL_SCRIPT_DIR} ${CGIDIR}; 				\
	${INSTALL_SCRIPT} ${WRKSRC}/*.cgi ${CGIDIR}; 			\
	${INSTALL_DATA} ${WRKSRC}/htmllintrc ${CGIDIR}; 		\
	${INSTALL_DATA} ${WRKSRC}/htmllintenv ${CGIDIR}/htmllint.env.default; \
	${TEST} -f ${CGIDIR}/htmllint.env || 				\
	    ${CP} ${CGIDIR}/htmllint.env.default  ${CGIDIR}/htmllint.env; \
	${INSTALL_SCRIPT_DIR} ${HTMLDIR}; 				\
	${INSTALL_SCRIPT} ${WRKSRC}/*.pl ${WRKSRC}/*.pm ${HTMLDIR}; 	\
	${INSTALL_DATA} ${WRKSRC}/*.css ${WRKSRC}/*.dtd ${WRKSRC}/*.ent \
	    ${WRKSRC}/*.html ${WRKSRC}/*.rul ${WRKSRC}/*.txt ${HTMLDIR}; \
	${INSTALL_DATA_DIR} ${IMGDIR}; 					\
	${INSTALL_DATA} ${WRKSRC}/*.gif ${IMGDIR}

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