blob: 97784b30b8be8a4abf5447d5dd14bdc366167721 (
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
|
# $NetBSD: Makefile,v 1.12 2018/05/10 07:28:46 adam Exp $
DISTNAME= gperftools-2.7
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
# enable deprecated ucontext
CFLAGS.Darwin+= -D_XOPEN_SOURCE=1
# for backtrace()
.include "../../mk/bsd.prefs.mk"
.if (${OPSYS} == "NetBSD" || ${OPSYS} == "FreeBSD") && exists(/usr/include/execinfo.h)
LIBS+= -lexecinfo
.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
TEST_TARGET= check
.include "../../mk/bsd.pkg.mk"
|