git: d775565a3b3b - main - cad/kicad-devel: use wx 32

From: Loïc Bartoletti <lbartoletti_at_FreeBSD.org>
Date: Tue, 25 Oct 2022 05:44:24 UTC
The branch main has been updated by lbartoletti:

URL: https://cgit.FreeBSD.org/ports/commit/?id=d775565a3b3bfa4f3cb935a471f347aea64dcdd5

commit d775565a3b3bfa4f3cb935a471f347aea64dcdd5
Author:     Loïc Bartoletti <lbartoletti@FreeBSD.org>
AuthorDate: 2022-10-11 21:13:26 +0000
Commit:     Loïc Bartoletti <lbartoletti@FreeBSD.org>
CommitDate: 2022-10-25 05:44:04 +0000

    cad/kicad-devel: use wx 32
    
    PR:             265093
---
 cad/kicad-devel/Makefile                           |  4 +--
 .../files/patch-eeschema_sim_sim__plot__frame.cpp  | 23 +++++++++++++++++
 .../files/patch-thirdparty_nanodbc_CMakeLists.txt  | 30 ++++++++++++++++++++++
 3 files changed, 55 insertions(+), 2 deletions(-)

diff --git a/cad/kicad-devel/Makefile b/cad/kicad-devel/Makefile
index 4802cb5a8bae..5c1eb5d720a9 100644
--- a/cad/kicad-devel/Makefile
+++ b/cad/kicad-devel/Makefile
@@ -1,6 +1,6 @@
 PORTNAME=	kicad
 DISTVERSION=	r${GIT_SRC_DATE}
-PORTREVISION=	2
+PORTREVISION=	3
 CATEGORIES=	cad
 PKGNAMESUFFIX=	-devel
 DIST_SUBDIR=		${PORTNAME}
@@ -42,7 +42,7 @@ GL_ACCOUNT=	kicad/code
 GL_PROJECT=	kicad
 GL_COMMIT=	${GIT_SRC_HASH}
 USE_GL=		gl glew glu glut
-USE_WX=		3.1
+USE_WX=		3.2
 WX_COMPS=	wx python:lib
 USE_GNOME=	atk cairo gtk30 gdkpixbuf2 pango
 USE_XORG+=	ice pixman x11 xext
diff --git a/cad/kicad-devel/files/patch-eeschema_sim_sim__plot__frame.cpp b/cad/kicad-devel/files/patch-eeschema_sim_sim__plot__frame.cpp
new file mode 100644
index 000000000000..a7b40f4b3256
--- /dev/null
+++ b/cad/kicad-devel/files/patch-eeschema_sim_sim__plot__frame.cpp
@@ -0,0 +1,23 @@
+--- eeschema/sim/sim_plot_frame.cpp.orig	2022-09-14 16:35:24 UTC
++++ eeschema/sim/sim_plot_frame.cpp
+@@ -167,15 +167,15 @@ SIM_PLOT_FRAME::SIM_PLOT_FRAME( KIWAY* aKiway, wxWindo
+     Bind( EVT_SIM_CURSOR_UPDATE, &SIM_PLOT_FRAME::onCursorUpdate, this );
+ 
+     // Toolbar buttons
+-    m_toolSimulate = m_toolBar->AddTool( ID_SIM_RUN, _( "Run/Stop Simulation" ),
++    m_toolSimulate = m_toolBar->AddTool( ID_SIM_RUN, wxEmptyString,
+             KiBitmap( BITMAPS::sim_run ), _( "Run Simulation" ), wxITEM_NORMAL );
+-    m_toolAddSignals = m_toolBar->AddTool( ID_SIM_ADD_SIGNALS, _( "Add Signals" ),
++    m_toolAddSignals = m_toolBar->AddTool( ID_SIM_ADD_SIGNALS, wxEmptyString,
+             KiBitmap( BITMAPS::sim_add_signal ), _( "Add signals to plot" ), wxITEM_NORMAL );
+-    m_toolProbe = m_toolBar->AddTool( ID_SIM_PROBE,  _( "Probe" ),
++    m_toolProbe = m_toolBar->AddTool( ID_SIM_PROBE,  wxEmptyString,
+             KiBitmap( BITMAPS::sim_probe ), _( "Probe signals on the schematic" ), wxITEM_NORMAL );
+-    m_toolTune = m_toolBar->AddTool( ID_SIM_TUNE, _( "Tune" ),
++    m_toolTune = m_toolBar->AddTool( ID_SIM_TUNE, wxEmptyString,
+             KiBitmap( BITMAPS::sim_tune ), _( "Tune component values" ), wxITEM_NORMAL );
+-    m_toolSettings = m_toolBar->AddTool( wxID_ANY, _( "Sim Parameters" ),
++    m_toolSettings = m_toolBar->AddTool( wxID_ANY, wxEmptyString,
+             KiBitmap( BITMAPS::config ), _( "Simulation parameters and settings" ), wxITEM_NORMAL );
+ 
+     // Start all toolbar buttons except settings as disabled
diff --git a/cad/kicad-devel/files/patch-thirdparty_nanodbc_CMakeLists.txt b/cad/kicad-devel/files/patch-thirdparty_nanodbc_CMakeLists.txt
new file mode 100644
index 000000000000..a4b434935ab1
--- /dev/null
+++ b/cad/kicad-devel/files/patch-thirdparty_nanodbc_CMakeLists.txt
@@ -0,0 +1,30 @@
+--- thirdparty/nanodbc/CMakeLists.txt.orig	2022-09-14 12:06:32 UTC
++++ thirdparty/nanodbc/CMakeLists.txt
+@@ -165,16 +165,11 @@ elseif(MINGW)
+ endif()
+ 
+ ########################################
+-## Mac OS X specifics for targets
++## FreeBSD specifics for targets
+ ########################################
+-if(APPLE)
+-  set(CMAKE_MACOSX_RPATH ON)
+-  message(STATUS "Use rpaths on Mac OS X - ${CMAKE_MACOSX_RPATH}")
+-
+-  # AppleClang complains of unused `-I/path/` arguments.
+-  # These are harmless and can be safely ignored.
+-  set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-unused-command-line-argument")
+-endif()
++# Clang complains of unused `-I/path/` arguments.
++# These are harmless and can be safely ignored.
++set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-unused-command-line-argument")
+ 
+ ########################################
+ ## library target
+@@ -202,4 +197,4 @@ endif()
+ if(NANODBC_ENABLE_UNICODE)
+   add_compile_definitions(NANODBC_ENABLE_UNICODE)
+   target_compile_definitions(nanodbc PUBLIC NANODBC_ENABLE_UNICODE)
+-endif()
+\ No newline at end of file
++endif()