aboutsummaryrefslogtreecommitdiff
path: root/misc/astrolog/files/patch-aa
blob: 0598b081ba64a1a9b127b5b96a24bb606bf5cef3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
--- Makefile.orig	Wed Dec 23 23:29:57 1998
+++ Makefile	Thu Jan 26 06:18:04 2006
@@ -23,8 +23,13 @@
  charts0.o charts1.o charts2.o charts3.o intrpret.o\
  xdata.o xgeneral.o xdevice.o xcharts0.o xcharts1.o xcharts2.o xscreen.o
 # If you don't have X windows, delete the "-lX11" part from the line below:
-LIBS = -lm -lX11
-CFLAGS = -O
+.if defined(X11)
+LIBS = -L${LOCALBASE}/lib -lX11 -lm
+CFLAGS += -DX11 -I${LOCALBASE}/include -DDEFAULT_DIR=\"${PREFIX}/lib/astrolog\"
+.else
+LIBS = -lm
+CFLAGS += -DDEFAULT_DIR=\"${PREFIX}/lib/astrolog\"
+.endif
 
 astrolog:: $(OBJ)
 	cc -o $(NAME) $(OBJ) $(LIBS)