pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/devel/googletest googletest: Require a c++11 compiler ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/a85333bf4678
branches:  trunk
changeset: 441073:a85333bf4678
user:      nia <nia%pkgsrc.org@localhost>
date:      Sun Oct 25 12:59:26 2020 +0000

description:
googletest: Require a c++11 compiler with GCC_REQD.

Do not set USE_LANGUAGES, this passes -std=c++11 by itself.

diffstat:

 devel/googletest/Makefile      |  7 +++++--
 devel/googletest/buildlink3.mk |  4 +++-
 2 files changed, 8 insertions(+), 3 deletions(-)

diffs (39 lines):

diff -r 544b60d6f91a -r a85333bf4678 devel/googletest/Makefile
--- a/devel/googletest/Makefile Sun Oct 25 12:56:55 2020 +0000
+++ b/devel/googletest/Makefile Sun Oct 25 12:59:26 2020 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.18 2020/04/07 21:36:58 adam Exp $
+# $NetBSD: Makefile,v 1.19 2020/10/25 12:59:26 nia Exp $
 
 DISTNAME=      googletest-1.10.0
 CATEGORIES=    devel
@@ -13,7 +13,10 @@
 INSTALLATION_DIRS=     bin
 
 USE_CMAKE=             yes
-USE_LANGUAGES=         c c++11
+USE_LANGUAGES=         c c++
+
+# cc1plus: error: unrecognized command line option "-std=c++11"
+GCC_REQD+=             4.8
 
 PKGCONFIG_OVERRIDE+=   googlemock/cmake/gmock.pc.in
 PKGCONFIG_OVERRIDE+=   googlemock/cmake/gmock_main.pc.in
diff -r 544b60d6f91a -r a85333bf4678 devel/googletest/buildlink3.mk
--- a/devel/googletest/buildlink3.mk    Sun Oct 25 12:56:55 2020 +0000
+++ b/devel/googletest/buildlink3.mk    Sun Oct 25 12:59:26 2020 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: buildlink3.mk,v 1.2 2020/04/07 21:36:58 adam Exp $
+# $NetBSD: buildlink3.mk,v 1.3 2020/10/25 12:59:26 nia Exp $
 
 BUILDLINK_TREE+=       googletest
 
@@ -8,6 +8,8 @@
 BUILDLINK_API_DEPENDS.googletest+=     googletest>=1.4.0
 BUILDLINK_DEPMETHOD.googletest?=       build
 BUILDLINK_PKGSRCDIR.googletest?=       ../../devel/googletest
+
+GCC_REQD+=     4.8
 .endif # GOOGLETEST_BUILDLINK3_MK
 
 BUILDLINK_TREE+=       -googletest



Home | Main Index | Thread Index | Old Index