60 lines
2.2 KiB
Diff
60 lines
2.2 KiB
Diff
diff -Nru spectrwm-2.4.0.orig/linux/Makefile spectrwm-2.4.0/linux/Makefile
|
|
--- spectrwm-2.4.0.orig/linux/Makefile 2013-11-27 12:41:41.935783480 +0100
|
|
+++ spectrwm-2.4.0/linux/Makefile 2013-11-27 12:44:47.562396671 +0100
|
|
@@ -1,5 +1,5 @@
|
|
CFLAGS+= -std=c99 -Wmissing-prototypes -Wall -Wextra -Wshadow -Wno-uninitialized -g
|
|
-CFLAGS+= -D_GNU_SOURCE -I. -I/usr/include/freetype2 -DSWM_LIB=\"libswmhack.so.$(LVERS)\"
|
|
+CFLAGS+= -D_GNU_SOURCE -I. -I/usr/include/freetype2
|
|
LDADD+= -lX11 -lX11-xcb -lxcb -lxcb-icccm -lxcb-randr -lxcb-keysyms -lxcb-util -lxcb-xtest -lXft -lXcursor
|
|
|
|
PREFIX?= /usr/local
|
|
@@ -16,7 +16,7 @@
|
|
CFLAGS+= -DSPECTRWM_BUILDSTR=\"$(BUILDVERSION)\"
|
|
endif
|
|
|
|
-all: spectrwm libswmhack.so.$(LVERS)
|
|
+all: spectrwm
|
|
|
|
spectrwm.c:
|
|
ln -sf ../spectrwm.c
|
|
@@ -39,15 +39,12 @@
|
|
install -m 755 -d $(DESTDIR)$(LIBDIR)
|
|
install -m 755 -d $(DESTDIR)$(MANDIR)/man1
|
|
install -m 755 spectrwm $(DESTDIR)$(BINDIR)
|
|
- install -m 755 libswmhack.so.$(LVERS) $(DESTDIR)$(LIBDIR)
|
|
install -m 644 ../spectrwm.1 $(DESTDIR)$(MANDIR)/man1/spectrwm.1
|
|
install -m 644 ../spectrwm_es.1 $(DESTDIR)$(MANDIR)/man1/spectrwm_es.1
|
|
install -m 644 ../spectrwm_it.1 $(DESTDIR)$(MANDIR)/man1/spectrwm_it.1
|
|
install -m 644 ../spectrwm_pt.1 $(DESTDIR)$(MANDIR)/man1/spectrwm_pt.1
|
|
install -m 644 ../spectrwm_ru.1 $(DESTDIR)$(MANDIR)/man1/spectrwm_ru.1
|
|
ln -sf spectrwm $(DESTDIR)$(BINDIR)/scrotwm
|
|
- ln -sf libswmhack.so.0.0 $(DESTDIR)$(LIBDIR)/libswmhack.so.0
|
|
- ln -sf libswmhack.so.0.0 $(DESTDIR)$(LIBDIR)/libswmhack.so
|
|
|
|
clean:
|
|
rm -f spectrwm *.o *.so libswmhack.so.* spectrwm.c swm_hack.c version.h
|
|
diff -Nru spectrwm-2.4.0.orig/spectrwm.c spectrwm-2.4.0/spectrwm.c
|
|
--- spectrwm-2.4.0.orig/spectrwm.c 2013-11-27 12:41:41.935783480 +0100
|
|
+++ spectrwm-2.4.0/spectrwm.c 2013-11-27 12:50:27.810081824 +0100
|
|
@@ -273,9 +273,9 @@
|
|
#define SWM_CONF_DEFAULT (0)
|
|
#define SWM_CONF_KEYMAPPING (1)
|
|
|
|
-#ifndef SWM_LIB
|
|
+/* #ifndef SWM_LIB
|
|
#define SWM_LIB "/usr/local/lib/libswmhack.so"
|
|
-#endif
|
|
+#endif */
|
|
|
|
char **start_argv;
|
|
xcb_atom_t a_state;
|
|
@@ -3117,7 +3117,7 @@
|
|
|
|
close(xcb_get_file_descriptor(conn));
|
|
|
|
- setenv("LD_PRELOAD", SWM_LIB, 1);
|
|
+ /* setenv("LD_PRELOAD", SWM_LIB, 1); */
|
|
|
|
if (asprintf(&ret, "%d", ws_idx) == -1) {
|
|
warn("spawn: asprintf SWM_WS");
|