Skip to content

Commit

Permalink
x11/wlopm: Wayland output power management
Browse files Browse the repository at this point in the history
wlopm - Wayland output power management

Simple client implementing zwlr-output-power-management-v1.

WWW: https://git.sr.ht/~leon_plickat/wlopm

PR:		275141
  • Loading branch information
elgithubo authored and clausecker committed Nov 18, 2023
1 parent e893333 commit e167afd
Show file tree
Hide file tree
Showing 5 changed files with 51 additions and 0 deletions.
1 change: 1 addition & 0 deletions x11/Makefile
Expand Up @@ -432,6 +432,7 @@
SUBDIR += wl-clipboard
SUBDIR += wl-mirror
SUBDIR += wlogout
SUBDIR += wlopm
SUBDIR += wlr-randr
SUBDIR += wlr-which-key
SUBDIR += wlrctl
Expand Down
33 changes: 33 additions & 0 deletions 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>
3 changes: 3 additions & 0 deletions 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
11 changes: 11 additions & 0 deletions 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
3 changes: 3 additions & 0 deletions x11/wlopm/pkg-descr
@@ -0,0 +1,3 @@
wlopm - Wayland output power management

Simple client for switching displays in Wayland on and off.

0 comments on commit e167afd

Please sign in to comment.