summaryrefslogtreecommitdiff
path: root/www/wdg-validate/Makefile
blob: db770c62d390b4171ae45752b0f593ef25f612ad (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
# $NetBSD: Makefile,v 1.7 2003/01/19 00:41:07 wiz Exp $
#

DISTNAME=	validate
PKGNAME=	wdg-validate-1.1.2
WRKSRC=		${WRKDIR}
CATEGORIES=	www
MASTER_SITES=	http://www.htmlhelp.com/tools/validator/offline/
DISTFILES=	validate wdg-sgml-lib-1.1.1.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=	${PKGNAME_NOREV}
EXTRACT_ONLY=	wdg-sgml-lib-1.1.1.tar.gz
SITES_wdg-sgml-lib-1.1.1.tar.gz=	http://www.htmlhelp.com/tools/validator/src/

USE_BUILDLINK2=	YES
REPLACE_PERL=	validate.netbsd

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

do-build:
	${SED}	-e "s|@PREFIX@|${PREFIX}|g" \
		${WRKSRC}/validate.netbsd > ${WRKSRC}/validate

do-install:
	${INSTALL_DATA_DIR} ${PREFIX}/share/wdg/sgml-lib
	${INSTALL_SCRIPT} ${WRKSRC}/validate ${PREFIX}/bin
	${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/validate.README
	cd ${WRKSRC}/wdg/sgml-lib && ${PAX} -rw * ${PREFIX}/share/wdg/sgml-lib/

.include "../../lang/perl5/buildlink2.mk"
.include "../../mk/bsd.pkg.mk"