summaryrefslogtreecommitdiff
path: root/x11/hamclock/files/patch-Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'x11/hamclock/files/patch-Makefile')
-rw-r--r--x11/hamclock/files/patch-Makefile35
1 files changed, 14 insertions, 21 deletions
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)