aboutsummaryrefslogtreecommitdiffstats
path: root/devel/google-sparsehash/Makefile
blob: 9aba89d3a9e9b6cc75ea5aadeb5442c3f51912da (plain) (blame)
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
# New ports collection makefile for:    google-sparsehash
# Date created:             23 June 2005
# Whom:                 Vasil Dimov <vd@datamax.bg>
#
# $FreeBSD$
#

PORTNAME=   google-sparsehash
PORTVERSION=    0.4
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}

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

check: build
    cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} check

.include <bsd.port.mk>