From 134e91ea5c6bcade5ead51f93c879b4d22e93a0e Mon Sep 17 00:00:00 2001 From: TBK Date: Mon, 24 Feb 2020 16:06:23 +0100 Subject: main/yeahconsole: modernize makefile.patch - set prefix to /usr + add mkdir & DESTDIR to install restarthidden.patch - add restartHidden resource option x11.patch - fixes deprecated warning --- main/yeahconsole/makefile.patch | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 main/yeahconsole/makefile.patch (limited to 'main/yeahconsole/makefile.patch') diff --git a/main/yeahconsole/makefile.patch b/main/yeahconsole/makefile.patch new file mode 100644 index 0000000000..d11583d487 --- /dev/null +++ b/main/yeahconsole/makefile.patch @@ -0,0 +1,39 @@ +--- a/Makefile ++++ b/Makefile +@@ -1,30 +1,28 @@ + TARGET = yeahconsole +-CC = gcc +-#CC = cc + INSTALL = install + +-PREFIX = /usr/local ++PREFIX = /usr + + LIBS = -lX11 + INCLUDES = -I/usr/X11R6/include + LIB_DIRS = -L/usr/X11R6/lib +-FLAGS = -Os -Wall ++FLAGS = -Wall $(CFLAGS) + + OBJECTS := yeahconsole.o + SOURCES := yeahconsole.c + + $(TARGET): $(OBJECTS) +- $(CC) $(DEFINES) $(INCLUDES) $(LIB_DIRS) $(LIBS) -o $@ $< +- strip $@ ++ $(CC) $(FLAGS) $(LDFLAGS) $(DEFINES) $(INCLUDES) $(LIB_DIRS) -o $@ $< $(LIBS) + + $(OBJECTS): $(SOURCES) +- $(CC) $(FLAGS) $(DEFINES) $(INCLUDES) $(LIB_DIRS) -c -o $@ $< ++ $(CC) $(FLAGS) $(DEFINES) $(INCLUDES) $(LIB_DIRS) -c -o $@ $< + + clean: + rm -rf $(TARGET) $(OBJECTS) + + install: $(TARGET) $(MAN) +- $(INSTALL) -o root -g root -m 0755 $(TARGET) $(PREFIX)/bin ++ mkdir -p $(DESTDIR)$(PREFIX)/bin ++ $(INSTALL) -m 0755 $(TARGET) $(DESTDIR)$(PREFIX)/bin + + + uninstall: -- cgit v1.2.3