1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-13 07:34:50 +00:00
freebsd-ports/x11-clocks/wmitime/files/patch-aa
Kevin Lo 9a06384187 - Support X11BASE properly
- Remove USE_GMAKE
- WindowMaker -> Window Maker

PR: 20552
Submitted by: Ports Fury
2000-08-12 07:43:15 +00:00

55 lines
1.1 KiB
Plaintext

--- Makefile.orig Mon Mar 29 12:51:39 1999
+++ Makefile Sat Aug 12 01:03:21 2000
@@ -1,7 +1,9 @@
-#LANG = fr
-LIBDIR = -L/usr/X11R6/lib
+CC ?= gcc
+CFLAGS ?= -O2
+INCDIR = -I${X11BASE}/include
+DESTDIR = ${PREFIX}
+LIBDIR = -L${X11BASE}/lib
LIBS = -lXpm -lXext -lX11 -lm
-FLAGS = -O2
OBJS = wmitime.o \
../wmgeneral/wmgeneral.o \
../wmgeneral/misc.o \
@@ -9,10 +11,10 @@
.c.o:
- cc -I/usr/X11R6/share/include $(FLAGS) -D$(LANG) -c -Wall $< -o $*.o
+ $(CC) $(CFLAGS) -D$(OPSYS) -c $< -o $@ $(INCDIR)
wmtime: $(OBJS)
- cc $(FLAGS) -D$(LANG) -o wmitime $^ -lXext $(LIBDIR) $(LIBS)
+ $(CC) $(CFLAGS) $(SYSTEM) -o wmitime $(OBJS) $(LIBDIR) $(LIBS)
all:: wmtime
@@ -24,24 +26,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
+ ${BSD_INSTALL_PROGRAM} wmitime $(DESTDIR)/bin
@echo "wmitime Installation finished..."
-
-
-
-
-
-
-
-
-
-
-
-
-