summaryrefslogtreecommitdiff
path: root/www/tidy/Makefile
blob: e3723d65d73253066a1ef328ebbc119a6e7a1ec5 (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
# $NetBSD: Makefile,v 1.17 2004/09/07 14:37:27 reed Exp $
#

DISTNAME=	tidy_src_040811
PKGNAME=	tidy-20040811
PKGREVISION=	1
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_040810${EXTRACT_SUFX}

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

WRKSRC=		${WRKDIR}/tidy
USE_BUILDLINK3=	yes
NO_CONFIGURE=	yes
USE_GNU_TOOLS+=	make
BUILD_DIRS=	${WRKSRC}/build/gmake

OPSYSVARS+=	MAKEFLAGS
MAKEFLAGS.Darwin+=	RANLIB=ranlib

HTML_DOCFILES=	Overview.html doxygen.cfg grid.gif quickref.html tidy.css	\
		faq.html license.html pending.html release-notes.html tidy.gif
HTML_DOCDIR=	${PREFIX}/share/doc/html/tidy

post-install:
	${INSTALL_DATA_DIR} ${HTML_DOCDIR}
	for doc in ${HTML_DOCFILES}; do						\
	    ${INSTALL_DATA} ${WRKSRC}/htmldoc/$$doc ${HTML_DOCDIR} ;	\
	done
	${INSTALL_DATA_DIR} ${HTML_DOCDIR}/api
	for apifile in ${WRKSRC}/htmldoc/api/* ; do				\
	    ${INSTALL_DATA} $$apifile ${HTML_DOCDIR}/api ;			\
	done

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