Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. --- pkgsrc/devel/gperftools/Makefile 2014/04/16 14:56:07 1.1 +++ pkgsrc/devel/gperftools/Makefile 2017/12/01 09:19:07 1.10 @@ -1,24 +1,31 @@ -# $NetBSD: Makefile,v 1.1 2014/04/16 14:56:07 wiz Exp $ +# $NetBSD: Makefile,v 1.10 2017/12/01 09:19:07 adam Exp $ -DISTNAME= gperftools-2.1 +DISTNAME= gperftools-2.6.2 CATEGORIES= devel -MASTER_SITES= https://gperftools.googlecode.com/files/ +MASTER_SITES= ${MASTER_SITE_GITHUB:=gperftools/} MAINTAINER= cheusov@NetBSD.org -HOMEPAGE= https://code.google.com/p/gperftools/ +HOMEPAGE= https://github.com/gperftools/gperftools COMMENT= Fast, multi-threaded malloc() and nifty performance analysis tools LICENSE= modified-bsd -USE_TOOLS+= perl:run -REPLACE_PERL= src/pprof +GITHUB_PROJECT= gperftools +GITHUB_RELEASE= ${DISTNAME} -GNU_CONFIGURE= yes -USE_LIBTOOL= yes USE_LANGUAGES= c c++ - -CONFIGURE_ARGS+= --enable-frame-pointers # per README - -# http://code.google.com/p/gperftools/issues/detail?id=609 +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 @@ -27,6 +34,8 @@ PKGCONFIG_OVERRIDE+= libtcmalloc_minimal PKGCONFIG_OVERRIDE+= libtcmalloc_minimal_debug.pc PKGCONFIG_OVERRIDE_STAGE= post-build +REPLACE_PERL= src/pprof + TEST_TARGET= check .include "../../mk/bsd.pkg.mk"