freebsd-ports/x11/yeahconsole/files/patch-Makefile
Martin Wilke 64987044a4 YeahConsole turns an xterm into a gamelike console.
This means it will slide down from top of your screen
if you hit a shortcut key.

WWW: http://phrat.de/yeahtools.html

PR:		ports/123252
Submitted by:	Dmitry Klimov <lazyklimm@gmail.com>
2008-05-02 19:20:41 +00:00

37 lines
951 B
Text

--- Makefile.orig 2006-01-14 18:54:05.000000000 +0300
+++ Makefile 2008-04-30 12:23:01.000000000 +0400
@@ -5,26 +5,26 @@
PREFIX = /usr/local
-LIBS = -lX11
-INCLUDES = -I/usr/X11R6/include
-LIB_DIRS = -L/usr/X11R6/lib
-FLAGS = -Os -Wall
+LIBS = -lX11
+INCLUDES = -I/usr/local/include
+LIB_DIRS = -L/usr/local/lib
+CFLAGS? = -Os -Wall
OBJECTS := yeahconsole.o
SOURCES := yeahconsole.c
$(TARGET): $(OBJECTS)
- $(CC) $(DEFINES) $(INCLUDES) $(LIB_DIRS) $(LIBS) -o $@ $<
+ $(CC) $(DEFINES) $(INCLUDES) $(LIB_DIRS) $(LIBS) -o $@ $(SOURCES)
strip $@
$(OBJECTS): $(SOURCES)
- $(CC) $(FLAGS) $(DEFINES) $(INCLUDES) $(LIB_DIRS) -c -o $@ $<
-
+ $(CC) $(CFLAGS) $(DEFINES) $(INCLUDES) $(LIB_DIRS) -c -o $@ $(SOURCES)
+all: $(TARGET)
clean:
rm -rf $(TARGET) $(OBJECTS)
install: $(TARGET) $(MAN)
- $(INSTALL) -o root -g root -m 0755 $(TARGET) $(PREFIX)/bin
+ $(INSTALL) -o root -g wheel -m 0755 $(TARGET) $(PREFIX)/bin
uninstall: