1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-14 23:46:10 +00:00
freebsd-ports/x11-clocks/wmitime/files/patch-aa

55 lines
1.1 KiB
Plaintext
Raw Normal View History

--- Makefile.orig Thu Apr 1 17:38:14 1999
+++ Makefile Thu Apr 1 17:41:17 1999
@@ -1,7 +1,10 @@
-#LANG = fr
+CC ?= gcc
+CFLAGS ?= -O2
+CFLAGS += -Wall
+INCDIR = -I/usr/X11R6/include/X11 -I/usr/X11R6/include
+DESTDIR = /usr/X11R6
LIBDIR = -L/usr/X11R6/lib
LIBS = -lXpm -lXext -lX11 -lm
-FLAGS = -O2
OBJS = wmitime.o \
../wmgeneral/wmgeneral.o \
../wmgeneral/misc.o \
@@ -9,10 +12,10 @@
.c.o:
- cc -I/usr/X11R6/share/include $(FLAGS) -D$(LANG) -c -Wall $< -o $*.o
+ $(CC) $(CFLAGS) -D$(shell echo `uname -s`) -c $< -o $*.o $(INCDIR)
wmtime: $(OBJS)
- cc $(FLAGS) -D$(LANG) -o wmitime $^ -lXext $(LIBDIR) $(LIBS)
+ $(CC) $(CFLAGS) $(SYSTEM) -o wmitime $^ $(INCDIR) $(LIBDIR) $(LIBS)
all:: wmtime
@@ -24,24 +27,5 @@
rm -f *~
install:: wmitime
- cp -f wmitime /usr/local/bin/
- chmod 755 /usr/local/bin/wmitime
- chown root:root /usr/local/bin/wmitime
-# cp wminetrc $(HOME)/.wminetrc
-# chmod 600 $(HOME)/.wminetrc
-# cp wminetrc /etc/wminetrc
-# chmod 644 /etc/wminetrc
+ install -s -m 0755 wmitime $(DESTDIR)/bin
@echo "wmitime Installation finished..."
-
-
-
-
-
-
-
-
-
-
-
-
-