diff options
author | 2022-03-24 21:17:18 +0100 | |
---|---|---|
committer | 2022-04-21 20:54:28 +0100 | |
commit | 0cbc3ec0b9eca21c6f131185031f5d7400105cb2 (patch) | |
tree | dcfcf712379b6ef10c8d2888f734724ac09d1772 /x11-plugins/gkrellm-cpupower/files | |
parent | kde-apps/libksieve: Add missing patch (diff) | |
download | gentoo-0cbc3ec0b9eca21c6f131185031f5d7400105cb2.tar.gz gentoo-0cbc3ec0b9eca21c6f131185031f5d7400105cb2.tar.bz2 gentoo-0cbc3ec0b9eca21c6f131185031f5d7400105cb2.zip |
x11-plugins/gkrellm-cpupower: update EAPI 6 -> 8
Besides the EAPI bump, include a patch for the Makefile to remove -O2
-Wall from compilation flags, and sets CC to $(CC).
Signed-off-by: Thomas Bracht Laumann Jespersen <t@laumann.xyz>
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'x11-plugins/gkrellm-cpupower/files')
-rw-r--r-- | x11-plugins/gkrellm-cpupower/files/gkrellm-cpupower-0.2-makefile.patch | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/x11-plugins/gkrellm-cpupower/files/gkrellm-cpupower-0.2-makefile.patch b/x11-plugins/gkrellm-cpupower/files/gkrellm-cpupower-0.2-makefile.patch new file mode 100644 index 000000000000..3ec485c7bb18 --- /dev/null +++ b/x11-plugins/gkrellm-cpupower/files/gkrellm-cpupower-0.2-makefile.patch @@ -0,0 +1,45 @@ +--- a/Makefile ++++ b/Makefile +@@ -1,22 +1,29 @@ + # Makefile for gkrellm cpupower plugin + +-GTK_INCLUDE = `pkg-config gtk+-2.0 --cflags` +-GTK_LIB = `pkg-config gtk+-2.0 --libs` ++PKG_CONFIG ?= pkg-config + +-FLAGS = -O2 -Wall -fPIC $(GTK_INCLUDE) ++GTK_INCLUDE = $(shell ${PKG_CONFIG} gtk+-2.0 --cflags) ++GTK_LIB = $(shell ${PKG_CONFIG} gtk+-2.0 --libs) ++ ++FLAGS = -fPIC $(GTK_INCLUDE) + LIBS = $(GTK_LIB) + + LFLAGS = -shared -lcpupower + +-CC = gcc $(CFLAGS) $(FLAGS) ++CC = $(CC) + + OBJS = cpupower.o + ++all: cpupower.so ++ ++%.o: %.c ++ $(CC) $(CFLAGS) $(FLAGS) -c -o $@ $< ++ + cpupower.so: $(OBJS) +- $(CC) $(OBJS) -o cpupower.so $(LFLAGS) $(LIBS) ++ $(CC) $(CFLAGS) $(LDFLAGS) $(FLAGS) $(OBJS) -o cpupower.so $(LFLAGS) $(LIBS) + + install: cpupower.so +- install -D -m 755 -s cpupower.so $(DESTDIR)/usr/lib/gkrellm2/plugins/cpupower.so ++ install -D -m 755 cpupower.so $(DESTDIR)/usr/lib/gkrellm2/plugins/cpupower.so + + install-sudo: + mkdir -p $(DESTDIR)/etc/sudoers.d +@@ -25,6 +32,3 @@ install-sudo: + + clean: + rm -f *.o core *.so* *.bak *~ +- +-cpupower.o: cpupower.c +- |