mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-25 04:43:33 +00:00
9eeb08fd93
This seems to work as I can now link clementine-player against it and use google-drive support
42 lines
966 B
Makefile
42 lines
966 B
Makefile
# Created by: Vasil Dimov <vd@datamax.bg>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= google-sparsehash
|
|
PORTVERSION= 2.0.2
|
|
PORTREVISION= 1
|
|
CATEGORIES= devel
|
|
MASTER_SITES= ${MASTER_SITE_GOOGLE_CODE} \
|
|
${MASTER_SITE_LOCAL}
|
|
MASTER_SITE_SUBDIR= vd/${PORTNAME}
|
|
PROJECTHOST= sparsehash
|
|
DISTNAME= sparsehash-${PORTVERSION}
|
|
|
|
MAINTAINER= vd@FreeBSD.org
|
|
COMMENT= An extremely memory-efficient hash_map implementation
|
|
|
|
GNU_CONFIGURE= yes
|
|
USE_GCC= 4.8+
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
post-patch:
|
|
${REINPLACE_CMD} -e \
|
|
's|^pkgconfigdir = .*|pkgconfigdir = ${LOCALBASE}/libdata/pkgconfig|' \
|
|
${WRKSRC}/Makefile.in
|
|
.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>
|