diff options
Diffstat (limited to 'x11-wm/i3/files/i3-gentoo.diff')
-rw-r--r-- | x11-wm/i3/files/i3-gentoo.diff | 175 |
1 files changed, 0 insertions, 175 deletions
diff --git a/x11-wm/i3/files/i3-gentoo.diff b/x11-wm/i3/files/i3-gentoo.diff deleted file mode 100644 index 003707e96190..000000000000 --- a/x11-wm/i3/files/i3-gentoo.diff +++ /dev/null @@ -1,175 +0,0 @@ ---- common.mk -+++ common.mk -@@ -1,5 +1,5 @@ - UNAME=$(shell uname) --DEBUG=1 -+DEBUG=0 - INSTALL=install - PREFIX=/usr - ifeq ($(PREFIX),/usr) -@@ -17,8 +17,7 @@ - # We don’t want unused-parameter because of the use of many callbacks - CFLAGS += -Wunused-value - CFLAGS += -Iinclude --CFLAGS += -I/usr/local/include --CFLAGS += -DI3_VERSION=\"${GIT_VERSION}\" -+CPPFLAGS += -DI3_VERSION=\"${GIT_VERSION}\" - - # Check if pkg-config is installed, because without pkg-config, the following - # check for the version of libxcb cannot be done. -@@ -33,27 +32,17 @@ - ifeq ($(shell pkg-config --exact-version=0.3.3 xcb-keysyms && echo 1),1) - # xcb-keysyms fixed API from 0.3.3 to 0.3.4, so for some months, we will - # have this here. Distributions should upgrade their libxcb in the meantime. --CFLAGS += -DOLD_XCB_KEYSYMS_API -+CPPFLAGS += -DOLD_XCB_KEYSYMS_API - endif - --LDFLAGS += -lm --LDFLAGS += -lxcb-keysyms - ifeq ($(shell pkg-config --exists xcb-util || echo 1),1) --CFLAGS += -DXCB_COMPAT --LDFLAGS += -lxcb-atom --LDFLAGS += -lxcb-aux --LDFLAGS += -lxcb-event -+CPPFLAGS += -DXCB_COMPAT -+LIBS += -lxcb-atom -lxcb-aux -lxcb-event - else --LDFLAGS += -lxcb-util -+LIBS += $(shell pkg-config --libs xcb-util) - endif --LDFLAGS += -lxcb-icccm --LDFLAGS += -lxcb-xinerama --LDFLAGS += -lxcb-randr --LDFLAGS += -lxcb --LDFLAGS += -lyajl --LDFLAGS += -lX11 --LDFLAGS += -lev --LDFLAGS += -L/usr/local/lib -L/usr/pkg/lib -+LIBS += $(shell pkg-config --libs xcb-keysyms xcb-icccm xcb-xinerama xcb-randr xcb x11) -+LIBS += -lyajl -lev -lm - - ifeq ($(UNAME),NetBSD) - # We need -idirafter instead of -I to prefer the system’s iconv over GNU libiconv -@@ -63,12 +52,12 @@ - - ifeq ($(UNAME),OpenBSD) - CFLAGS += -I${X11BASE}/include --LDFLAGS += -liconv -+LIBS += -liconv - LDFLAGS += -L${X11BASE}/lib - endif - - ifeq ($(UNAME),FreeBSD) --LDFLAGS += -liconv -+LIBS += -liconv - endif - - # Fallback for libyajl 1 which did not include yajl_version.h. We need -@@ -76,20 +65,15 @@ - CFLAGS += -idirafter yajl-fallback - - ifneq (,$(filter Linux GNU GNU/%, $(UNAME))) --CFLAGS += -D_GNU_SOURCE -+CPPFLAGS += -D_GNU_SOURCE - endif - - ifeq ($(DEBUG),1) - # Extended debugging flags, macros shall be available in gcc - CFLAGS += -gdwarf-2 - CFLAGS += -g3 --else --CFLAGS += -O2 - endif - --# Don’t print command lines which are run --.SILENT: -- - # Always remake the following targets - .PHONY: install clean dist distclean - ---- Makefile -+++ Makefile -@@ -20,20 +20,14 @@ - - # Depend on the specific file (.c for each .o) and on all headers - src/%.o: src/%.c ${HEADERS} -- echo "CC $<" -- $(CC) $(CFLAGS) -DLOGLEVEL="(1 << $(shell awk '/$(shell basename $< .c)/ { print NR }' loglevels.tmp))" -c -o $@ $< -+ $(CC) $(CPPFLAGS) $(CFLAGS) -DLOGLEVEL="(1 << $(shell awk '/$(shell basename $< .c)/ { print NR }' loglevels.tmp))" -c -o $@ $< - - all: src/cfgparse.y.o src/cfgparse.yy.o ${FILES} -- echo "LINK i3" -- $(CC) -o i3 ${FILES} src/cfgparse.y.o src/cfgparse.yy.o $(LDFLAGS) -- echo "" -- echo "SUBDIR i3-msg" -+ $(CC) $(LDFLAGS) -o i3 ${FILES} src/cfgparse.y.o src/cfgparse.yy.o $(LIBS) - $(MAKE) TOPDIR=$(TOPDIR) -C i3-msg -- echo "SUBDIR i3-input" - $(MAKE) TOPDIR=$(TOPDIR) -C i3-input - - loglevels.h: -- echo "LOGLEVELS" - for file in $$(ls src/*.c src/*.y src/*.l | grep -v 'cfgparse.\(tab\|yy\).c'); \ - do \ - echo $$(basename $$file .c); \ -@@ -45,17 +39,14 @@ - echo "};") > include/loglevels.h; - - src/cfgparse.yy.o: src/cfgparse.l src/cfgparse.y.o ${HEADERS} -- echo "LEX $<" - flex -i -o$(@:.o=.c) $< -- $(CC) $(CFLAGS) -DLOGLEVEL="(1 << $(shell awk '/cfgparse.l/ { print NR }' loglevels.tmp))" -c -o $@ $(@:.o=.c) -+ $(CC) $(CPPFLAGS) $(CFLAGS) -DLOGLEVEL="(1 << $(shell awk '/cfgparse.l/ { print NR }' loglevels.tmp))" -c -o $@ $(@:.o=.c) - - src/cfgparse.y.o: src/cfgparse.y ${HEADERS} -- echo "YACC $<" - bison --debug --verbose -b $(basename $< .y) -d $< -- $(CC) $(CFLAGS) -DLOGLEVEL="(1 << $(shell awk '/cfgparse.y/ { print NR }' loglevels.tmp))" -c -o $@ $(<:.y=.tab.c) -+ $(CC) $(CPPFLAGS) $(CFLAGS) -DLOGLEVEL="(1 << $(shell awk '/cfgparse.y/ { print NR }' loglevels.tmp))" -c -o $@ $(<:.y=.tab.c) - - install: all -- echo "INSTALL" - $(INSTALL) -d -m 0755 $(DESTDIR)$(PREFIX)/bin - $(INSTALL) -d -m 0755 $(DESTDIR)$(SYSCONFDIR)/i3 - $(INSTALL) -d -m 0755 $(DESTDIR)$(PREFIX)/include/i3 ---- i3-msg/Makefile -+++ i3-msg/Makefile -@@ -11,15 +11,12 @@ - - # Depend on the specific file (.c for each .o) and on all headers - %.o: %.c ${HEADERS} -- echo "CC $<" -- $(CC) $(CFLAGS) -c -o $@ $< -+ $(CC) $(CPPFLAGS) $(CFLAGS) -c -o $@ $< - - all: ${FILES} -- echo "LINK i3-msg" -- $(CC) -o i3-msg ${FILES} $(LDFLAGS) -+ $(CC) $(LDFLAGS) -o i3-msg ${FILES} $(LIBS) - - install: all -- echo "INSTALL" - $(INSTALL) -d -m 0755 $(DESTDIR)$(PREFIX)/bin - $(INSTALL) -m 0755 i3-msg $(DESTDIR)$(PREFIX)/bin/ - ---- i3-input/Makefile -+++ i3-input/Makefile -@@ -9,15 +9,12 @@ - - # Depend on the specific file (.c for each .o) and on all headers - %.o: %.c ${HEADERS} -- echo "CC $<" -- $(CC) $(CFLAGS) -c -o $@ $< -+ $(CC) $(CPPFLAGS) $(CFLAGS) -c -o $@ $< - - all: ${FILES} -- echo "LINK i3-input" -- $(CC) -o i3-input ${FILES} $(LDFLAGS) -+ $(CC) $(LDFLAGS) -o i3-input ${FILES} $(LIBS) - - install: all -- echo "INSTALL" - $(INSTALL) -d -m 0755 $(DESTDIR)$(PREFIX)/bin - $(INSTALL) -m 0755 i3-input $(DESTDIR)$(PREFIX)/bin/ - |