blob: 51ad5d34473af555478f7369f304a0dab46c7428 (
plain) (
blame)
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
|
# New ports collection makefile for: tidy
# Date created: 27 Oct 1998
# Whom: Abel Chow <achow@transoft.net>
#
# $FreeBSD$
#
PORTNAME= tidy
PORTVERSION= 030208
CATEGORIES= www
MASTER_SITES= http://tidy.sourceforge.net/src/%SUBDIR%/ \
http://tidy.sourceforge.net/docs/
MASTER_SITE_SUBDIR= . old
PKGNAMESUFFIX= -devel
DISTNAME= tidy_src
EXTRACT_SUFX= .tgz
DISTFILES= ${DISTNAME}_${PORTVERSION}${EXTRACT_SUFX}
MAINTAINER= thierry@pompo.net
WRKSRC= ${WRKDIR}/${PORTNAME}
USE_GMAKE= yes
#MAN1= tidy.1
.if !defined(NOPORTDOCS)
DOCVER= 021222
DISTFILES+= tidy_docs_${DOCVER}${EXTRACT_SUFX}
DOCFILES= Overview.html faq.html grid.gif pending.html \
quickref.html release-notes.html tidy.css tidy.gif
APIEXT= css html js png
.endif
BIN2STRIP= tidy tab2space
pre-install:
@if [ -f ${LOCALBASE}/bin/tidy ]; then \
${ECHO_MSG} "" ; \
${ECHO_MSG} "Conflict: please deinstall the port bin/tidy." ; \
${ECHO_MSG} "" ; \
${FALSE} ; \
fi
post-install:
.for pgm in ${BIN2STRIP}
@${STRIP_CMD} ${PREFIX}/bin/${pgm}
.endfor
.if !defined(NOPORTDOCS)
@${ECHO_MSG} "===> Installing documentation for ${PKGNAME}"
@${MKDIR} ${DOCSDIR}
.for docfile in ${DOCFILES}
@${INSTALL_MAN} ${WRKSRC}/htmldoc/${docfile} ${DOCSDIR}
.endfor
@${MKDIR} ${DOCSDIR}/api
.for ext in ${APIEXT}
@${CP} -p ${WRKSRC}/htmldoc/api/*.${ext} ${DOCSDIR}/api
.endfor
@${CHOWN} -R ${MANOWN}:${MANGRP} ${DOCSDIR}/api
@${ECHO_MSG} "===> Documentation installed in ${DOCSDIR}."
.endif
.include <bsd.port.mk>
|