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
2024Q1
Tino Engel 2023-11-16 22:27:12 +01:00 committed by Robert Clausecker
parent e893333a04
commit e167afd981
5 changed files with 51 additions and 0 deletions

View File

@ -432,6 +432,7 @@
SUBDIR += wl-clipboard
SUBDIR += wl-mirror
SUBDIR += wlogout
SUBDIR += wlopm
SUBDIR += wlr-randr
SUBDIR += wlr-which-key
SUBDIR += wlrctl

33
x11/wlopm/Makefile Normal file
View File

@ -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>

3
x11/wlopm/distinfo Normal file
View File

@ -0,0 +1,3 @@
TIMESTAMP = 1700117590
SHA256 (wlopm/v0.1.0.tar.gz) = f9a7ec03a412e602420ab11d0eea872f6d30dfe5cfee93cd3d0289e4fbbb3aa1
SIZE (wlopm/v0.1.0.tar.gz) = 19004

View File

@ -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

3
x11/wlopm/pkg-descr Normal file
View File

@ -0,0 +1,3 @@
wlopm - Wayland output power management
Simple client for switching displays in Wayland on and off.