summaryrefslogtreecommitdiff
path: root/devel/autodia/Makefile
blob: a9c5580321a82cf359174ee6cd27571470aba5e5 (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
# ex:ts=8
# New ports collection makefile for:	autodia
# Date created:			Oct 6, 2001
# Whom:				ijliao
#
# $FreeBSD$
#

PORTNAME=	autodia
PORTVERSION=	1.2
PORTREVISION=	0
CATEGORIES=	devel perl5
MASTER_SITES=	http://droogs.org/autodia/download/
DISTNAME=	AutoDia-${PORTVERSION}

MAINTAINER=	ports@FreeBSD.org

BUILD_DEPENDS=	${PERL_SITELIBDIR}/${PERL_ARCH}/Template.pm:${PORTSDIR}/www/p5-Template-Toolkit \
		${PERL_SITELIBDIR}/Inline.pm:${PORTSDIR}/devel/p5-Inline \
		${PERL_SITELIBDIR}/Inline/Java.pm:${PORTSDIR}/devel/p5-Inline-Java
RUN_DEPENDS=	${BUILD_DEPENDS}

PERL_SITELIBDIR=	${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}
USE_BZIP2=	yes
PERL_CONFIGURE=	yes
WRKSRC=		${WRKDIR}/Autodia

MAN1=	autodia.1
MAN3PREFIX=	${PREFIX}/lib/perl5/${PERL_VERSION}
MAN3=	Autodia.3 Autodia::Diagram.3 Autodia::Diagram::Class.3 \
	Autodia::Diagram::Component.3 Autodia::Handler.3 \
	Autodia::Handler::Cpp.3 Autodia::Handler::PHP.3 \
	Autodia::Handler::Perl.3

DOCS=	CHANGES COPYING CREDITS DEVELOP FAQ INSTALL README

pre-install:
	@${RM} -f ${WRKSRC}/blib/man3/*.3pm

.if !defined(NOPORTDOCS)
post-install:
	@${MKDIR} ${DOCSDIR}
.for file in ${DOCS}
	${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR}
.endfor
.endif

.include <bsd.port.mk>