summaryrefslogtreecommitdiff
path: root/devel/gperftools/Makefile
blob: 016c366a0ec64fa02afb37eb5bd147b7077e47ac (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
# $NetBSD: Makefile,v 1.21 2021/05/24 19:49:58 wiz Exp $

DISTNAME=	gperftools-2.9.1
PKGREVISION=	1
CATEGORIES=	devel
MASTER_SITES=	${MASTER_SITE_GITHUB:=gperftools/}
GITHUB_PROJECT=	gperftools
GITHUB_RELEASE=	${DISTNAME}

MAINTAINER=	cheusov@NetBSD.org
HOMEPAGE=	https://github.com/gperftools/gperftools
COMMENT=	Fast, multi-threaded malloc() and nifty performance analysis tools
LICENSE=	modified-bsd

USE_LANGUAGES=		c c++
USE_LIBTOOL=		yes
USE_TOOLS+=		gmake perl:run
GNU_CONFIGURE=		yes
# on some platforms heap checker is not build by default
CONFIGURE_ARGS+=	--enable-heap-checker
TEST_TARGET=		check

# for backtrace()
.include "../../mk/bsd.prefs.mk"
.if (${OPSYS} == "NetBSD" || ${OPSYS} == "FreeBSD") && exists(/usr/include/execinfo.h)
LIBS+=			-lexecinfo
CONFIGURE_ARGS+=	--enable-stacktrace-via-backtrace
.endif

PKGCONFIG_OVERRIDE=		libprofiler.pc
PKGCONFIG_OVERRIDE+=		libtcmalloc.pc
PKGCONFIG_OVERRIDE+=		libtcmalloc_debug.pc
PKGCONFIG_OVERRIDE+=		libtcmalloc_minimal.pc
PKGCONFIG_OVERRIDE+=		libtcmalloc_minimal_debug.pc
PKGCONFIG_OVERRIDE_STAGE=	post-build

REPLACE_PERL=		src/pprof

.include "../../mk/bsd.pkg.mk"