aboutsummaryrefslogtreecommitdiff
path: root/devel/googlemock/Makefile
blob: eda5e6b8a396ebb758e8b3b92e920981edf2cfdc (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
36
37
38
39
40
41
42
# Created by: Cheng-Lung Sung <clsung@FreeBSD.org>
# $FreeBSD$

PORTNAME=	googlemock
PORTVERSION=	1.7.0
DISTVERSIONPREFIX=	release-
PORTREVISION=	1
CATEGORIES=	devel

MAINTAINER=	jbeich@FreeBSD.org
COMMENT=	Library for writing and using C++ mock classes

LICENSE=	BSD3CLAUSE
LICENSE_FILE=	${WRKSRC}/LICENSE

BUILD_DEPENDS=	${LOCALBASE}/share/aclocal/ax_pthread.m4:devel/autoconf-archive \
		googletest>=1.7.0:devel/googletest
LIB_DEPENDS=	libgtest.so:devel/googletest

USE_GITHUB=	yes
GH_ACCOUNT=	google

USES=		autoreconf libtool
GNU_CONFIGURE=	yes
# fused-src python tests are only useful for bundling. There's no point in
# running them before installing system-wide without source files.
CONFIGURE_ENV=	ac_cv_path_PYTHON=":"
TEST_TARGET=	check
INSTALL_TARGET=	install-strip
USE_LDCONFIG=	yes

post-patch:
	@${REINPLACE_CMD} '/acx_pthread.m4/d' ${WRKSRC}/configure.ac
# enable vendor make install again (revert 52277c9)
	@${REINPLACE_CMD} -E 's/install-(exec|data)-local/&-dummy/' \
		${WRKSRC}/Makefile.am

post-install:
	${INSTALL_SCRIPT} ${WRKSRC}/scripts/gmock-config ${STAGEDIR}${PREFIX}/bin
	${INSTALL_SCRIPT} ${WRKSRC}/scripts/gmock_doctor.py ${STAGEDIR}${PREFIX}/bin

.include <bsd.port.mk>