1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-19 03:52:17 +00:00
freebsd-ports/devel/googletest/Makefile
Jan Beich dadc9a923c devel/googletest: oops, builds fine with clang++ -stdlib=libstdc++ -std=gnu++03
FreeBSD 9.x defaulted to GCC 4.2 but could use Clang, so c++11-lang
used Clang while c++11-lib use lang/gcc* bun nowadays the difference
no longer exists. While testing previous change I forgot to account
that newer Clang versions have switched to C++14 by default while
libstdc++ 4.2 doesn't support C++11 or newer.

PR:		231835
2018-10-01 00:31:09 +00:00

37 lines
943 B
Makefile

# Created by: Cheng-Lung Sung <clsung@FreeBSD.org>
# $FreeBSD$
PORTNAME= googletest
DISTVERSIONPREFIX= release-
DISTVERSION= 1.8.1
CATEGORIES= devel
MAINTAINER= jbeich@FreeBSD.org
COMMENT= Framework for writing C++ tests on a variety of platforms
LICENSE= BSD3CLAUSE
LICENSE_FILE= ${WRKSRC}/LICENSE
USE_GITHUB= yes
GH_ACCOUNT= google
USES= autoreconf compiler:c++11-lang libtool
WRKSRC_SUBDIR= ${PORTNAME}
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:
# enable vendor make install again (revert 661758e)
@${REINPLACE_CMD} -E 's/install-(exec|data)-local/&-dummy/' \
${WRKSRC}/Makefile.am
post-install:
${INSTALL_SCRIPT} ${WRKSRC}/scripts/gtest-config ${STAGEDIR}${PREFIX}/bin
.include <bsd.port.mk>