summaryrefslogtreecommitdiffstats
path: root/devel/kcachegrind/Makefile
blob: 7d1a561f84eb65bcc3a01f35c8bcfbaffb1945b1 (plain)
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
# New ports collection makefile for:	KCachegrind
# Date created:				Jun 3 2004
# Whom:					Simon Barner <barner@gmx.de>
#
# $FreeBSD$
#

PORTNAME=	kcachegrind
PORTVERSION=	0.4.6
PORTREVISION=	1
CATEGORIES=	devel kde
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR=	kcachegrind

MAINTAINER=	beat@FreeBSD.org
COMMENT=	Profiling Visualization Tool

ONLY_FOR_ARCHS=	i386 amd64
CONFLICTS=	kdesdk3-[0-9]*

USE_AUTOTOOLS=	libtool:15
USE_GMAKE=	yes
USE_KDELIBS_VER=3
INSTALLS_ICONS=	yes
USE_GETTEXT=	yes

OPTIONS=	DOT "Use GraphViz/dot to render call graphs" on \
		CALLGRIND "Install devel/callgrind" off

.include <bsd.port.pre.mk>

.if defined (WITH_DOT)
RUN_DEPENDS+=	dot:${PORTSDIR}/graphics/graphviz
.endif

.if defined (WITH_CALLGRIND)
RUN_DEPENDS+=	callgrind:${PORTSDIR}/devel/callgrind
.endif

post-patch:
	@${REINPLACE_CMD} -e 's|-O2||g' -e 's|-lpthread|${PTHREAD_LIBS}|g' \
		${WRKSRC}/${CONFIGURE_SCRIPT}

.include <bsd.port.post.mk>
OpenPOWER on IntegriCloud