diff --git a/x11/Makefile b/x11/Makefile index 594b6c92f8387..b4235edf5ee51 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 0000000000000..aca7d49a76a1b --- /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 diff --git a/x11/wlopm/distinfo b/x11/wlopm/distinfo new file mode 100644 index 0000000000000..fbeda9111949f --- /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 0000000000000..b98b847e01730 --- /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 0000000000000..7270a6c780827 --- /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.