git: e167afd981bb - main - x11/wlopm: Wayland output power management

From: Robert Clausecker <fuz_at_FreeBSD.org>
Date: Sat, 18 Nov 2023 20:22:59 UTC
The branch main has been updated by fuz:

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

commit e167afd981bb3bc9dfc22add54e1e301bfe30394
Author:     Tino Engel <tino.engel@mail.de>
AuthorDate: 2023-11-16 21:27:12 +0000
Commit:     Robert Clausecker <fuz@FreeBSD.org>
CommitDate: 2023-11-18 20:20:44 +0000

    x11/wlopm: Wayland output power management
    
    wlopm - Wayland output power management
    
    Simple client implementing zwlr-output-power-management-v1.
    
    WWW: https://git.sr.ht/~leon_plickat/wlopm
    
    PR:             275141
---
 x11/Makefile                   |  1 +
 x11/wlopm/Makefile             | 33 +++++++++++++++++++++++++++++++++
 x11/wlopm/distinfo             |  3 +++
 x11/wlopm/files/patch-Makefile | 11 +++++++++++
 x11/wlopm/pkg-descr            |  3 +++
 5 files changed, 51 insertions(+)

diff --git a/x11/Makefile b/x11/Makefile
index 594b6c92f838..b4235edf5ee5 100644
--- a/x11/Makefile
+++ b/x11/Makefile
@@ -432,6 +432,7 @@
     SUBDIR += wl-clipboard
     SUBDIR += wl-mirror
     SUBDIR += wlogout
+    SUBDIR += wlopm
     SUBDIR += wlr-randr
     SUBDIR += wlr-which-key
     SUBDIR += wlrctl
diff --git a/x11/wlopm/Makefile b/x11/wlopm/Makefile
new file mode 100644
index 000000000000..aca7d49a76a1
--- /dev/null
+++ b/x11/wlopm/Makefile
@@ -0,0 +1,33 @@
+PORTNAME=	wlopm
+DISTVERSIONPREFIX=	v
+DISTVERSION=	0.1.0
+CATEGORIES=	x11 wayland
+MASTER_SITES=	https://git.sr.ht/~leon_plickat/${PORTNAME}/archive/
+DISTNAME=	${DISTVERSIONFULL}
+DIST_SUBDIR=	${PORTNAME}
+
+MAINTAINER=	tino.engel@mail.de
+COMMENT=	Wayland output power management
+WWW=		https://git.sr.ht/~leon_plickat/wlopm
+
+LICENSE=	GPLv3
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+BUILD_DEPENDS=	wayland-scanner:graphics/wayland
+LIB_DEPENDS=	libwayland-client.so:graphics/wayland
+
+USES=		gmake localbase:ldflags
+
+ALL_TARGET=	wlopm
+CFLAGS+=	-Wno-strict-prototypes
+LIBS=		-lwayland-client
+WRKSRC=		${WRKDIR}/${PORTNAME}-${DISTVERSIONFULL}
+
+PLIST_FILES=	bin/wlopm \
+		share/man/man1/wlopm.1.gz
+
+do-install:
+	${INSTALL_PROGRAM} ${WRKSRC}/wlopm ${STAGEDIR}${PREFIX}/bin/wlopm
+	${INSTALL_MAN} ${WRKSRC}/wlopm.1 ${STAGEDIR}${PREFIX}/share/man/man1/wlopm.1
+
+.include <bsd.port.mk>
diff --git a/x11/wlopm/distinfo b/x11/wlopm/distinfo
new file mode 100644
index 000000000000..fbeda9111949
--- /dev/null
+++ b/x11/wlopm/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1700117590
+SHA256 (wlopm/v0.1.0.tar.gz) = f9a7ec03a412e602420ab11d0eea872f6d30dfe5cfee93cd3d0289e4fbbb3aa1
+SIZE (wlopm/v0.1.0.tar.gz) = 19004
diff --git a/x11/wlopm/files/patch-Makefile b/x11/wlopm/files/patch-Makefile
new file mode 100644
index 000000000000..b98b847e0173
--- /dev/null
+++ b/x11/wlopm/files/patch-Makefile
@@ -0,0 +1,11 @@
+--- Makefile.orig	2023-11-18 08:35:21 UTC
++++ Makefile
+@@ -4,7 +4,7 @@ PREFIX=/usr/local
+ BINDIR=$(PREFIX)/bin
+ MANDIR=$(PREFIX)/share/man
+ 
+-CFLAGS+=-Wall -Werror -Wextra -Wpedantic -Wno-unused-parameter -Wconversion -Wformat-security -Wformat -Wsign-conversion -Wfloat-conversion -Wunused-result
++CFLAGS+=-Wall -Wextra -Wpedantic -Wno-unused-parameter -Wconversion -Wformat-security -Wformat -Wsign-conversion -Wfloat-conversion -Wunused-result
+ LIBS=-lwayland-client
+ OBJ=wlopm.o wlr-output-power-management-unstable-v1.o
+ GEN=wlr-output-power-management-unstable-v1.c wlr-output-power-management-unstable-v1.h
diff --git a/x11/wlopm/pkg-descr b/x11/wlopm/pkg-descr
new file mode 100644
index 000000000000..7270a6c78082
--- /dev/null
+++ b/x11/wlopm/pkg-descr
@@ -0,0 +1,3 @@
+wlopm - Wayland output power management
+
+Simple client for switching displays in Wayland on and off.