summaryrefslogtreecommitdiff
path: root/www/tidy/Makefile
blob: 9c3e46b517837c90c97f18b9c7fff32ed5dd3e8a (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
# $NetBSD: Makefile,v 1.10 2003/06/02 01:15:59 jschauma Exp $
#

DISTNAME=	tidy_src_021108
PKGNAME=	tidy-20021108
WRKSRC=		${WRKDIR}/tidy
CATEGORIES=	www
MASTER_SITES=	http://tidy.sourceforge.net/src/ \
		http://tidy.sourceforge.net/docs/ \
		http://tidy.sourceforge.net/src/old/
EXTRACT_SUFX=	.tgz
DISTFILES=	${DISTNAME}${EXTRACT_SUFX} tidy_docs_021021${EXTRACT_SUFX}

MAINTAINER=	tech-pkg@netbsd.org
HOMEPAGE=	http://tidy.sourceforge.net/
COMMENT=	Fixes and tidies up HTML files

ALL_TARGET=	tidy
CFLAGS+=	-DPRESERVE_FILE_TIMES=0

DOCFILES=	htmldoc/Overview.html htmldoc/tidy.gif \
		htmldoc/release-notes.html htmldoc/grid.gif

USE_GMAKE=	yes

do-install:
	@${INSTALL_PROGRAM} ${WRKSRC}/tidy ${PREFIX}/bin/tidy
	@${INSTALL_MAN}	${WRKSRC}/man_page.txt	${PREFIX}/man/man1/tidy.1
	@${ECHO_MSG} "===>   Installing documentation for ${PKGNAME}"
	@${INSTALL_DATA_DIR} ${PREFIX}/share/doc/tidy
.for docfile in ${DOCFILES}
	@${INSTALL_DATA} ${WRKSRC}/${docfile} ${PREFIX}/share/doc/tidy
.endfor

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