summaryrefslogtreecommitdiff
path: root/www/wdg-validate/Makefile
blob: 94d63cbacf021224c45dd547ee28bbc068d44adb (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
# $NetBSD: Makefile,v 1.2 2001/05/30 13:38:52 abs Exp $
#

DISTNAME=	validate
PKGNAME=	wdg-validate-1.0.2
CATEGORIES=	www
MASTER_SITES=	http://www.htmlhelp.com/tools/validator/offline/
DISTFILES=	validate sgml-lib.tar.gz README

MAINTAINER=	norm@sandbox.org.uk
HOMEPAGE=	http://www.htmlhelp.com/tools/validator/offline/
COMMENT=	HTML validator from the Web Design Group

DEPENDS+=	lq-sp>=1.3.4.5:../../textproc/lq-sp

DIST_SUBDIR=	wdg-validate
EXTRACT_ONLY=	sgml-lib.tar.gz

USE_PERL5=	yes
NO_BUILD=	yes

post-extract:
	${CP} ${DISTDIR}/${DIST_SUBDIR}/validate ${WRKSRC}/validate.netbsd
	${CP} ${DISTDIR}/${DIST_SUBDIR}/README ${WRKSRC}/README

do-configure:
	${SED} -e 's:@PREFIX@:${PREFIX}:'	\
	    < ${WRKSRC}/validate.netbsd		\
	    > ${WRKSRC}/validate

do-install:
	${INSTALL_DATA_DIR} ${PREFIX}/lib/validate
	${INSTALL_SCRIPT} ${WRKSRC}/validate ${PREFIX}/bin
	${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/validate.README
	${CP} -R ${WRKSRC}/lib/* ${PREFIX}/lib/validate

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