openbsd-ports/astro/wmglobe/patches/patch-Makefile
2001-11-10 11:13:48 +00:00

33 lines
961 B
Plaintext

$OpenBSD: patch-Makefile,v 1.2 2001/11/10 11:13:49 heko Exp $
--- Makefile.orig Sun Aug 12 18:41:22 2001
+++ Makefile Fri Nov 2 15:34:42 2001
@@ -1,12 +1,12 @@
-INC = -I/usr/X11R6/include
-LIBS = -lXext -lX11 -lm -L/usr/X11R6/lib \
+INC = -I$(X11BASE)/include -I$(LOCALBASE)/include
+LIBS = -lXext -lX11 -lm -L$(X11BASE)/lib -L$(LOCALBASE)/lib \
-ltiff -lXpm -lpng -lz -ljpeg -lungif -lwraster
OBJS = src/wmglobe.o src/rend.o src/wmgutil.o \
src/sunpos.o src/myconvert.o src/mycontext.o
.c.o :
- gcc -c -O2 -Wall $(INC) $< -o $*.o
+ $(CC) -c $(CFLAGS) $(INC) $< -o $*.o
all: wmglobe
@@ -14,9 +14,8 @@ clean:
rm -f src/*.o wmglobe
wmglobe : $(OBJS)
- gcc -O2 -Wall $(OBJS) -o wmglobe $(LIBS)
- strip wmglobe
+ $(CC) $(OBJS) -o wmglobe $(LIBS)
install :
- install wmglobe /usr/local/bin
- install wmglobe.1 /usr/local/man/man1
+ $(BSD_INSTALL_PROGRAM) wmglobe $(PREFIX)/bin
+ $(BSD_INSTALL_MAN) wmglobe.1 $(PREFIX)/man/man1