git: 41c237b70f3b - main - x11/xfce4-goodies: Enable BATTERY option only for supported archs

From: Guido Falsi <madpilot_at_FreeBSD.org>
Date: Fri, 22 Jul 2022 20:54:26 UTC
The branch main has been updated by madpilot:

URL: https://cgit.FreeBSD.org/ports/commit/?id=41c237b70f3bc9fc19da62c7a87c0c08154ca591

commit 41c237b70f3bc9fc19da62c7a87c0c08154ca591
Author:     Guido Falsi <madpilot@FreeBSD.org>
AuthorDate: 2022-07-22 20:50:08 +0000
Commit:     Guido Falsi <madpilot@FreeBSD.org>
CommitDate: 2022-07-22 20:54:22 +0000

    x11/xfce4-goodies: Enable BATTERY option only for supported archs
    
    The xfce4-battery-plugin is available only for amd64 and i386. So
    enable the option only for those archs.
    
    Also add more unsupported archs to the OPTIONS_EXLUDE list.
    
    While here enable again the BSDCPUFREQ option. xfce4-bsdcpufreq-plugin
    has been fixed some time ago.
    
    PR:             265378
---
 x11/xfce4-goodies/Makefile | 13 ++++++++++---
 1 file changed, 10 insertions(+), 3 deletions(-)

diff --git a/x11/xfce4-goodies/Makefile b/x11/xfce4-goodies/Makefile
index 5774294122dd..c65eddb1df05 100644
--- a/x11/xfce4-goodies/Makefile
+++ b/x11/xfce4-goodies/Makefile
@@ -1,5 +1,6 @@
 PORTNAME=	xfce4-goodies
 PORTVERSION=	4.16
+PORTREVISION=	1
 CATEGORIES=	x11
 
 MAINTAINER=	xfce@FreeBSD.org
@@ -7,20 +8,26 @@ COMMENT=	Meta-port for software and artwork from the Xfce4 Goodies Project
 
 USES=		metaport
 
-OPTIONS_DEFAULT=	ARCHIVE BATTERY CALCULATOR CLIPMAN CPUGRAPH DASHBOARD \
+OPTIONS_DEFAULT=	ARCHIVE BSDCPUFREQ CALCULATOR CLIPMAN CPUGRAPH DASHBOARD \
 			DATETIME DICTIONARY DISKPERF FSGUARD GENMON GIGOLO \
 			MAILWATCH MEDIATAGS MENULIBRE MOUNT NETLOAD NOTES PAROLE \
 			POWERMANAGER RISTRETTO SCREENSAVER SCREENSHOOTER \
 			SMARTBOOKMARK STOPWATCH SYSTEMLOAD TASKMANAGER TERMINAL \
 			THEMES TIMEOUT TIMER VCS VERVE WAVELAN WEATHER WHISKERMENU \
 			XFBURN XKB
-# Removed from defaults due to ports being broken.
-# BSDCPUFREQ
 
+OPTIONS_DEFAULT_amd64=	BATTERY
+OPTIONS_DEFAULT_i386=	BATTERY
+
+OPTIONS_EXCLUDE_aarch64=	BATTERY
+OPTIONS_EXCLUDE_armv6=		BATTERY
+OPTIONS_EXCLUDE_armv7=		BATTERY
 OPTIONS_EXCLUDE_powerpc=	BATTERY
 OPTIONS_EXCLUDE_powerpc64=	BATTERY
 OPTIONS_EXCLUDE_powerpc64le=	BATTERY
 OPTIONS_EXCLUDE_powerpcspe=	BATTERY
+OPTIONS_EXCLUDE_riscv64=	BATTERY
+OPTIONS_EXCLUDE_riscv64sf=	BATTERY
 
 OPTIONS_GROUP=	APPLICATIONS PANELPLUGINS THUNARPLUGINS UNOFFICIAL