freebsd-ports/devel/ccdoc/Makefile
Dirk Meyer 85b7674614 - port converted in new layout
- textproc added in category (like astyle)

Ccdoc is a tool for extracting comments from C++ source code and presenting it
in HTML format, very similar to Java's JavaDoc tool. The tagging used in ccdoc
is very similar to that of Javadoc, with adaptations for the C++ specifics, of
course. Ccdoc supports extracting comments from both header and implementation
files.

In contrast to most other C++ doc'ing applications, ccdoc analyses the code
before it has been run through the pre-processor, so things such as macros can
actually be included in the documentation.

It's usage is not quite as straight forward as JavaDoc's, but considering the
quality of the output, it is well worth the effort.

WWW: http://www.joelinoff.com/ccdoc/

PR:		22794
Submitted by:	lonewolf@flame.org
2001-03-14 16:24:40 +00:00

47 lines
1.2 KiB
Makefile

# New ports collection makefile for: ccdoc
# Date created: 9 October 2000
# Whom: lonewolf@flame.org
#
# $FreeBSD$
#
PORTNAME= ccdoc
PORTVERSION= 0.7a
CATEGORIES= devel textproc
MASTER_SITES= http://www.joelinoff.com/ccdoc/ \
http://www.flame.org/~lonewolf/distfiles/ \
http://www.earthmagic.org/FreeBSD/distfiles/
DISTNAME= ccdoc_v07a_src_taz
EXTRACT_SUFX= .exe
MAINTAINER= lonewolf@flame.org
WRKSRC= ${WRKDIR}/ccdoc_v07a
USE_PERL= yes
DOCDIR=${PREFIX}/share/doc/ccdoc
pre-patch:
@${ECHO} "Stripping ^M from all the files..."
@find ${WRKSRC} -type f | xargs perl -pi -e 's/\r//'
do-build:
(cd ${WRKSRC}/ccdoc_dev/libjdl/src; ${PERL} mk.pl opt)
(cd ${WRKSRC}/ccdoc_dev/ccdoc/src; ${PERL} mk.pl opt)
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/ccdoc_dev/ccdoc/bin_freebsd_opt/ccdoc.exe ${PREFIX}/bin/ccdoc
post-install:
strip ${PREFIX}/bin/ccdoc
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCDIR}
${INSTALL_MAN} ${WRKSRC}/doc/*.html ${WRKSRC}/doc/*.txt ${WRKSRC}/doc/*.gif ${DOCDIR}
${MKDIR} ${DOCDIR}/images
${INSTALL_MAN} ${WRKSRC}/doc/images/*.gif ${DOCDIR}/images
${MKDIR} ${DOCDIR}/autodoc
${INSTALL_MAN} ${WRKSRC}/doc/autodoc/* ${DOCDIR}/autodoc
.endif
.include <bsd.port.mk>