1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-04 22:33:27 +00:00
freebsd-ports/sysutils/wmapm/files/patch-aa
Satoshi Taoka b83307790b Update to version 3.1
PR: ports/21374
Submitted by: tkato@prontomail.ne.jp (KATO Tsuguru)
2000-09-27 15:32:10 +00:00

41 lines
1.0 KiB
Plaintext

--- Makefile.orig Wed Jan 12 01:42:25 2000
+++ Makefile Tue Sep 19 05:24:13 2000
@@ -1,20 +1,20 @@
-CC = gcc
-CFLAGS = -O2 -Wall
-INCDIR = -I/usr/X11R6/include
-DESTDIR= /usr/X11R6
-LIBDIR = -L/usr/X11R6/lib
+CC ?= gcc
+CFLAGS ?= -O2 -Wall
+INCDIR = -I${X11BASE}/include
+DESTDIR= ${PREFIX}
+LIBDIR = -L${X11BASE}/lib
LIBS = -lXpm -lX11 -lXext
OBJS = wmapm.o \
../wmgeneral/wmgeneral.o
.c.o:
- $(CC) $(COPTS) -D$(shell echo `uname -s`) -c $< -o $*.o $(INCDIR)
+ $(CC) $(CFLAGS) -D$(OPSYS) -c $< -o $@ $(INCDIR)
all: wmapm.o wmapm
wmapm.o: wmapm_master.xpm wmapm_mask.xbm wmapm.h
wmapm: $(OBJS)
- $(CC) $(COPTS) $(SYSTEM) -o wmapm $^ $(INCDIR) $(LIBDIR) $(LIBS)
+ $(CC) $(CFLAGS) $(SYSTEM) -o wmapm $(OBJS) $(LIBDIR) $(LIBS)
clean:
for i in $(OBJS) ; do \
@@ -23,7 +23,6 @@
rm -f wmapm
install:: wmapm
- install -s -m 0755 wmapm $(DESTDIR)/bin
- install -m 0644 wmapm.1 $(DESTDIR)/man/man1
- chmod +s $(DESTDIR)/bin/wmapm
+ ${BSD_INSTALL_PROGRAM} wmapm $(DESTDIR)/bin
+ ${BSD_INSTALL_MAN} wmapm.1 $(DESTDIR)/man/man1