blob: 095c631e32c80a3956bdeda750a1b1cfa651a441 (
plain)
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
|
# $NetBSD: Makefile,v 1.4 2014/05/17 16:10:43 wiz Exp $
#
DISTNAME= gmock-1.6.0
PKGREVISION= 1
CATEGORIES= devel
MASTER_SITES= http://googlemock.googlecode.com/files/
EXTRACT_SUFX= .zip
MAINTAINER= ryoon@NetBSD.org
HOMEPAGE= http://code.google.com/p/googlemock/
COMMENT= C++ Mocking Framework
LICENSE= modified-bsd
INSTALLATION_DIRS= bin
GNU_CONFIGURE= yes
USE_LANGUAGES= c c++
USE_LIBTOOL= yes
SUBST_CLASSES+= fix-python
SUBST_STAGE.fix-python= pre-configure
SUBST_MESSAGE.fix-python= Fixing dynamic python
SUBST_FILES.fix-python+= gtest/scripts/*py
SUBST_SED.fix-python+= -e 's,/usr/bin/env python,${PYTHONBIN},'
CONFIGURE_ARGS+= --enable-external-gtest
.include "../../mk/compiler.mk"
.if !empty(PKGSRC_COMPILER:Mclang)
CXXFLAGS+= -std=c++11
.endif
pre-configure:
${RM} -r ${WRKSRC}/gtest
post-install:
${INSTALL_SCRIPT} ${WRKSRC}/scripts/gmock-config ${DESTDIR}${PREFIX}/bin
.include "../../devel/googletest/buildlink3.mk"
.include "../../lang/python/extension.mk"
.include "../../mk/bsd.pkg.mk"
|