Skip to content

Commit

Permalink
cad/kicad-devel: Update to the latest commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Reifenberger authored and Michael Reifenberger committed Jan 8, 2023
1 parent 259e3fe commit 27c2e64
Show file tree
Hide file tree
Showing 7 changed files with 64 additions and 21 deletions.
18 changes: 11 additions & 7 deletions cad/kicad-devel/Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
PORTNAME= kicad
DISTVERSION= r${GIT_SRC_DATE}
PORTREVISION= 4
#PORTREVISION= 1
CATEGORIES= cad
PKGNAMESUFFIX= -devel
DIST_SUBDIR= ${PORTNAME}
Expand Down Expand Up @@ -35,13 +35,14 @@ OPTIONS_DEFINE= DOCS
PLIST_SUB= OPSYS=${OPSYS} \
DESKTOPDIR=${DESKTOPDIR:S|^${PREFIX}/||}

USES= desktop-file-utils shared-mime-info compiler:c++14-lang tar:bzip2 cmake:insource,noninja \
gettext pkgconfig python:3.5+ shebangfix ssl gl xorg gnome
USES= cmake:noninja compiler:c++11-lib desktop-file-utils gl \
gettext gnome pkgconfig python:3.5+ shared-mime-info shebangfix ssl \
tar:bzip2 xorg
USE_GITLAB= yes
GL_ACCOUNT= kicad/code
GL_PROJECT= kicad
GL_COMMIT= ${GIT_SRC_HASH}
USE_GL= gl glew glu glut
USE_GL= gl glu glut
USE_WX= 3.2
WX_COMPS= wx python:lib
USE_GNOME= atk cairo gtk30 gdkpixbuf2 pango
Expand All @@ -50,7 +51,7 @@ BINS= cvpcb eeschema gerbview kicad pcbnew
EXTRAS2RM= linux-non_unicode linux wings3d LINUX.README \
contrib_makefiles.txt running_kicad_under_W98.txt
SHEBANG_FILES= pcbnew/python/plugins/touch_slider_wizard.py
CXXFLAGS+= -I${WRKSRC} -I${WRKSRC}/include -I${LOCALBASE}/include
CXXFLAGS+= --std=c++11 -I${WRKSRC} -I${WRKSRC}/include -I${LOCALBASE}/include
CXXFLAGS_powerpc= -O0
CMAKE_ARGS= -DLOCALBASE="${LOCALBASE}" \
-DCMAKE_BUILD_TYPE="Debug" \
Expand Down Expand Up @@ -109,8 +110,8 @@ pre-configure:
${WRKSRC}/common/pgm_base.cpp

post-configure:
${REINPLACE_CMD} -e 's|#define HAVE_ISO646_H|//#define HAVE_ISO646_H|' \
${WRKSRC}/config.h
# ${REINPLACE_CMD} -e 's|#define HAVE_ISO646_H|//#define HAVE_ISO646_H|' \
# ${WRKSRC}/config.h
for f in `${FIND} ${WRKSRC} -name \*.make -o -name link.txt` ; do \
${REINPLACE_CMD} \
-e 's|CC = gcc|#CC = gcc|' \
Expand All @@ -124,6 +125,9 @@ post-configure:
-e 's/-pthread;-D_THREAD_SAFE/-pthread -D_THREAD_SAFE/g' \
$$f ; \
done
${REINPLACE_CMD} -e 's|/usr/local/bin/xdg-open|${LOCALBASE}/bin/xdg-open|' \
${WRKSRC}/common/pgm_base.cpp


pre-install:
@echo "${DATADIR}, ${DOCSDIR}"
Expand Down
4 changes: 2 additions & 2 deletions cad/kicad-devel/Makefile.git_rev
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
GIT_SRC_HASH= 4a66203493fcc58ac607449b04f9ba88c6c80cbc
GIT_SRC_DATE= 20221009002759
GIT_SRC_HASH= 063478b3dc2257641a43fa9830902fcdd89976d5
GIT_SRC_DATE= 20230108153438
6 changes: 3 additions & 3 deletions cad/kicad-devel/distinfo
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
TIMESTAMP = 1665327758
SHA256 (kicad/kicad/code-kicad-4a66203493fcc58ac607449b04f9ba88c6c80cbc_GL0.tar.gz) = cc9010995f71bbaca4e6dc8eb4d951f736fe6a6613cbd5321da88c716a5edaa4
SIZE (kicad/kicad/code-kicad-4a66203493fcc58ac607449b04f9ba88c6c80cbc_GL0.tar.gz) = 54098837
TIMESTAMP = 1673190180
SHA256 (kicad/kicad/code-kicad-063478b3dc2257641a43fa9830902fcdd89976d5_GL0.tar.gz) = cc4f560965f6b4001ac825e4d3a0e4a3dfa472a413a948d50aa6a7ecafb78576
SIZE (kicad/kicad/code-kicad-063478b3dc2257641a43fa9830902fcdd89976d5_GL0.tar.gz) = 55179322
10 changes: 5 additions & 5 deletions cad/kicad-devel/files/patch-eeschema_sim_sim__plot__frame.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
--- 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
--- eeschema/sim/sim_plot_frame.cpp.orig 2023-01-06 17:32:00.707624000 +0100
+++ eeschema/sim/sim_plot_frame.cpp 2023-01-06 17:35:04.237427000 +0100
@@ -156,15 +156,15 @@
Bind( EVT_SIM_CURSOR_UPDATE, &SIM_PLOT_FRAME::onCursorUpdate, this );

