summaryrefslogtreecommitdiff
path: root/x11/hamclock/files
diff options
context:
space:
mode:
Diffstat (limited to 'x11/hamclock/files')
-rw-r--r--x11/hamclock/files/patch-ESPHamClock.ino21
-rw-r--r--x11/hamclock/files/patch-Makefile35
-rw-r--r--x11/hamclock/files/patch-liveweb.cpp11
-rw-r--r--x11/hamclock/files/patch-wsServer_Makefile11
-rw-r--r--x11/hamclock/files/patch-zlib-hc_Makefile8
5 files changed, 44 insertions, 42 deletions
diff --git a/x11/hamclock/files/patch-ESPHamClock.ino b/x11/hamclock/files/patch-ESPHamClock.ino
deleted file mode 100644
index ab69d7320c20..000000000000
--- a/x11/hamclock/files/patch-ESPHamClock.ino
+++ /dev/null
@@ -1,21 +0,0 @@
---- ESPHamClock.ino.orig 2022-07-02 11:59:16 UTC
-+++ ESPHamClock.ino
-@@ -1,6 +1,9 @@
- /* HamClock
- */
-
-+#if defined(__FreeBSD__)
-+#include <execinfo.h>
-+#endif
-
- // glue
- #include "HamClock.h"
-@@ -1605,7 +1608,7 @@ static void drawUptime(bool force)
- // draw two most significant units if change
- if (upsecs < 60) {
- prepUptime();
-- tft.print(upsecs); tft.print(F("s "));
-+ tft.print((long)upsecs); tft.print(F("s "));
- } else if (upsecs < 3600) {
- prepUptime();
- tft.print(mins); tft.print(F("m "));
diff --git a/x11/hamclock/files/patch-Makefile b/x11/hamclock/files/patch-Makefile
index 2ca33b392167..5d70d53d6be9 100644
--- a/x11/hamclock/files/patch-Makefile
+++ b/x11/hamclock/files/patch-Makefile
@@ -1,28 +1,21 @@
---- Makefile.orig 2022-03-30 19:58:30.000000000 -0500
-+++ Makefile 2022-04-30 15:52:35.521899000 -0500
-@@ -8,10 +8,11 @@
- .PHONY: clean clobber help
+--- Makefile.orig 2025-09-12 00:49:22 UTC
++++ Makefile
+@@ -13,7 +13,8 @@
+ .PHONY: clean clobber help hclibs
# build flags common to all options and architectures
--CXXFLAGS = -IArduinoLib -I. -g -O2 -Wall -DARDUINO=100 -pthread -std=c++0x
+-CXXFLAGS = -IArduinoLib -IwsServer/include -Izlib-hc -I. -g -O2 -Wall -pthread -std=c++17
+CXXFLAGS ?= -g -O2 -Wall
+CXXFLAGS += -IArduinoLib -I. -DARDUINO=100 -std=c++0x
- LDXXFLAGS = -LArduinoLib -g -pthread
- LIBS = -lpthread -larduino
--CXX = g++
-+CXX ?= g++
-
+ # CXXFLAGS += -Wextra -pedantic -Werror -Wno-attributes -Wno-unknown-pragmas
- # macOS does not have X11 by default; this assumes XQuartz has been installed
-@@ -20,6 +21,11 @@
- LDXXFLAGS += -L/opt/X11/lib
- endif
+ # add explicit framebuffer depth as _FB_DEPTH if defined
+@@ -28,7 +29,7 @@ LIBS = -lpthread -larduino -lzlib-hc -lws
-+ifeq ($(shell uname -s), FreeBSD)
-+ CXXFLAGS += -I$(LOCALBASE)/include
-+ LDXXFLAGS += -L$(LOCALBASE)/lib
-+ LIBS = -pthread -larduino -lexecinfo
-+endif
+ LDXXFLAGS = -LArduinoLib -LwsServer -Lzlib-hc -g -pthread
+ LIBS = -lpthread -larduino -lzlib-hc -lws
+-CXX = g++
++CXX ?= g++
- # FreeBSD needs libgpio
- ifeq ($(shell [ -r /usr/include/libgpio.h ]; echo $$?), 0)
+ # macOS does not have X11 by default; this assumes XQuartz or macports xorg has been installed
+ ifeq ($(shell uname -s), Darwin)
diff --git a/x11/hamclock/files/patch-liveweb.cpp b/x11/hamclock/files/patch-liveweb.cpp
new file mode 100644
index 000000000000..2e75073c1409
--- /dev/null
+++ b/x11/hamclock/files/patch-liveweb.cpp
@@ -0,0 +1,11 @@
+--- liveweb.cpp.orig 2025-09-12 01:16:46 UTC
++++ liveweb.cpp
+@@ -12,7 +12,7 @@
+ #include "HamClock.h"
+
+ // web socket library
+-#include "ws.h"
++#include "wsServer/include/ws.h"
+
+
+ // import png writer -- complete implementation in a header file -- amazing.
diff --git a/x11/hamclock/files/patch-wsServer_Makefile b/x11/hamclock/files/patch-wsServer_Makefile
new file mode 100644
index 000000000000..d7e661f185c5
--- /dev/null
+++ b/x11/hamclock/files/patch-wsServer_Makefile
@@ -0,0 +1,11 @@
+--- wsServer/Makefile.orig 2025-09-12 01:18:14 UTC
++++ wsServer/Makefile
+@@ -13,7 +13,7 @@
+ # You should have received a copy of the GNU General Public License
+ # along with this program. If not, see <http://www.gnu.org/licenses/>
+
+-CC = g++
++CC ?= g++
+ AR = ar
+ ARFLAGS = r
+ CXXFLAGS += -Iinclude
diff --git a/x11/hamclock/files/patch-zlib-hc_Makefile b/x11/hamclock/files/patch-zlib-hc_Makefile
new file mode 100644
index 000000000000..c35648db1702
--- /dev/null
+++ b/x11/hamclock/files/patch-zlib-hc_Makefile
@@ -0,0 +1,8 @@
+--- zlib-hc/Makefile.orig 2025-09-12 01:19:05 UTC
++++ zlib-hc/Makefile
+@@ -1,4 +1,4 @@
+-CXX=g++
++CXX?= g++
+
+ LIBOBJ = \
+ adler32.o \