Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 21 Jan 2018 02:07:42 +0000 (UTC)
From:      Mikhail Teterin <mi@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r459563 - head/devel/qmake/files
Message-ID:  <201801210207.w0L27gFa041976@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: mi
Date: Sun Jan 21 02:07:42 2018
New Revision: 459563
URL: https://svnweb.freebsd.org/changeset/ports/459563

Log:
  Make compilable with latest clang and -std=c++17

Added:
  head/devel/qmake/files/patch-generators_c++17   (contents, props changed)
Modified:
  head/devel/qmake/files/Makefile.bsd

Modified: head/devel/qmake/files/Makefile.bsd
==============================================================================
--- head/devel/qmake/files/Makefile.bsd	Sun Jan 21 01:35:58 2018	(r459562)
+++ head/devel/qmake/files/Makefile.bsd	Sun Jan 21 02:07:42 2018	(r459563)
@@ -19,7 +19,7 @@ CXXFLAGS+=-I${.CURDIR:H}/src/$s
 CXXFLAGS+=-I${.CURDIR}/generators$g
 .endfor
 
-CXXFLAGS+=-I. -I"${FILESDIR}"
+CXXFLAGS+=-I. -I"${FILESDIR}" -Dregister=
 
 CXXFLAGS+=-DQT_NO_TEXTCODEC -DQT_NO_UNICODETABLES -DQT_NO_COMPONENT \
 	-DQT_NO_STL -DQT_NO_COMPRESS -DQT_INSTALL_DATA="\"${SHAREDIR}\""

Added: head/devel/qmake/files/patch-generators_c++17
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/qmake/files/patch-generators_c++17	Sun Jan 21 02:07:42 2018	(r459563)
@@ -0,0 +1,62 @@
+Insert the spaces between literals to satisfy clang with c++17 (or
+even c++11) standard.
+
+	-mi
+
+--- generators/win32/borland_bmake.cpp	2007-02-02 14:01:28 UTC
++++ generators/win32/borland_bmake.cpp
+@@ -383,7 +383,7 @@ BorlandMakefileGenerator::init()
+     if(project->isEmpty("QMAKE_INSTALL_DIR"))
+ 	project->variables()["QMAKE_INSTALL_DIR"].append("$(COPY_DIR)");
+ 
+-    bool is_qt = (project->first("TARGET") == "qt"QTDLL_POSTFIX || project->first("TARGET") == "qtmt"QTDLL_POSTFIX);
++    bool is_qt = (project->first("TARGET") == "qt" QTDLL_POSTFIX || project->first("TARGET") == "qtmt" QTDLL_POSTFIX);
+     QStringList &configs = project->variables()["CONFIG"];
+     if (project->isActiveConfig("shared"))
+ 	project->variables()["DEFINES"].append("QT_DLL");
+--- generators/win32/mingw_make.cpp	2007-02-02 14:01:28 UTC
++++ generators/win32/mingw_make.cpp
+@@ -394,7 +394,7 @@ MingwMakefileGenerator::init()
+     if(project->isEmpty("QMAKE_INSTALL_DIR"))
+ 	project->variables()["QMAKE_INSTALL_DIR"].append("$(COPY_DIR)");
+ 
+-    bool is_qt = (project->first("TARGET") == "qt"QTDLL_POSTFIX || project->first("TARGET") == "qt-mt"QTDLL_POSTFIX);
++    bool is_qt = (project->first("TARGET") == "qt" QTDLL_POSTFIX || project->first("TARGET") == "qt-mt" QTDLL_POSTFIX);
+     project->variables()["QMAKE_ORIG_TARGET"] = project->variables()["TARGET"];
+ 
+     // LIBS defined in Profile comes first for gcc
+--- generators/win32/msvc_dsp.cpp	2007-02-02 14:01:27 UTC
++++ generators/win32/msvc_dsp.cpp
+@@ -620,7 +620,7 @@ DspMakefileGenerator::init()
+     if ( project->variables()["QMAKESPEC"].isEmpty() )
+ 	project->variables()["QMAKESPEC"].append( getenv("QMAKESPEC") );
+ 
+-    bool is_qt = (project->first("TARGET") == "qt"QTDLL_POSTFIX || project->first("TARGET") == "qt-mt"QTDLL_POSTFIX);
++    bool is_qt = (project->first("TARGET") == "qt" QTDLL_POSTFIX || project->first("TARGET") == "qt-mt" QTDLL_POSTFIX);
+     project->variables()["QMAKE_ORIG_TARGET"] = project->variables()["TARGET"];
+ 
+     QStringList &configs = project->variables()["CONFIG"];
+--- generators/win32/msvc_nmake.cpp	2007-02-02 14:01:28 UTC
++++ generators/win32/msvc_nmake.cpp
+@@ -479,7 +479,7 @@ NmakeMakefileGenerator::init()
+     if(project->isEmpty("QMAKE_INSTALL_DIR"))
+ 	project->variables()["QMAKE_INSTALL_DIR"].append("$(COPY_DIR)");
+ 
+-    bool is_qt = (project->first("TARGET") == "qt"QTDLL_POSTFIX || project->first("TARGET") == "qt-mt"QTDLL_POSTFIX);
++    bool is_qt = (project->first("TARGET") == "qt" QTDLL_POSTFIX || project->first("TARGET") == "qt-mt" QTDLL_POSTFIX);
+     project->variables()["QMAKE_ORIG_TARGET"] = project->variables()["TARGET"];
+ 
+     QString targetfilename = project->variables()["TARGET"].first();
+--- generators/win32/msvc_vcproj.cpp	2007-02-02 14:01:28 UTC
++++ generators/win32/msvc_vcproj.cpp
+@@ -1094,8 +1094,8 @@ void VcprojGenerator::initOld()
+ 	project->variables()["QMAKESPEC"].append( getenv("QMAKESPEC") );
+ 
+     bool is_qt =
+-	( project->first("TARGET") == "qt"QTDLL_POSTFIX ||
+-	  project->first("TARGET") == "qt-mt"QTDLL_POSTFIX );
++	( project->first("TARGET") == "qt" QTDLL_POSTFIX ||
++	  project->first("TARGET") == "qt-mt" QTDLL_POSTFIX );
+ 
+    QStringList &configs = project->variables()["CONFIG"];
+ 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201801210207.w0L27gFa041976>