diff options
author | jedgar <jedgar@FreeBSD.org> | 2000-03-30 08:19:46 +0800 |
---|---|---|
committer | jedgar <jedgar@FreeBSD.org> | 2000-03-30 08:19:46 +0800 |
commit | c46097c68463743c24070a56a3358de42fbeb4c7 (patch) | |
tree | eaa76533aa0385af85beb63b223932c52cd4970f /math/wmcalc | |
parent | 60065eb7b137e1478fcad540bb36dc908d00be79 (diff) | |
download | freebsd-ports-gnome-c46097c68463743c24070a56a3358de42fbeb4c7.tar.gz freebsd-ports-gnome-c46097c68463743c24070a56a3358de42fbeb4c7.tar.zst freebsd-ports-gnome-c46097c68463743c24070a56a3358de42fbeb4c7.zip |
Support CC/X11BASE properly.
Mostly taken from:
PR: 17647
Submitted by: tkato@prontomail.ne.jp
Diffstat (limited to 'math/wmcalc')
-rw-r--r-- | math/wmcalc/files/patch-aa | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/math/wmcalc/files/patch-aa b/math/wmcalc/files/patch-aa index 2f8ed9499ec6..59b4345710bb 100644 --- a/math/wmcalc/files/patch-aa +++ b/math/wmcalc/files/patch-aa @@ -1,11 +1,11 @@ --- Makefile.orig Sat Nov 27 01:40:16 1999 -+++ Makefile Tue Mar 28 07:35:20 2000 ++++ Makefile Tue Mar 28 22:21:05 2000 @@ -1,15 +1,15 @@ -INCLUDES =-I/usr/X11R6/include/X11 -I/usr/local/include -I/usr/include/X11R6/X11 -LIBINC =-L/usr/X11R6/lib -L/usr/include/lib -LIBS = -lX11 -lXpm -lXext -+INCLUDES=-I${PREFIX}/include -+LIBINC=-L${PREFIX}/lib ++INCLUDES=-I${X11BASE}/include ++LIBINC=-L${X11BASE}/lib +LIBS = -lX11 -lXpm -lXext -lm TARGET = wmcalc @@ -13,11 +13,11 @@ .c.o: - gcc -O2 -c -Wall ${INCLUDES} ${FLAGS} $< -o $*.o -+ gcc ${CFLAGS} -c -Wall ${INCLUDES} ${FLAGS} $< -o $*.o ++ ${CC} ${CFLAGS} -c ${INCLUDES} ${FLAGS} $< -o $*.o ${TARGET}: ${OBJECTS} - gcc -O2 -o ${TARGET} ${OBJECTS} ${LIBINC} ${LIBS} -+ gcc ${CFLAGS} -o ${TARGET} ${OBJECTS} ${LIBINC} ${LIBS} ++ ${CC} ${CFLAGS} -o ${TARGET} ${OBJECTS} ${LIBINC} ${LIBS} clean:: for i in ${OBJECTS}; do if [ -e $$i ] ; then rm $$i; fi; done |