diff options
author | David Seifert <soap@gentoo.org> | 2023-02-19 23:03:26 +0100 |
---|---|---|
committer | David Seifert <soap@gentoo.org> | 2023-02-19 23:03:26 +0100 |
commit | bcf151bd9c3cbd3d78b10059d99de2c927b19e2c (patch) | |
tree | 7e0d5bdb5bad9e7af5884ac8558dbeb0098d9a34 /x11-terms/yeahconsole/files | |
parent | games-fps/freedm-data: enable py3.11 (diff) | |
download | gentoo-bcf151bd9c3cbd3d78b10059d99de2c927b19e2c.tar.gz gentoo-bcf151bd9c3cbd3d78b10059d99de2c927b19e2c.tar.bz2 gentoo-bcf151bd9c3cbd3d78b10059d99de2c927b19e2c.zip |
x11-terms/yeahconsole: update EAPI 6 -> 8
Signed-off-by: David Seifert <soap@gentoo.org>
Diffstat (limited to 'x11-terms/yeahconsole/files')
-rw-r--r-- | x11-terms/yeahconsole/files/yeahconsole-0.3.4-make.patch | 45 |
1 files changed, 28 insertions, 17 deletions
diff --git a/x11-terms/yeahconsole/files/yeahconsole-0.3.4-make.patch b/x11-terms/yeahconsole/files/yeahconsole-0.3.4-make.patch index 0075c433292b..e7f6b154efd4 100644 --- a/x11-terms/yeahconsole/files/yeahconsole-0.3.4-make.patch +++ b/x11-terms/yeahconsole/files/yeahconsole-0.3.4-make.patch @@ -1,30 +1,41 @@ ---- a/Makefile 2006-01-14 16:54:05.000000000 +0100 -+++ b/Makefile 2009-02-26 16:18:25.000000000 +0100 -@@ -1,6 +1,4 @@ +--- a/Makefile ++++ b/Makefile +@@ -1,30 +1,21 @@ TARGET = yeahconsole -CC = gcc -#CC = cc INSTALL = install - PREFIX = /usr/local -@@ -8,17 +6,16 @@ - 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 +-PREFIX = /usr/local ++PREFIX = $(EPREFIX)/usr - $(TARGET): $(OBJECTS) +-LIBS = -lX11 +-INCLUDES = -I/usr/X11R6/include +-LIB_DIRS = -L/usr/X11R6/lib +-FLAGS = -Os -Wall +- +-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) ++PKG_CONFIG ?= lol ++CFLAGS += -Wall ++CPPFLAGS += $(shell $(PKG_CONFIG) --cflags x11) ++LDLIBS += $(shell $(PKG_CONFIG) --libs x11) - $(OBJECTS): $(SOURCES) +-$(OBJECTS): $(SOURCES) - $(CC) $(FLAGS) $(DEFINES) $(INCLUDES) $(LIB_DIRS) -c -o $@ $< -+ $(CC) $(FLAGS) $(DEFINES) $(INCLUDES) $(LIB_DIRS) -c -o $@ $< ++all: $(TARGET) clean: rm -rf $(TARGET) $(OBJECTS) + + install: $(TARGET) $(MAN) +- $(INSTALL) -o root -g root -m 0755 $(TARGET) $(PREFIX)/bin ++ $(INSTALL) -d $(DESTDIR)$(PREFIX)/bin ++ $(INSTALL) -o root -g root -m 0755 $(TARGET) $(DESTDIR)$(PREFIX)/bin + + + uninstall: |