Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 2 Oct 2013 06:19:40 +0000 (UTC)
From:      John Marino <marino@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r329015 - in head/chinese/fqterm: . files
Message-ID:  <201310020619.r926Jeo8024826@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: marino
Date: Wed Oct  2 06:19:40 2013
New Revision: 329015
URL: http://svnweb.freebsd.org/changeset/ports/329015

Log:
  chinese/fqterm: add <unistd.h>, fix -fpermissive on modern compilers
  
  The source tarball has DOS line endings, but only one file was converted.
  Two of the four patches were created with DOS line endings, so for
  consistency sake, USE_DOS2UNIX was changed to "yes" and the DOS line
  endings were removed from existing patches.
  
  Approved by:	portmgr (bapt, implicit)

Added:
  head/chinese/fqterm/files/patch-src_common_fqterm__trace.h   (contents, props changed)
  head/chinese/fqterm/files/patch-src_fqterm_fqterm__wndmgr.cpp   (contents, props changed)
Modified:
  head/chinese/fqterm/Makefile
  head/chinese/fqterm/files/patch-CMakeLists.txt.linux
  head/chinese/fqterm/files/patch-src_ui-fqterm_tool_button.h

Modified: head/chinese/fqterm/Makefile
==============================================================================
--- head/chinese/fqterm/Makefile	Wed Oct  2 03:24:25 2013	(r329014)
+++ head/chinese/fqterm/Makefile	Wed Oct  2 06:19:40 2013	(r329015)
@@ -19,7 +19,7 @@ USE_QT4=	gui network script qt3support i
 		qmake_build moc_build rcc_build uic_build linguist_build
 
 HAS_CONFIGURE=	yes
-USE_DOS2UNIX=	src/ui/popwidget.cpp
+USE_DOS2UNIX=	yes
 USES=		cmake:outsource
 CMAKE_ARGS=	-Wno-dev
 WRKSRC=		${WRKDIR}/${PORTNAME}

Modified: head/chinese/fqterm/files/patch-CMakeLists.txt.linux
==============================================================================
--- head/chinese/fqterm/files/patch-CMakeLists.txt.linux	Wed Oct  2 03:24:25 2013	(r329014)
+++ head/chinese/fqterm/files/patch-CMakeLists.txt.linux	Wed Oct  2 06:19:40 2013	(r329015)
@@ -1,37 +1,37 @@
 --- CMakeLists.txt.linux.orig	2008-05-19 17:36:29.000000000 +0800
 +++ CMakeLists.txt.linux	2008-06-21 08:50:58.000000000 +0800
 @@ -7,6 +7,7 @@
- endif(FQTERM_USE_STATIC_QT)
- 
- ADD_DEFINITIONS(-Wall)
-+ADD_DEFINITIONS(-D_OS_FREEBSD_)
- ADD_DEFINITIONS(-DFQTERM_VERSION_STRING="\\"${FQTERM_VERSION}\\"")
- 
- add_subdirectory(src)
+ endif(FQTERM_USE_STATIC_QT)
+ 
+ ADD_DEFINITIONS(-Wall)
++ADD_DEFINITIONS(-D_OS_FREEBSD_)
+ ADD_DEFINITIONS(-DFQTERM_VERSION_STRING="\\"${FQTERM_VERSION}\\"")
+ 
+ add_subdirectory(src)
 @@ -42,6 +43,18 @@
