aboutsummaryrefslogtreecommitdiff
path: root/system/radeontop/man.patch
diff options
context:
space:
mode:
authorHunter Sezen <orbea@fredslev.dk>2018-12-15 06:56:57 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2018-12-15 06:56:57 +0700
commitca2703577e4c8ee2a48314cecb0c5e84601d43dc (patch)
tree81af73f5114e272b30347551afe987d5ebaa137d /system/radeontop/man.patch
parent8224731b8f9dc8f30cf679a6b558f8d4bbbd278d (diff)
system/radeontop: Added (Radeon cards monitoring utility).
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'system/radeontop/man.patch')
-rw-r--r--system/radeontop/man.patch32
1 files changed, 32 insertions, 0 deletions
diff --git a/system/radeontop/man.patch b/system/radeontop/man.patch
new file mode 100644
index 000000000000..b9f26245a90c
--- /dev/null
+++ b/system/radeontop/man.patch
@@ -0,0 +1,32 @@
+From dfbff6274ce25814a4357a8a788c404425cecb69 Mon Sep 17 00:00:00 2001
+From: orbea <orbea@fredslev.dk>
+Date: Sat, 1 Dec 2018 07:43:12 -0800
+Subject: [PATCH] Makefile: Add MANDIR.
+
+Not all Linux distros install manpages to $(PREFIX)/share/man.
+For example Slackware installs manpages to /usr/man/.
+---
+ Makefile | 3 ++-
+ 1 file changed, 2 insertions(+), 1 deletion(-)
+
+diff --git a/Makefile b/Makefile
+index 6010bc9..4cb7093 100644
+--- a/Makefile
++++ b/Makefile
+@@ -13,6 +13,7 @@
+ PREFIX ?= /usr
+ INSTALL ?= install
+ LIBDIR ?= lib
++MANDIR ?= share/man
+
+ nls ?= 1
+ xcb ?= 1
+@@ -103,7 +104,7 @@ install: all
+ ifeq ($(xcb), 1)
+ $(INSTALL) -D -m755 $(xcblib) $(DESTDIR)/$(PREFIX)/$(LIBDIR)/$(xcblib)
+ endif
+- $(INSTALL) -D -m644 radeontop.1 $(DESTDIR)/$(PREFIX)/share/man/man1/radeontop.1
++ $(INSTALL) -D -m644 radeontop.1 $(DESTDIR)/$(PREFIX)/$(MANDIR)/man1/radeontop.1
+ ifeq ($(nls), 1)
+ $(MAKE) -C translations install PREFIX=$(PREFIX)
+ endif