summaryrefslogtreecommitdiff
path: root/misc/Howto/Makefile
blob: 3b14b29418e826fc607654e039573a7778d82dc0 (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
# ex:ts=8
# Ports collection makefile for:  Howto
# Version required:     	  1.0
# Date created:			  Fri Oct 02, 1998
# Whom:				  David O'Brien (obrien@FreeBSD.org)
#
# $FreeBSD$
#

DISTNAME=	Howto-1.0
CATEGORIES=	misc
MASTER_SITES=	ftp://metalab.unc.edu/pub/Linux/docs/HOWTO/other-formats/sgml/ \
		ftp://metalab.unc.edu/pub/Linux/docs/HOWTO/mini/other-formats/sgml/
DISTFILES=	Linux+FreeBSD.sgml.gz  \
		DNS-HOWTO.sgml.gz  \
		NFS-HOWTO.sgml.gz  \
		NIS-HOWTO.sgml.gz  \
		Security-HOWTO.sgml.gz

MAINTAINER=     ports@FreeBSD.org

BUILD_DEPENDS=	sgmlfmt:${PORTSDIR}/textproc/sgmlformat

DIST_SUBDIR=	Howto
NO_WRKSUBDIR=	yes

do-extract:
	@${MKDIR} ${WRKSRC}
	@for file in ${DISTFILES}; do \
		${CP} ${_DISTDIR}/$$file ${WRKSRC} ; \
		case $$file in \
			*.Z|*.gz) \
				${GZIP_CMD} -d ${WRKSRC}/$$file ; \
				;; \
			*.zip) \
				cd ${WRKSRC} && unzip $$file ; \
				;; \
			*.bz2) \
				bzip2 -d ${WRKSRC}/$$file ; \
				;; \
		esac; \
	done

do-build:
.for howto in ${DISTFILES:S/.gz//}
	@cd ${WRKSRC} && sgmlfmt -f ascii ${howto}
	@cd ${WRKSRC} && sgmlfmt -f latin1 ${howto}
	@cd ${WRKSRC} && sgmlfmt -f html ${howto}
.endfor

do-install:
	@${MKDIR} ${PREFIX}/share/doc/Howto/HTML
	@${INSTALL_MAN} ${FILESDIR}/HOWTO-INDEX.html ${PREFIX}/share/doc/Howto
	@${INSTALL_MAN} ${WRKSRC}/*.html ${PREFIX}/share/doc/Howto/HTML
	@${INSTALL_MAN} ${WRKSRC}/*.latin1 ${PREFIX}/share/doc/Howto
	@${INSTALL_MAN} ${WRKSRC}/*.ascii ${PREFIX}/share/doc/Howto

.include <bsd.port.mk>