openbsd-ports/astro/wmsun/patches/patch-Makefile

41 lines
1.0 KiB
Plaintext

$OpenBSD: patch-Makefile,v 1.2 2001/04/23 14:43:11 wilfried Exp $
--- wmSun/Makefile.orig Wed Jan 6 03:28:39 1999
+++ wmSun/Makefile Tue Jan 9 17:53:48 2001
@@ -1,8 +1,5 @@
-CC = gcc
-CFLAGS = -O2 -Wall
-INCDIR = -I/usr/X11R6/include/X11
-DESTDIR= /usr/X11R6
-LIBDIR = -L/usr/X11R6/lib
+CFLAGS += -I${X11BASE}/include
+LIBDIR = -L${X11BASE}/lib
@@ -22,14 +19,14 @@ OBJS = wmSun.o SunRise.o ../wmgeneral/
.c.o:
- $(CC) $(COPTS) -D$(shell echo `uname -s`) -c $< -o $*.o $(INCDIR)
+ $(CC) $(CFLAGS) -c $< -o $*.o
all: wmSun.o wmSun
wmSun.o: wmSun_master.xpm wmSun_mask.xbm
wmSun: $(OBJS)
- $(CC) $(COPTS) $(SYSTEM) -lm -o wmSun $^ $(INCDIR) $(LIBDIR) $(LIBS)
+ $(CC) $(COPTS) $(SYSTEM) -o wmSun $(OBJS) $(INCDIR) $(LIBDIR) $(LIBS) -lm
clean:
for i in $(OBJS) ; do \
@@ -38,6 +35,5 @@ clean:
rm -f wmSun
install:: wmSun
- install -s -m 0755 wmSun $(DESTDIR)/bin
- install -m 0644 wmSun.1 $(DESTDIR)/man/man1
-
+ $(BSD_INSTALL_PROGRAM) wmSun $(PREFIX)/bin
+ $(BSD_INSTALL_MAN) wmSun.1 $(PREFIX)/man/man1