freebsd-ports/devel/google-sparsehash/Makefile
Vasil Dimov 9bac0e7cd8 * Upgrade devel/google-sparsehash from 0.4 to 0.5
* Add regression-test: target which is an alias for check:
2006-10-31 06:12:53 +00:00

45 lines
1.1 KiB
Makefile

# New ports collection makefile for: google-sparsehash
# Date created: 23 June 2005
# Whom: Vasil Dimov <vd@datamax.bg>
#
# $FreeBSD$
#
PORTNAME= google-sparsehash
PORTVERSION= 0.5
CATEGORIES= devel
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= goog-sparsehash
DISTNAME= sparsehash-${PORTVERSION}
MAINTAINER= vd@FreeBSD.org
COMMENT= Google's hashtable implementations optimized for space or speed
GNU_CONFIGURE= yes
CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
.include <bsd.port.pre.mk>
.if ${OSVERSION} < 500000
# /usr/include/g++/stl_algobase.h:139: template instantiation depth exceeds maximum of 17
# /usr/include/g++/stl_algobase.h:139: (use -ftemplate-depth-NN to increase the maximum)
CFLAGS+= -ftemplate-depth-32
.endif
post-patch:
.if !defined(NOPORTDOCS)
${REINPLACE_CMD} -e \
's|^docdir = .*|docdir = ${DOCSDIR}|' \
${WRKSRC}/Makefile.in
.else
${REINPLACE_CMD} -e \
'/install-data-am/ s|install-dist_docDATA||' \
${WRKSRC}/Makefile.in
.endif
regression-test: check
check: build
cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} check
.include <bsd.port.post.mk>