diff --git a/cad/kicad/Makefile b/cad/kicad/Makefile index 5ef818579d2a..028c5aa600fc 100644 --- a/cad/kicad/Makefile +++ b/cad/kicad/Makefile @@ -1,68 +1,69 @@ # Created by: Thierry Thomas PORTNAME= kicad PORTVERSION= 6.0.5 +PORTREVISION= 1 PORTEPOCH= 2 CATEGORIES= cad MASTER_SITES= https://gitlab.com/${PORTNAME}/code/${PORTNAME}/-/archive/${DISTVERSION}/ MAINTAINER= cmt@FreeBSD.org COMMENT= Schematic and PCB editing software LICENSE= GPLv2 BUILD_DEPENDS= ${LOCALBASE}/include/glm/glm.hpp:math/glm \ swig:devel/swig LIB_DEPENDS= libboost_thread.so:devel/boost-libs \ libharfbuzz.so:print/harfbuzz \ libngspice.so:cad/ngspice_rework@shlib \ libTKernel.so:cad/opencascade \ libpixman-1.so:x11/pixman \ libpng.so:graphics/png \ libcurl.so:ftp/curl \ libGLEW-wayland.so:graphics/glew-wayland CONFLICTS_INSTALL= kicad-devel # bin/_cvpcb.kiface USES= cmake:noninja compiler:c++11-lib desktop-file-utils gl \ gnome pkgconfig python:3.5+ shared-mime-info shebangfix ssl \ tar:bz2 xorg SHEBANG_FILES= pcbnew/python/plugins/touch_slider_wizard.py USE_XORG= ice x11 xext -USE_GL= gl glew glu glut +USE_GL= gl glu glut USE_WX= 3.1 WX_COMPS= python:lib wx USE_GNOME= atk cairo gdkpixbuf2 gtk30 pango CXXFLAGS+= --std=c++11 -I${WRKSRC}/include -I${LOCALBASE}/include CMAKE_ARGS= -DwxWidgets_CONFIG_EXECUTABLE=${WX_CONFIG} \ -DwxWidgets_USE_UNICODE=ON \ -DwxWidgets_wxrc_EXECUTABLE=${WXRC_CMD} \ -DKICAD_SCRIPTING_WXPYTHON=ON \ -DKICAD_USE_OCC=ON \ -DKICAD_USE_EGL=ON \ - -DKICAD_USE_BUNDLED_GLEW=OFF \ + -DKICAD_USE_BUNDLED_GLEW=ON \ -DOCC_INCLUDE_DIR=${LOCALBASE}/include/OpenCASCADE USE_LDCONFIG= yes PLIST_SUB= DESKTOPDIR=${DESKTOPDIR:S|^${PREFIX}/||} OPTIONS_DEFINE= DOCS DOXYGEN NLS OPTIONS_SUB= yes NLS_USES= gettext DOXYGEN_VARS= LICENSE+=GFDL LICENSE_COMB=multi DOXYGEN_BUILD_DEPENDS= doxygen:devel/doxygen DOXYGEN_IMPLIES= DOCS DOXYGEN_ALL_TARGET= all doxygen-docs DOXYGEN_PORTDOCS= doxygen pre-configure: ${REINPLACE_CMD} -e 's|/usr/local/bin/xdg-open|${LOCALBASE}/bin/xdg-open|' \ ${WRKSRC}/common/pgm_base.cpp post-install-DOCS-on: (cd ${WRKSRC}/Documentation && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR}) .include diff --git a/cad/kicad/files/patch-3d-viewer_3d__cache_3d__cache.cpp b/cad/kicad/files/patch-3d-viewer_3d__cache_3d__cache.cpp new file mode 100644 index 000000000000..d33fb5620970 --- /dev/null +++ b/cad/kicad/files/patch-3d-viewer_3d__cache_3d__cache.cpp @@ -0,0 +1,12 @@ +--- 3d-viewer/3d_cache/3d_cache.cpp.orig 2022-05-06 18:57:13 +0200 ++++ 3d-viewer/3d_cache/3d_cache.cpp +@@ -199,7 +199,8 @@ + FlushCache(); + + // We'll delete ".3dc" cache files older than this many days +- int clearCacheInterval = commonSettings->m_System.clear_3d_cache_interval; ++ int clearCacheInterval = 0; ++ if(commonSettings) clearCacheInterval = commonSettings->m_System.clear_3d_cache_interval; + + // An interval of zero means the user doesn't want to ever clear the cache + diff --git a/cad/kicad/files/patch-thirdparty_glew_CMakeLists.txt b/cad/kicad/files/patch-thirdparty_glew_CMakeLists.txt new file mode 100644 index 000000000000..18c5a496dd6c --- /dev/null +++ b/cad/kicad/files/patch-thirdparty_glew_CMakeLists.txt @@ -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 )