summaryrefslogtreecommitdiff
path: root/misc/astrolog/files/patch-aa
diff options
context:
space:
mode:
authorAndrey A. Chernov <ache@FreeBSD.org>2006-01-26 03:46:56 +0000
committerAndrey A. Chernov <ache@FreeBSD.org>2006-01-26 03:46:56 +0000
commited4503f6d7afa8bfe94075dbc9fb5d0687a8469b (patch)
treeac1641f1e27c47d10c6f0006196cb53f8ab75c35 /misc/astrolog/files/patch-aa
parent[1]: (diff)
Handle WITHOUT_X11 option
Use REINPLACE_CMD
Diffstat (limited to 'misc/astrolog/files/patch-aa')
-rw-r--r--misc/astrolog/files/patch-aa39
1 files changed, 18 insertions, 21 deletions
diff --git a/misc/astrolog/files/patch-aa b/misc/astrolog/files/patch-aa
index 4af7e5601af5..292bf68515ce 100644
--- a/misc/astrolog/files/patch-aa
+++ b/misc/astrolog/files/patch-aa
@@ -1,21 +1,18 @@
-*** makefile.unx.bak Sun Sep 29 23:27:00 1996
---- Makefile Tue Jan 14 01:06:55 1997
-***************
-*** 23,30 ****
- 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
-
- astrolog:: $(OBJ)
- cc -o $(NAME) $(OBJ) $(LIBS)
---- 23,30 ----
- 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 = -L${X11BASE}/lib -lX11 -lm
-! CFLAGS += -I${X11BASE}/include -DDEFAULT_DIR=\"${PREFIX}/lib/astrolog\"
-
- astrolog:: $(OBJ)
- cc -o $(NAME) $(OBJ) $(LIBS)
+--- 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${X11BASE}/lib -lX11 -lm
++CFLAGS += -DX11 -I${X11BASE}/include -DDEFAULT_DIR=\"${PREFIX}/lib/astrolog\"
++.else
++LIBS = -lm
++CFLAGS += -DDEFAULT_DIR=\"${PREFIX}/lib/astrolog\"
++.endif
+
+ astrolog:: $(OBJ)
+ cc -o $(NAME) $(OBJ) $(LIBS)