From nobody Sun May 22 07:31:57 2022 X-Original-To: dev-commits-ports-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 098B61AEC22B; Sun, 22 May 2022 07:31:58 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4L5XGP6sybz4kdT; Sun, 22 May 2022 07:31:57 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1653204718; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=gwFBD2PNv/l/NfFO6uRDMDgT4xyudUtuFQNNoFD6O5A=; b=odwpCnPE9ycCIrlIA0ftlzSRyzl+Zq+6W2IuzhXLZVFC+Ku8kT8nJAHU4QVF1rguJeiwLi U3EBp2YS7UF057WzYYEM9Ax8Orr8AGr0vANFm9xqGw3wv459KhUiMDvS+BmAumLj2aArZM MZTUcSCg1E4nazYSjLPpTgrhB+venQrzMN7ewhs6s/jXhwSrYCbCpH++GeKETLHBHmNoNs qTTMekQ+EmYJXgmIN0ohLI0yqiTiz3muK9Ggl1RNRktAQUbV6YAnNoDIEQp4Z5kH8IupX5 MLMm8y7AXsk0FXnIt81K7Ry+f9pw9269fWZ4XBFcr9E3xtT1m08zv6zXrKoKow== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id C23B517367; Sun, 22 May 2022 07:31:57 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 24M7Vv8Y054524; Sun, 22 May 2022 07:31:57 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 24M7Vv5T054523; Sun, 22 May 2022 07:31:57 GMT (envelope-from git) Date: Sun, 22 May 2022 07:31:57 GMT Message-Id: <202205220731.24M7Vv5T054523@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Jose Alonso Cardenas Marquez Subject: git: ad93f0333406 - main - x11/hamclock: New port: Handy clock with features for amateur radio operators List-Id: Commit messages for all branches of the ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-all@freebsd.org X-BeenThere: dev-commits-ports-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: acm X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: ad93f0333406bcff29e98d6d734e29e184e3555d Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1653204718; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=gwFBD2PNv/l/NfFO6uRDMDgT4xyudUtuFQNNoFD6O5A=; b=X2HBjBA77TKSiA8HhUZ+Aing3yMqXlLKrNPZulzIJ62ezd1/5B1rVMC/K6O6k7u8SJxUqo ny7nHuExdFXUBWQ90/zxWAfOUuhHG1kBsE1F69/hyHZKXVEBmxosW9U6RcfWycUgbVFIsB 7KPXIm/+mLo59RzZkCvuFVEo7p/9dTPL8ZF9cTSNSeeebKdrtZ8RGUiKVN/7X5fgbePMUD LMKAEjLy+/qNRAHYi0O2eP/i9c9OJU0woWx7T727DLq2yvFQ/gJlz/0wXU5B6J916FCVl6 v7FtxUXNnDmPDJkeiEu5XMNEgTpXbxLOgGSsY0+57bkvHJIsc6qD+9hIT6rzcQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1653204718; a=rsa-sha256; cv=none; b=bBLEYDXAZGQXf09c25LE8iefu4hZ/524Oo8Vdl1UO+hqhapO0lADXPIlJ/se50i3kYOyXz UPU3uJQ+8vs+qvOHZPeIEbc790CvYq9Xw+uSXzXRwjpDthJTtulqR99DwppziM+ybb25jA ybof95xQ9X58SJt7PrSHqCKHjPxmcA1HpgMhe1nx7KUn0cnz5Ka7VGAYLiMC+DsLQh5H8r yc/tlpROrbehjBJk4K95ewMxtM9W4IVy2juGKC2MlUqK3ra7+eQmeZNZMCZ8edTgY6x7ye VAA/nvMf2QVgTb0da6Dnv76ewTqPmcNhHWjSNPeZKUBAkXz/BLb2ICyli7yrZQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by acm: URL: https://cgit.FreeBSD.org/ports/commit/?id=ad93f0333406bcff29e98d6d734e29e184e3555d commit ad93f0333406bcff29e98d6d734e29e184e3555d Author: Jose Alonso Cardenas Marquez AuthorDate: 2022-05-22 07:30:46 +0000 Commit: Jose Alonso Cardenas Marquez CommitDate: 2022-05-22 07:30:46 +0000 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/ --- x11/Makefile | 1 + x11/hamclock/Makefile | 42 ++++++++++++++++++++++++++++++++ x11/hamclock/distinfo | 3 +++ x11/hamclock/files/patch-ESPHamClock.ino | 12 +++++++++ x11/hamclock/files/patch-Makefile | 28 +++++++++++++++++++++ x11/hamclock/pkg-descr | 6 +++++ 6 files changed, 92 insertions(+) diff --git a/x11/Makefile b/x11/Makefile index 3d5c648cd3d9..038785444fd2 100644 --- a/x11/Makefile +++ b/x11/Makefile @@ -105,6 +105,7 @@ SUBDIR += guake SUBDIR += gxkb SUBDIR += havoc + SUBDIR += hamclock SUBDIR += hhpc SUBDIR += hs-xmobar SUBDIR += hsetroot diff --git a/x11/hamclock/Makefile b/x11/hamclock/Makefile new file mode 100644 index 000000000000..1c62811034b1 --- /dev/null +++ b/x11/hamclock/Makefile @@ -0,0 +1,42 @@ +PORTNAME= hamclock +PORTVERSION= 2.78 +CATEGORIES= x11 +MASTER_SITES= https://www.clearskyinstitute.com/ham/HamClock/ +DISTNAME= ESPHamClock + +MAINTAINER= acm@FreeBSD.org +COMMENT= Handy clock with features for amateur radio operators + +LIB_DEPENDS= libcurl.so:ftp/curl + +USES= desktop-file-utils gmake xorg zip +USE_XORG= x11 + +OPTIONS_SINGLE= RESOLUTION +OPTIONS_SINGLE_RESOLUTION=SIZE1 SIZE2 SIZE3 SIZE4 +SIZE1_DESC= Use 800x440 resolution +SIZE2_DESC= Use 1600x960 resolution +SIZE3_DESC= Use 2400x1440 resolution +SIZE4_DESC= Use 3200x1920 resolution +OPTIONS_DEFAULT= SIZE1 + +SIZE1_ALL_TARGET= hamclock-800x480 +SIZE2_ALL_TARGET= hamclock-1600x960 +SIZE3_ALL_TARGET= hamclock-2400x1440 +SIZE4_ALL_TARGET= hamclock-3200x1920 + +PLIST_FILES= bin/hamclock \ + share/applications/hamclock.desktop \ + share/icons/hicolor/48x48/apps/hamclock.png + +post-patch: + ${REINPLACE_CMD} -e 's|CXX =|CXX ?=|g' ${WRKSRC}/ArduinoLib/Makefile + ${REINPLACE_CMD} -e 's|/home/pi/.hamclock/||g' ${WRKSRC}/${PORTNAME}.desktop + +do-install: + @${MKDIR} ${STAGEDIR}${PREFIX}/share/icons/hicolor/48x48/apps + ${INSTALL_PROGRAM} ${WRKSRC}/${ALL_TARGET} ${STAGEDIR}${PREFIX}/bin/${PORTNAME} + ${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.png ${STAGEDIR}${PREFIX}/share/icons/hicolor/48x48/apps/${PORTNAME}.png + ${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.desktop ${STAGEDIR}${PREFIX}/share/applications/${PORTNAME}.desktop + +.include diff --git a/x11/hamclock/distinfo b/x11/hamclock/distinfo new file mode 100644 index 000000000000..eaf89ddf09f9 --- /dev/null +++ b/x11/hamclock/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1653204084 +SHA256 (ESPHamClock.zip) = 7b194bd0228c5a05ede1833bc588ec2197d1c66ebd68dcda184bb5e7e02f9b8a +SIZE (ESPHamClock.zip) = 1280434 diff --git a/x11/hamclock/files/patch-ESPHamClock.ino b/x11/hamclock/files/patch-ESPHamClock.ino new file mode 100644 index 000000000000..7a90ed213f30 --- /dev/null +++ b/x11/hamclock/files/patch-ESPHamClock.ino @@ -0,0 +1,12 @@ +--- ESPHamClock.ino.orig 2022-04-30 15:37:10.367129000 -0500 ++++ ESPHamClock.ino 2022-04-30 15:37:48.165833000 -0500 +@@ -1,6 +1,9 @@ + /* HamClock + */ + ++#if defined(__FreeBSD__) ++#include ++#endif + + // glue + #include "HamClock.h" diff --git a/x11/hamclock/files/patch-Makefile b/x11/hamclock/files/patch-Makefile new file mode 100644 index 000000000000..2ca33b392167 --- /dev/null +++ b/x11/hamclock/files/patch-Makefile @@ -0,0 +1,28 @@ +--- 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) diff --git a/x11/hamclock/pkg-descr b/x11/hamclock/pkg-descr new file mode 100644 index 000000000000..adb099ae242f --- /dev/null +++ b/x11/hamclock/pkg-descr @@ -0,0 +1,6 @@ +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/