2007-10-11 17:36:31 +02:00
# New ports collection makefile for: google-sparsehash
# Date created: 07 January 2007
# Whom: Yuri Victorovich <yuri@tsoft.com>
#
# $FreeBSD$
#
PORTNAME = google-perftools
2010-08-31 21:36:58 +02:00
PORTVERSION = 1.6
2007-10-11 17:36:31 +02:00
CATEGORIES = devel
2008-03-06 23:19:52 +01:00
MASTER_SITES = ${ MASTER_SITE_GOOGLE_CODE } \
2007-10-11 17:36:31 +02:00
${ MASTER_SITE_LOCAL }
MASTER_SITE_SUBDIR = vd/${ PORTNAME }
MAINTAINER = yuri@tsoft.com
2007-11-18 09:52:04 +01:00
COMMENT = Fast, multi-threaded malloc( ) and nifty performance analysis tools
2007-10-11 17:36:31 +02:00
GNU_CONFIGURE = yes
2009-05-30 16:50:48 +02:00
USE_LDCONFIG = yes
MAN1 = pprof.1
2007-10-11 17:36:31 +02:00
2010-08-31 21:36:58 +02:00
LICENSE = BSD
LICENSE_FILE = ${ WRKSRC } /COPYING
2007-10-11 17:36:31 +02:00
post-patch :
. i f d e f i n e d ( N O P O R T D O C S )
${ REINPLACE_CMD } -e \
'/^install-data-am:/ s|install-dist_docDATA||' \
${ WRKSRC } /Makefile.in
. e n d i f
post-build :
@${ ECHO }
2010-08-31 21:36:58 +02:00
@${ ECHO } "Be aware that 6 (tcmalloc_minimal_unittest tcmalloc_minimal_debug_unittest tcmalloc_unittest tcmalloc_both_unittest tcmalloc_debug_unittest tcmalloc_and_profiler_unittest) out of 38 self tests is known to fail."
@${ ECHO } "Perftools developers were notified: http://code.google.com/p/google-perftools/issues/detail?id=212"
2007-10-11 17:36:31 +02:00
@${ ECHO } "Run 'make check' and try to fix that. Thanks!"
2009-01-13 01:03:20 +01:00
@${ ECHO } "Be aware that another self test (profiler_unittest) can randomly fail on the loaded system."
2007-10-11 17:36:31 +02:00
@${ ECHO }
2007-12-12 12:43:07 +01:00
# four of the tests are known to fail on 7.0, uncomment this as soon as this is fixed
2007-10-11 17:36:31 +02:00
#regression-test: check
check : build
cd ${ WRKSRC } && ${ SETENV } ${ MAKE_ENV } ${ MAKE } ${ MAKE_FLAGS } ${ MAKEFILE } ${ MAKE_ARGS } check
. i n c l u d e < b s d . p o r t . p r e . m k >
2009-06-05 04:09:46 +02:00
. i f ${ARCH} = = "amd64"
CONFIGURE_ARGS += --enable-frame-pointers
2009-01-13 01:03:20 +01:00
. e n d i f
2010-04-01 12:24:44 +02:00
. i f ${ARCH} = = "ia64" || ${ ARCH } = = "powerpc" || ${ ARCH } = = "sparc64"
BROKEN = Does not build, assembly not supported, see PR-94: http://code.google.com/p/google-perftools/issues/detail?id= 94& can = 1
2007-10-11 17:36:31 +02:00
. e n d i f
. i n c l u d e < b s d . p o r t . p o s t . m k >