2012-10-31 12:16:30 +01:00
|
|
|
# $NetBSD: Makefile,v 1.2 2012/10/31 11:17:01 asau Exp $
|
Import gmock-1.6.0 (googlemock) as devel/gmock from wip/gmock
Inspired by jMock, EasyMock, and Hamcrest, and designed with C++'s
specifics in mind, Google C++ Mocking Framework (or Google Mock for
short) is a library for writing and using C++ mock classes. Google Mock:
* lets you create mock classes trivially using simple macros,
* supports a rich set of matchers and actions,
* handles unordered, partially ordered, or completely ordered expectations,
* is extensible by users, and
* works on Linux, Mac OS X, Windows, Windows Mobile, minGW, and Symbian.
2011-07-29 17:18:29 +02:00
|
|
|
#
|
|
|
|
|
|
|
|
DISTNAME= gmock-1.6.0
|
|
|
|
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
|
|
|
|
|
|
|
|
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"
|