SHA256
1
0
forked from pool/wlopm
Files
wlopm/Makefile.patch
Michael Vetter 45ffbd10e8 Accepting request 980878 from home:uncomfyhalomacro
I want to maintain wlopm in X11:Wayland. This software allows people to set screen output "on" and "off" especially on laptops that cannot turn off their output automatically so people will create a script that detects if the lid is closed, the output of the screen should be off.

OBS-URL: https://build.opensuse.org/request/show/980878
OBS-URL: https://build.opensuse.org/package/show/X11:Wayland/wlopm?expand=0&rev=1
2022-06-05 12:24:03 +00:00

25 lines
1.1 KiB
Diff

--- Makefile.orig 2022-06-05 20:00:49.854139519 +0800
+++ Makefile 2022-06-05 20:13:15.797079274 +0800
@@ -4,8 +4,8 @@
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
-LIBS=-lwayland-client
+CFLAGS+=-Wall -Werror -Wextra -Wpedantic -Wno-unused-parameter -Wconversion -Wformat-security -Wformat -Wsign-conversion -Wfloat-conversion -Wunused-result $(shell pkg-config --cflags wayland-client)
+LIBS=$(shell pkg-config --libs wayland-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
@@ -21,8 +21,8 @@
$(SCANNER) client-header < $< > $@
install: wlopm
- install -D wlopm $(DESTDIR)$(BINDIR)/wlopm
- install -D wlopm.1 $(DESTDIR)$(MANDIR)/man1/wlopm.1
+ install -Dm755 wlopm $(DESTDIR)$(BINDIR)/wlopm
+ install -Dm644 wlopm.1 $(DESTDIR)$(MANDIR)/man1/wlopm.1
uninstall:
$(RM) $(DESTDIR)$(BINDIR)/wlopm