summaryrefslogtreecommitdiff
path: root/system/crikey/crikey-0.8.3-Makefile.diff
diff options
context:
space:
mode:
authorBryan Harris <bryanlharris@gmail.com>2010-05-13 01:00:44 +0200
committerRobby Workman <rworkman@slackbuilds.org>2010-05-13 01:00:44 +0200
commite4fbc400eabcb6954f369c4292e4ee5e77209c02 (patch)
tree7739aa2bce7a367f696a42282b551dc061050053 /system/crikey/crikey-0.8.3-Makefile.diff
parentcf8a43d527c17d7ff0a04bc6e6554c420c82751c (diff)
downloadslackbuilds-e4fbc400eabcb6954f369c4292e4ee5e77209c02.tar.gz
system/crikey: Added to 13.0 repository
Diffstat (limited to 'system/crikey/crikey-0.8.3-Makefile.diff')
-rw-r--r--system/crikey/crikey-0.8.3-Makefile.diff33
1 files changed, 33 insertions, 0 deletions
diff --git a/system/crikey/crikey-0.8.3-Makefile.diff b/system/crikey/crikey-0.8.3-Makefile.diff
new file mode 100644
index 0000000000..28e70ec984
--- /dev/null
+++ b/system/crikey/crikey-0.8.3-Makefile.diff
@@ -0,0 +1,33 @@
+diff -Nur crikey-0.8.3.orig/Makefile crikey-0.8.3/Makefile
+--- crikey-0.8.3.orig/Makefile 2009-06-15 18:14:05.000000000 -0500
++++ crikey-0.8.3/Makefile 2009-10-18 00:59:26.654268333 -0500
+@@ -1,8 +1,13 @@
+ CC = gcc
+-CFLAGS = -Wall -Wstrict-prototypes -g -O2
++OPTS = -O2
++CFLAGS = -Wall -Wstrict-prototypes -g $(OPTS)
+ SRC = crikey.c
+ OBJ = $(SRC:.c=.o)
+-LIBS = -L/usr/X11R6/lib -lX11 -lXtst -lXext
++X11LIBS = /usr/X11R6/lib
++LIBS = -L$(X11LIBS) -lX11 -lXtst -lXext
++PREFIX = /usr/local
++BINDIR = $(PREFIX)/bin
++DESTDIR =
+
+ all: crikey
+
+@@ -10,10 +15,11 @@
+ $(CC) -o crikey $(OBJ) $(LIBS)
+
+ install: crikey
+- cp crikey /usr/local/bin
++ mkdir -p $(DESTDIR)/$(BINDIR)
++ cp crikey $(DESTDIR)/$(BINDIR)
+
+ uninstall:
+- rm -f /usr/local/bin/crikey
++ rm -f $(DESTDIR)/$(BINDIR)/crikey
+
+ clean:
+ rm -f $(OBJ) crikey *~