-   ${QT_PLUGINS_DIR}/codecs/libqtwcodecs.a
-   jpeg
-   )
-+else(FQTERM_USE_STATIC_QT)
-+  set(FQ_QT_SHARED_PLUGINS
-+  ${QT_PLUGINS_DIR}/imageformats/libqgif.so
-+  ${QT_PLUGINS_DIR}/imageformats/libqjpeg.so
-+  ${QT_PLUGINS_DIR}/imageformats/libqmng.so
-+  ${QT_PLUGINS_DIR}/imageformats/libqsvg.so
-+  ${QT_PLUGINS_DIR}/imageformats/libqtiff.so
-+  ${QT_PLUGINS_DIR}/codecs/libqcncodecs.so
-+  ${QT_PLUGINS_DIR}/codecs/libqjpcodecs.so
-+  ${QT_PLUGINS_DIR}/codecs/libqkrcodecs.so
-+  ${QT_PLUGINS_DIR}/codecs/libqtwcodecs.so
-+  )
- endif(FQTERM_USE_STATIC_QT)
- 
- target_link_libraries(fqterm.bin
+   ${QT_PLUGINS_DIR}/codecs/libqtwcodecs.a
+   jpeg
+   )
++else(FQTERM_USE_STATIC_QT)
++  set(FQ_QT_SHARED_PLUGINS
++  ${QT_PLUGINS_DIR}/imageformats/libqgif.so
++  ${QT_PLUGINS_DIR}/imageformats/libqjpeg.so
++  ${QT_PLUGINS_DIR}/imageformats/libqmng.so
++  ${QT_PLUGINS_DIR}/imageformats/libqsvg.so
++  ${QT_PLUGINS_DIR}/imageformats/libqtiff.so
++  ${QT_PLUGINS_DIR}/codecs/libqcncodecs.so
++  ${QT_PLUGINS_DIR}/codecs/libqjpcodecs.so
++  ${QT_PLUGINS_DIR}/codecs/libqkrcodecs.so
++  ${QT_PLUGINS_DIR}/codecs/libqtwcodecs.so
++  )
+ endif(FQTERM_USE_STATIC_QT)
+ 
+ target_link_libraries(fqterm.bin
 @@ -54,6 +67,7 @@
-   ${QT_QTNETWORK_LIBRARIES}
-   ${QT_QTSCRIPT_LIBRARIES}  
-   ${FQ_QT_STATIC_PLUGINS}
-+  ${FQ_QT_SHARED_PLUGINS}
-   ${QT_LIBRARIES}
-   ${OPENSSL_LIBRARIES}
- )
+   ${QT_QTNETWORK_LIBRARIES}
+   ${QT_QTSCRIPT_LIBRARIES}  
+   ${FQ_QT_STATIC_PLUGINS}
++  ${FQ_QT_SHARED_PLUGINS}
+   ${QT_LIBRARIES}
+   ${OPENSSL_LIBRARIES}
+ )

Added: head/chinese/fqterm/files/patch-src_common_fqterm__trace.h
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/chinese/fqterm/files/patch-src_common_fqterm__trace.h	Wed Oct  2 06:19:40 2013	(r329015)
@@ -0,0 +1,10 @@
+--- src/common/fqterm_trace.h.orig	2013-10-02 06:06:02.000000000 +0000
++++ src/common/fqterm_trace.h
+@@ -21,6 +21,7 @@
+ #ifndef FQTERM_TRACE_H
+ #define FQTERM_TRACE_H
+ 
++#include <unistd.h>
+ #include <cassert>
+ #include <QtDebug>
+ #include <QFileInfo>

Added: head/chinese/fqterm/files/patch-src_fqterm_fqterm__wndmgr.cpp
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/chinese/fqterm/files/patch-src_fqterm_fqterm__wndmgr.cpp	Wed Oct  2 06:19:40 2013	(r329015)
@@ -0,0 +1,11 @@
+--- src/fqterm/fqterm_wndmgr.cpp.orig	2013-10-02 06:06:59.000000000 +0000
++++ src/fqterm/fqterm_wndmgr.cpp
+@@ -53,7 +53,7 @@ int FQTermWndMgr::addWindow(FQTermWindow
+ 
+   Q_ASSERT(mw != NULL);
+   termWindows_.append(mw);
+-  Q_ASSERT(qtab != QString::QString());
++  Q_ASSERT(qtab != QString());
+   tabCaptions_.append(qtab);
+   icons_.append(icon);
+ 

Modified: head/chinese/fqterm/files/patch-src_ui-fqterm_tool_button.h
==============================================================================
--- head/chinese/fqterm/files/patch-src_ui-fqterm_tool_button.h	Wed Oct  2 03:24:25 2013	(r329014)
+++ head/chinese/fqterm/files/patch-src_ui-fqterm_tool_button.h	Wed Oct  2 06:19:40 2013	(r329015)
@@ -1,11 +1,11 @@
 --- src/ui/fqterm_tool_button.h.orig	2008-05-18 08:46:46.000000000 +0800
 +++ src/ui/fqterm_tool_button.h	2008-06-21 08:52:08.000000000 +0800
 @@ -21,7 +21,7 @@
- #ifndef FQTERM_TOOL_BUTTON_H
- #define FQTERM_TOOL_BUTTON_H
- 
--#include <qtoolbutton.h>
-+#include <QToolButton>
- 
- namespace FQTerm {
- 
+ #ifndef FQTERM_TOOL_BUTTON_H
+ #define FQTERM_TOOL_BUTTON_H
+ 
+-#include <qtoolbutton.h>
++#include <QToolButton>
+ 
+ namespace FQTerm {
+ 



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