aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Beich <jbeich@FreeBSD.org>2022-12-27 09:10:12 +0000
committerJan Beich <jbeich@FreeBSD.org>2022-12-27 14:35:56 +0000
commitcbe413ca77498af1a905da67e08c7441342e9fdd (patch)
tree2d2125b609b3a1fb6409e1f8d13d8557cd24cfb6
parentd4c4ef7f793feccb0420d04a67fa3ccbf62a938f (diff)
downloadports-cbe413ca77498af1a905da67e08c7441342e9fdd.tar.gz
ports-cbe413ca77498af1a905da67e08c7441342e9fdd.zip
sysutils/conky: enable Wayland support after 481978c0272e
See out_to_wayland in conky(1) manpage or $ fgrep -A3 wayland /usr/local/share/doc/conky/config_settings.yaml - name: out_to_wayland desc: |- Open a Wayland window to display output. default: no PR: 268597 Inspired by: Alpine Linux Approved by: madpilot (maintainer)
-rw-r--r--sysutils/conky/Makefile18
-rw-r--r--sysutils/conky/distinfo2
2 files changed, 18 insertions, 2 deletions
diff --git a/sysutils/conky/Makefile b/sysutils/conky/Makefile
index a32033c83f21..13b30fbba7c6 100644
--- a/sysutils/conky/Makefile
+++ b/sysutils/conky/Makefile
@@ -1,8 +1,12 @@
PORTNAME= conky
PORTVERSION= 1.16.1
DISTVERSIONPREFIX= v
+PORTREVISION= 1
CATEGORIES= sysutils
+PATCH_SITES= https://github.com/${GH_ACCOUNT}/${GH_PROJECT}/commit/
+PATCHFILES+= 3fb6534eff30.patch:-p1 # https://github.com/brndnmtthws/conky/pull/1349
+
MAINTAINER= madpilot@FreeBSD.org
COMMENT?= Advanced, highly configurable system monitor for X11
WWW= https://github.com/brndnmtthws/conky
@@ -30,11 +34,11 @@ USE_GITHUB= yes
GH_ACCOUNT= brndnmtthws
OPTIONS_DEFINE= APCUPSD CURL DOCS EXAMPLES IPV6 MANPAGES METAR MOC MPD \
- NCURSES RSS X11 XOAP
+ NCURSES RSS WAYLAND X11 XOAP
OPTIONS_GROUP?= X11
OPTIONS_GROUP_X11= ARGB DOUBLE_BUFFER IMLIB2 XFT XINERAMA LUA_CAIRO LUA_IMLIB2 LUA_RSVG
-OPTIONS_DEFAULT?= X11 ARGB DOUBLE_BUFFER MANPAGES XFT LUA_CAIRO
+OPTIONS_DEFAULT?= X11 ARGB DOUBLE_BUFFER MANPAGES WAYLAND XFT LUA_CAIRO
APCUPSD_DESC= Monitor APCUPSD
APCUPSD_CMAKE_BOOL= BUILD_APCUPSD
@@ -103,6 +107,16 @@ RSS_USES= gnome
RSS_USE= gnome=glib20,libxml2
RSS_IMPLIES= CURL
+WAYLAND_CATEGORIES= wayland
+WAYLAND_BUILD_DEPENDS= wayland-protocols>=1.13:graphics/wayland-protocols
+WAYLAND_LIB_DEPENDS= libepoll-shim.so:devel/libepoll-shim \
+ libwayland-client.so:graphics/wayland \
+ libfontconfig.so:x11-fonts/fontconfig
+WAYLAND_USES= gnome
+WAYLAND_USE= gnome=cairo,pango
+WAYLAND_CMAKE_BOOL= BUILD_WAYLAND
+WAYLAND_LDFLAGS= -Wl,--as-needed # pangoft2 deps: glib20, freetype2, harfbuzz
+
X11_USES= xorg
X11_USE= xorg=x11,xext,xdamage,xfixes
X11_CMAKE_BOOL= BUILD_X11 OWN_WINDOW
diff --git a/sysutils/conky/distinfo b/sysutils/conky/distinfo
index a706ee0921c5..6cb69c80010c 100644
--- a/sysutils/conky/distinfo
+++ b/sysutils/conky/distinfo
@@ -1,3 +1,5 @@
TIMESTAMP = 1672086732
SHA256 (brndnmtthws-conky-v1.16.1_GH0.tar.gz) = a293530980bf5ec2250e6d52533cb3426de66c99477ae15430215b3e4b536593
SIZE (brndnmtthws-conky-v1.16.1_GH0.tar.gz) = 1696411
+SHA256 (3fb6534eff30.patch) = 35af04a3feac07767da999fd18544d6b5d743a25ea150ac53c0afa284a75cc75
+SIZE (3fb6534eff30.patch) = 1854