diff options
Diffstat (limited to 'x11-plugins/gkrellaclock/files/gkrellaclock-makefile.patch')
-rw-r--r-- | x11-plugins/gkrellaclock/files/gkrellaclock-makefile.patch | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/x11-plugins/gkrellaclock/files/gkrellaclock-makefile.patch b/x11-plugins/gkrellaclock/files/gkrellaclock-makefile.patch new file mode 100644 index 000000000000..6b48b6bf9015 --- /dev/null +++ b/x11-plugins/gkrellaclock/files/gkrellaclock-makefile.patch @@ -0,0 +1,53 @@ +diff --git a/Makefile b/Makefile +index eb2b8ad..c89fa17 100644 +--- a/Makefile ++++ b/Makefile +@@ -1,39 +1,12 @@ + GTK_INCLUDE = `pkg-config gtk+-2.0 --cflags` + GTK_LIB = `pkg-config gtk+-2.0 --libs` + +-FLAGS = -O2 -Wall -fPIC $(GTK_INCLUDE) +-LIBS = $(GTK_LIB) +-LFLAGS = -shared ++CFLAGS += -fPIC $(GTK_INCLUDE) ++LIBS = $(GTK_LIB) ++LDFLAGS += -shared + +-CC = gcc $(CFLAGS) $(FLAGS) +- +-OBJS = gkrellaclock.o +- +-gkrellaclock.so: $(OBJS) +- $(CC) $(OBJS) -o gkrellaclock.so $(LFLAGS) $(LIBS) ++gkrellaclock.so: gkrellaclock.o ++ $(CC) $(CFLAGS) $(OBJS) -o gkrellaclock.so $(LDFLAGS) $(LIBS) + + clean: +- rm -f *.o core *.so* *.bak *~ +- +-gkrellaclock.o: gkrellaclock.c +- +-install: +- if [ -d /usr/local/lib/gkrellm2/plugins/ ] ; then \ +- install -c -s -m 644 gkrellaclock.so /usr/local/lib/gkrellm2/plugins/ ; \ +- elif [ -d /usr/lib/gkrellm2/plugins/ ] ; then \ +- install -c -s -m 644 gkrellaclock.so /usr/lib/gkrellm2/plugins/ ; \ +- else \ +- install -D -c -s -m 644 gkrellaclock.so /usr/lib/gkrellm2/plugins/gkrellaclock.so ; \ +- fi +-userinstall: +- if [ -d $(HOME)/.gkrellm2/plugins/ ] ; then \ +- install -c -s -m 644 gkrellaclock.so $(HOME)/.gkrellm2/plugins/ ; \ +- else \ +- install -D -c -s -m 644 gkrellaclock.so $(HOME)/.gkrellm2/plugins/gkrellaclock.so ; \ +- fi +- +-uninstall: +- rm -f /usr/local/lib/gkrellm2/plugins/gkrellaclock.so +- rm -f /usr/lib/gkrellm2/plugins/gkrellaclock.so +- rm -f $(HOME)/.gkrellm2/plugins/gkrellaclock.so +- ++ rm -f gkrellaclock.*o +diff --git a/gkrellaclock.o b/gkrellaclock.o +index e2db7c1..002ab3a 100644 +Binary files a/gkrellaclock.o and b/gkrellaclock.o differ |