freebsd-ports/misc/Howto/Makefile
David E. O'Brien fb6509dd8d This is the result from some discussion in some list (can't remember which)
where someone suggested taking the Linux HOW-TOs and make them applicable
to FreeBSD.

Everyone please feel free to add to this framework.
1998-12-30 04:42:36 +00:00

60 lines
1.5 KiB
Makefile

# 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)
#
# $Id: Makefile,v 1.2 1997/01/25 18:08:40 obrien Exp $
#
DISTNAME= Howto-1.0
CATEGORIES= misc
MASTER_SITES= ftp://sunsite.unc.edu/pub/Linux/docs/HOWTO/other-formats/sgml/ \
ftp://sunsite.unc.edu/pub/Linux/docs/HOWTO/mini/other-formats/sgml/ \
http://sunsite.unc.edu/mdw/HOWTO/
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>