aboutsummaryrefslogtreecommitdiffstats
path: root/community/yeahconsole/makefile.patch
diff options
context:
space:
mode:
authorLeo <thinkabit.ukim@gmail.com>2020-02-29 22:44:45 -0300
committerLeo <thinkabit.ukim@gmail.com>2020-02-29 22:44:45 -0300
commit71f076e558696b1511a0f21c5830c07bfab86338 (patch)
treedde485ec3165eb56dbfcea4114486d9198fdc080 /community/yeahconsole/makefile.patch
parent134e91ea5c6bcade5ead51f93c879b4d22e93a0e (diff)
downloadaports-71f076e558696b1511a0f21c5830c07bfab86338.tar.bz2
aports-71f076e558696b1511a0f21c5830c07bfab86338.tar.xz
community/yeahconsole: move from main
Diffstat (limited to 'community/yeahconsole/makefile.patch')
-rw-r--r--community/yeahconsole/makefile.patch39
1 files changed, 39 insertions, 0 deletions
diff --git a/community/yeahconsole/makefile.patch b/community/yeahconsole/makefile.patch
new file mode 100644
index 0000000000..d11583d487
--- /dev/null
+++ b/community/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: