From a26ded1ec583efc295408d9a54416a2d0879d3d0 Mon Sep 17 00:00:00 2001 From: Martin Filla Date: Sun, 26 Jul 2026 21:40:05 +0200 Subject: [PATCH] opencircuitx: new port --- devel/opencircuitx/Makefile | 32 +++++++++++++++++++ devel/opencircuitx/distinfo | 3 ++ ...ch-OpenCircuitX_src_core_update__check.cpp | 31 ++++++++++++++++++ ...CircuitX_src_ui_dialogs_settings__dialog.h | 10 ++++++ devel/opencircuitx/pkg-descr | 5 +++ devel/opencircuitx/pkg-plist | 2 ++ 6 files changed, 83 insertions(+) create mode 100644 devel/opencircuitx/Makefile create mode 100644 devel/opencircuitx/distinfo create mode 100644 devel/opencircuitx/files/patch-OpenCircuitX_src_core_update__check.cpp create mode 100644 devel/opencircuitx/files/patch-OpenCircuitX_src_ui_dialogs_settings__dialog.h create mode 100644 devel/opencircuitx/pkg-descr create mode 100644 devel/opencircuitx/pkg-plist diff --git a/devel/opencircuitx/Makefile b/devel/opencircuitx/Makefile new file mode 100644 index 000000000000..6f96a26fba90 --- /dev/null +++ b/devel/opencircuitx/Makefile @@ -0,0 +1,32 @@ +PORTNAME= opencircuitx +DISTVERSIONPREFIX=v +DISTVERSION= 1.0.0 +CATEGORIES= devel + +MAINTAINER= freebsd@sysctl.cz +COMMENT= Free, open-source EDA platform for VHDL and Verilog. HDL editor. +WWW= https://github.com/openlab-x/OpenCircuitX + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENSE + +LIB_DEPENDS= libwx_gtk3u_core-3.2.so:x11-toolkits/wxgtk32 \ + libwx_baseu-3.2.so:x11-toolkits/wxgtk32 \ + libwx_gtk3u_stc-3.2.so:x11-toolkits/wxgtk32 \ + libwx_gtk3u_aui-3.2.so:x11-toolkits/wxgtk32 \ + libwx_baseu_net-3.2.so:x11-toolkits/wxgtk32 + +RUN_DEPENDS= ghdl>0:cad/ghdl \ + verilator>0:cad/verilator \ + iverilog>0:cad/iverilog \ + yosys>0:cad/yosys \ + nextpnr>0:devel/nextpnr \ + openfpgaloader>0:cad/openfpgaloader + +USES= cmake +USE_GITHUB= yes +GH_ACCOUNT= openlab-x +GH_PROJECT= OpenCircuitX +GH_TAGNAME= cbfb1f9 + +.include diff --git a/devel/opencircuitx/distinfo b/devel/opencircuitx/distinfo new file mode 100644 index 000000000000..edc30d57f13c --- /dev/null +++ b/devel/opencircuitx/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1785087440 +SHA256 (openlab-x-OpenCircuitX-v1.0.0-cbfb1f9_GH0.tar.gz) = 4c5cb7622ab9cb84bca020a244e46eaeec5168d850f647f8ea2ff759850157bd +SIZE (openlab-x-OpenCircuitX-v1.0.0-cbfb1f9_GH0.tar.gz) = 2614647 diff --git a/devel/opencircuitx/files/patch-OpenCircuitX_src_core_update__check.cpp b/devel/opencircuitx/files/patch-OpenCircuitX_src_core_update__check.cpp new file mode 100644 index 000000000000..de6e58195c0e --- /dev/null +++ b/devel/opencircuitx/files/patch-OpenCircuitX_src_core_update__check.cpp @@ -0,0 +1,31 @@ +--- OpenCircuitX/src/core/update_check.cpp.orig 2026-07-20 23:33:17 UTC ++++ OpenCircuitX/src/core/update_check.cpp +@@ -2,15 +2,18 @@ + #include "core/version.h" + #include + #include ++#ifdef WIN32 + #include + #include + #pragma comment(lib, "wininet.lib") ++#endif + + const char* const OCX_LATEST_DOWNLOAD_URL = + "https://github.com/openlab-x/OpenCircuitX/releases/latest/download/OpenCircuitX-Setup.exe"; + + wxString OCXFetchRemoteVersion() + { ++#ifdef WIN32 + HINTERNET hNet = InternetOpenA("OpenCircuitX/" OCX_VERSION_STRING, + INTERNET_OPEN_TYPE_PRECONFIG, + nullptr, nullptr, 0); +@@ -36,6 +39,9 @@ wxString OCXFetchRemoteVersion() + InternetCloseHandle(hNet); + + result.Trim(true).Trim(false); ++ return result; ++#endif ++ wxString result; + return result; + } + diff --git a/devel/opencircuitx/files/patch-OpenCircuitX_src_ui_dialogs_settings__dialog.h b/devel/opencircuitx/files/patch-OpenCircuitX_src_ui_dialogs_settings__dialog.h new file mode 100644 index 000000000000..2634fed51357 --- /dev/null +++ b/devel/opencircuitx/files/patch-OpenCircuitX_src_ui_dialogs_settings__dialog.h @@ -0,0 +1,10 @@ +--- OpenCircuitX/src/ui/dialogs/settings_dialog.h.orig 2026-07-26 17:51:34 UTC ++++ OpenCircuitX/src/ui/dialogs/settings_dialog.h +@@ -1,6 +1,7 @@ + #pragma once + #include + #include ++#include + + class SettingsDialog : public wxDialog + { diff --git a/devel/opencircuitx/pkg-descr b/devel/opencircuitx/pkg-descr new file mode 100644 index 000000000000..ddfb5c36f836 --- /dev/null +++ b/devel/opencircuitx/pkg-descr @@ -0,0 +1,5 @@ +OpenCircuitX is a free, open-source EDA (Electronic Design Automation) +platform for VHDL and Verilog: the hardware description languages (HDL) +used to design digital logic. It is developed by OpenLabX and unifies an IDE-quality +HDL editor, a visual circuit canvas, an RTL schematic viewer, a waveform viewer, +and a full FPGA toolchain in one window, for hardware engineers, students, and FPGA hobbyists alike. diff --git a/devel/opencircuitx/pkg-plist b/devel/opencircuitx/pkg-plist new file mode 100644 index 000000000000..43dca027d976 --- /dev/null +++ b/devel/opencircuitx/pkg-plist @@ -0,0 +1,2 @@ +bin/OpenCircuitX +@dir bin/plugins -- 2.55.0