53 lines
1.4 KiB
Makefile
53 lines
1.4 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= ports@FreeBSD.org
|
|
COMMENT= Extracting comments from C++ source and generating HTML
|
|
|
|
WRKSRC= ${WRKDIR}/ccdoc_v07a
|
|
USE_PERL5= yes
|
|
|
|
DOCDIR=${PREFIX}/share/doc/ccdoc
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if ${OSVERSION} >= 500113
|
|
BROKEN= "Does not compile on FreeBSD ${OSVERSION} (gcc3.3 string continuation)"
|
|
.endif
|
|
|
|
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_CMD} ${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.post.mk>
|