1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-01 22:05:08 +00:00
freebsd-ports/x11-clocks/wmtz/files/patch-aa
1999-12-29 01:33:35 +00:00

47 lines
1.1 KiB
Plaintext

--- Makefile.orig Thu Apr 22 12:27:46 1999
+++ Makefile Tue Dec 28 17:28:17 1999
@@ -1,7 +1,7 @@
-CC = gcc
-LIBDIR = -L/usr/X11R6/lib
+CC ?= gcc
+LIBDIR = -L${X11BASE}/lib
LIBS = -lXpm -lXext -lX11 -lm
-FLAGS = -O2
+CFLAGS ?= -Wall -O2
OBJS = wmtz.o \
../wmgeneral/wmgeneral.o \
../wmgeneral/misc.o \
@@ -9,10 +9,10 @@
.c.o:
- $(CC) -I/usr/X11R6/share/include $(FLAGS) -c -Wall $< -o $*.o
+ $(CC) -I${X11BASE}/include $(CFLAGS) -c $< -o $*.o
wmtz: $(OBJS)
- $(CC) $(FLAGS) -o wmtz $^ -lXext $(LIBDIR) $(LIBS)
+ $(CC) $(CFLAGS) -o wmtz $^ -lXext $(LIBDIR) $(LIBS)
all:: wmtz
@@ -24,18 +24,4 @@
rm -f *~
install:: wmtz
- cp -f wmtz /usr/local/bin/
- chmod 755 /usr/local/bin/wmtz
- chown root:root /usr/local/bin/wmtz
- cp wmtzrc $(HOME)/.wmtzrc
- chmod 600 $(HOME)/.wmtzrc
- cp wmtzrc /etc/wmtzrc
- chmod 644 /etc/wmtzrc
- @echo "wmtz: Installation finished..."
-
-uninstall::
- rm -i /usr/local/bin/wmtz
- rm -i /etc/wmtzrc
- chmod 666 $(HOME)/.wmtzrc
- rm -i $(HOME)/.wmtzrc
- @echo "wmtz: Uninstall completed..."
+ @/usr/bin/install -c -o 0 -g 0 -s -m 755 wmtz ${X11BASE}/bin/wmtz