summaryrefslogtreecommitdiff
path: root/devel/ccdoc/Makefile
blob: cff7c652b99e014114d8785eaa36d6bc28ecd191 (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
# New ports collection makefile for:   ccdoc
# Date created:        9 October 2000
# Whom:                lonewolf@flame.org
#
# $FreeBSD$
#

PORTNAME=	ccdoc
PORTVERSION=	0.8r40
CATEGORIES=	devel textproc
MASTER_SITES=	http://www.joelinoff.com/ccdoc/downloads/
DISTNAME=	src
DIST_SUBDIR=	ccdoc

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Extracting comments from C++ source and generating HTML

USE_PERL5=	yes
USE_REINPLACE=	yes

WRKSRC=		${WRKDIR}/ccdocv08r40/src
MAKEFILE=	mkopt_gcc.mk
ALL_TARGET=	bld
MAN1=		ccdoc.1
PLIST_FILES=	bin/ccdoc
.if !defined(NOPORTDOCS)
PORTDOCS=	*
.endif

do-configure:
	${REINPLACE_CMD} -e "s:%%PERL%%:${PERL}:" \
		-e "s:%%CXX%%:${CXX}:" \
		-e "s:%%CXXFLAGS%%:${CXXFLAGS}:" \
		${WRKSRC}/${MAKEFILE}

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/../bin_opt_gcc_/ccdoc.exe \
		${PREFIX}/bin/ccdoc
	${INSTALL_MAN} ${WRKSRC}/../doc/htdocs/ccdoc.man ${MAN1PREFIX}/man/man1/${MAN1}
.if !defined(NOPORTDOCS)
	${MKDIR} ${DOCSDIR}
	${FIND} ${WRKSRC}/../doc \( -name '*.html' -o \
		-name '*.htm' -o \
		-name '*.gif' -o \
		-name '*.txt' -o \
		-name '*.jpg' \) -print | \
		${CPIO} -pdmu -R ${SHAREOWN}:${SHAREGRP} ${DOCSDIR}
.endif

.include <bsd.port.mk>