// Toolbar buttons
Expand All @@ -16,8 +16,8 @@
- 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, _( "Sim Command" ),
+ m_toolSettings = m_toolBar->AddTool( wxID_ANY, wxEmptyString,
KiBitmap( BITMAPS::config ), _( "Simulation parameters and settings" ), wxITEM_NORMAL );
KiBitmap( BITMAPS::config ), _( "Simulation command and settings" ), wxITEM_NORMAL );

// Start all toolbar buttons except settings as disabled
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
--- pcbnew/import_gfx/dxf_import_plugin.cpp.orig 2023-01-08 16:40:34.270267000 +0100
+++ pcbnew/import_gfx/dxf_import_plugin.cpp 2023-01-08 16:40:37.228586000 +0100
@@ -581,5 +581,5 @@

VECTOR2D center( mapX( centerCoords.x ), mapY( centerCoords.y ) );
- VECTOR2D major( mapX( majorCoords.x ), mapY( majorCoords.y ) );
+ VECTOR2D _major( mapX( majorCoords.x ), mapY( majorCoords.y ) );

// DXF elliptical arcs store their angles in radians (unlike circular arcs which use degrees)
@@ -599,5 +599,5 @@
if( aData.ratio == 1.0 )
{
- double radius = major.EuclideanNorm();
+ double radius = _major.EuclideanNorm();

if( startAngle == endAngle )
@@ -617,5 +617,5 @@

std::vector<BEZIER<double>> splines;
- ELLIPSE<double> ellipse( center, major, aData.ratio, startAngle, endAngle );
+ ELLIPSE<double> ellipse( center, _major, aData.ratio, startAngle, endAngle );

TransformEllipseToBeziers( ellipse, splines );
@@ -631,6 +631,6 @@

// Naive bounding
- updateImageLimits( center + major );
- updateImageLimits( center - major );
+ updateImageLimits( center + _major );
+ updateImageLimits( center - _major );
}

10 changes: 10 additions & 0 deletions cad/kicad-devel/files/patch-thirdparty_glew_CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
--- thirdparty/glew/CMakeLists.txt.orig 2022-05-07 15:44:23 +0200
+++ thirdparty/glew/CMakeLists.txt
@@ -5,6 +5,7 @@
# The actual include directories will be added to the global include paths as
# system headers
target_include_directories( glew PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}/include" )
+target_include_directories( glew SYSTEM PRIVATE "${CMAKE_INSTALL_PREFIX}/include" )

# Definitions for compiling GLEW staticly for EGL (extracted from the main GLEW CMakeLists.txt file)
add_definitions( -DGLEW_STATIC )
5 changes: 1 addition & 4 deletions cad/kicad-devel/pkg-plist
Original file line number Diff line number Diff line change
Expand Up @@ -17,17 +17,13 @@ bin/kicad-cli
bin/pcb_calculator
bin/pcbnew
bin/pl_editor
include/argparse/argparse.hpp
lib/cmake/argparse/argparseConfig-version.cmake
lib/cmake/argparse/argparseConfig.cmake
lib/kicad/plugins/3d/libs3d_plugin_idf.so
lib/kicad/plugins/3d/libs3d_plugin_oce.so
lib/kicad/plugins/3d/libs3d_plugin_vrml.so
lib/libkicad_3dsg.so
lib/libkicad_3dsg.so.2.0.0
%%PYTHON_SITELIBDIR%%/_pcbnew.so
%%PYTHON_SITELIBDIR%%/pcbnew.py
libdata/pkgconfig/argparse.pc
%%DESKTOPDIR%%/org.kicad.bitmap2component.desktop
%%DESKTOPDIR%%/org.kicad.eeschema.desktop
%%DESKTOPDIR%%/org.kicad.gerbview.desktop
Expand Down Expand Up @@ -303,6 +299,7 @@ share/icons/hicolor/scalable/mimetypes/application-x-kicad-schematic.svg
%%DATADIR%%/plugins/README-bom.txt
%%DATADIR%%/plugins/bom_csv_grouped_by_value.py
%%DATADIR%%/plugins/bom_csv_grouped_by_value_with_fp.py
%%DATADIR%%/plugins/bom_csv_grouped_extra.py
%%DATADIR%%/plugins/bom_csv_sorted_by_ref.py
%%DATADIR%%/plugins/bom_html_grouped_by_value.py
%%DATADIR%%/plugins/bom_html_with_advanced_grouping.py
Expand Down

0 comments on commit 27c2e64

Please sign in to comment.