ports/x11/hamclock/files/patch-Makefile
Jose Alonso Cardenas Marquez ad93f03334 x11/hamclock: New port: Handy clock with features for amateur radio operators
HamClock is a handy clock with features for amateur radio operators! One screen
shows your local time in 12H and 24H format along with UTC in large, easy to
read text. If your location is available, your grid square, local sunrise and
sunset are also displayed

WWW: https://www.clearskyinstitute.com/ham/HamClock/
2022-05-22 02:30:46 -05:00

28 lines
844 B
Text

--- 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
# build flags common to all options and architectures
-CXXFLAGS = -IArduinoLib -I. -g -O2 -Wall -DARDUINO=100 -pthread -std=c++0x
+CXXFLAGS ?= -g -O2 -Wall
+CXXFLAGS += -IArduinoLib -I. -DARDUINO=100 -std=c++0x
LDXXFLAGS = -LArduinoLib -g -pthread
LIBS = -lpthread -larduino
-CXX = g++
+CXX ?= g++
# macOS does not have X11 by default; this assumes XQuartz has been installed
@@ -20,6 +21,11 @@
LDXXFLAGS += -L/opt/X11/lib
endif
+ifeq ($(shell uname -s), FreeBSD)
+ CXXFLAGS += -I$(LOCALBASE)/include
+ LDXXFLAGS += -L$(LOCALBASE)/lib
+ LIBS = -pthread -larduino -lexecinfo
+endif
# FreeBSD needs libgpio
ifeq ($(shell [ -r /usr/include/libgpio.h ]; echo $$?), 0)