pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/x11/qt4-libs Move C++11 setting before the first inclu...
details: https://anonhg.NetBSD.org/pkgsrc/rev/792e49eadbf2
branches: trunk
changeset: 362127:792e49eadbf2
user: joerg <joerg%pkgsrc.org@localhost>
date: Fri May 05 17:38:00 2017 +0000
description:
Move C++11 setting before the first inclusion of compiler.mk. Reuse the
results instead of multiply inclusions.
diffstat:
x11/qt4-libs/Makefile | 5 +----
x11/qt4-libs/Makefile.common | 4 +++-
x11/qt4-libs/hacks.mk | 4 +---
3 files changed, 5 insertions(+), 8 deletions(-)
diffs (60 lines):
diff -r 09e130066c04 -r 792e49eadbf2 x11/qt4-libs/Makefile
--- a/x11/qt4-libs/Makefile Fri May 05 16:28:13 2017 +0000
+++ b/x11/qt4-libs/Makefile Fri May 05 17:38:00 2017 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.116 2017/05/03 08:38:46 jperkin Exp $
+# $NetBSD: Makefile,v 1.117 2017/05/05 17:38:00 joerg Exp $
PKGNAME= qt4-libs-${QTVERSION}
PKGREVISION= 6
@@ -28,9 +28,6 @@
CONFIGURE_ARGS+= -iconv
-USE_LANGUAGES+= c++11
-
-.include "../../mk/compiler.mk"
.if !empty(PKGSRC_COMPILER:Mclang)
CXXFLAGS+= -Wno-c++11-narrowing
. if empty(MACHINE_PLATFORM:MDarwin-*-*)
diff -r 09e130066c04 -r 792e49eadbf2 x11/qt4-libs/Makefile.common
--- a/x11/qt4-libs/Makefile.common Fri May 05 16:28:13 2017 +0000
+++ b/x11/qt4-libs/Makefile.common Fri May 05 17:38:00 2017 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.common,v 1.41 2016/02/25 08:27:05 jperkin Exp $
+# $NetBSD: Makefile.common,v 1.42 2017/05/05 17:38:00 joerg Exp $
# used by x11/qt4-docs/Makefile
# used by x11/qt4-libs/Makefile
# used by x11/qt4-mng/Makefile
@@ -63,6 +63,8 @@
# avoid creating a .qt directory in the users home directory
SCRIPTS_ENV+= HOME=${WRKDIR}
+USE_LANGUAGES+= c++11
+
.include "../../mk/compiler.mk"
.if ${OPSYS} == "SunOS"
diff -r 09e130066c04 -r 792e49eadbf2 x11/qt4-libs/hacks.mk
--- a/x11/qt4-libs/hacks.mk Fri May 05 16:28:13 2017 +0000
+++ b/x11/qt4-libs/hacks.mk Fri May 05 17:38:00 2017 +0000
@@ -1,10 +1,9 @@
-# $NetBSD: hacks.mk,v 1.3 2014/12/15 11:46:36 jperkin Exp $
+# $NetBSD: hacks.mk,v 1.4 2017/05/05 17:38:00 joerg Exp $
### [Wed Aug 3 12:18:16 UTC 2011 : tron]
### If "qmake" is build with "-O2" or better with "g++" under Mac OS X the
### resulting binary will crash. This fixes PR pkg/44716 by Richard Hansen.
.if ${OPSYS} == "Darwin"
-. include "../../mk/compiler.mk"
. if !empty(CC_VERSION:Mgcc*)
PKG_HACKS+= macosx-codegen
BUILDLINK_TRANSFORM+= opt:-O[0-9]*:-O1
@@ -16,7 +15,6 @@
### when building gui/painting/qdrawhelper_mmx.cpp.
### Building with -O1 instead of -O2 seems to work around the problem.
.if ${OPSYS} == "NetBSD" && ${MACHINE_ARCH} == "i386"
-. include "../../mk/compiler.mk"
. if !empty(CC_VERSION:Mgcc-4.5.*)
PKG_HACKS+= pr46978
SUBST_CLASSES+= pr46978
Home |
Main Index |
Thread Index |
Old Index