diff options
| author | TBK <tbk@jjtc.eu> | 2020-02-24 16:06:23 +0100 |
|---|---|---|
| committer | Leo <thinkabit.ukim@gmail.com> | 2020-02-29 22:44:18 -0300 |
| commit | 134e91ea5c6bcade5ead51f93c879b4d22e93a0e (patch) | |
| tree | 55a62858d0e61d04b61628b3eaa90e41d281ec74 /main/yeahconsole/makefile.patch | |
| parent | 405975727576ed51d470b3597bbe36e980f104ae (diff) | |
| download | aports-134e91ea5c6bcade5ead51f93c879b4d22e93a0e.tar.bz2 aports-134e91ea5c6bcade5ead51f93c879b4d22e93a0e.tar.xz | |
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
Diffstat (limited to 'main/yeahconsole/makefile.patch')
| -rw-r--r-- | main/yeahconsole/makefile.patch | 39 |
1 files changed, 39 insertions, 0 deletions
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: |
