1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-31 21:57:12 +00:00
freebsd-ports/astro/wmglobe/files/patch-aa
Satoshi Taoka 209ef88804 Remove obsolete MASTER_SITES
Remove do-install target and let WRKSRC/Makefile do the job
Remove USE_GMAKE

Submitted by: KATO Tsuguru <tkato@prontomail.ne.jp>
Approved by: maintainer
Obtained from: ports@FreeBSD.ORG (the mail is one replyed for PR: 16866)
2000-02-23 04:36:20 +00:00

32 lines
887 B
Plaintext

--- Makefile.orig Wed Feb 3 05:11:37 1999
+++ Makefile Tue Feb 22 22:22:20 2000
@@ -1,12 +1,11 @@
-INC = -I/usr/X11R6/include
-LIBS = -lXext -lX11 -lm -L/usr/X11R6/lib \
- -ltiff -lXpm -lpng -lz -ljpeg -lungif -lwraster
+INC = `get-wraster-flags --cflags`
+LIBS = `get-wraster-flags --ldflags` `get-wraster-flags --libs`
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 $@
all: wmglobe
@@ -14,9 +13,8 @@
rm -f src/*.o wmglobe
wmglobe : $(OBJS)
- gcc -O2 -Wall $(OBJS) -o wmglobe $(LIBS)
- strip wmglobe
+ ${CC} ${CFLAGS} $(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