aboutsummaryrefslogtreecommitdiffstats
path: root/misc/astrolog/files
diff options
context:
space:
mode:
authorache <ache@FreeBSD.org>2006-01-26 11:46:56 +0800
committerache <ache@FreeBSD.org>2006-01-26 11:46:56 +0800
commit818acba7af14ea1eeac98c726d363b0d3bf0228b (patch)
tree5adb5a0ba4d588e14140deba7ca0f93b7175a7f7 /misc/astrolog/files
parent88573008006efeb5cf8c0d1b18f6670071283b75 (diff)
downloadfreebsd-ports-gnome-818acba7af14ea1eeac98c726d363b0d3bf0228b.tar.gz
freebsd-ports-gnome-818acba7af14ea1eeac98c726d363b0d3bf0228b.tar.zst
freebsd-ports-gnome-818acba7af14ea1eeac98c726d363b0d3bf0228b.zip
Handle WITHOUT_X11 option
Use REINPLACE_CMD
Diffstat (limited to 'misc/astrolog/files')
-rw-r--r--misc/astrolog/files/patch-aa39
-rw-r--r--misc/astrolog/files/patch-ab29
2 files changed, 43 insertions, 25 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)
diff --git a/misc/astrolog/files/patch-ab b/misc/astrolog/files/patch-ab
index 47aa54291c93..adc639f16d4e 100644
--- a/misc/astrolog/files/patch-ab
+++ b/misc/astrolog/files/patch-ab
@@ -1,6 +1,27 @@
---- astrolog.h.orig Wed Dec 23 23:29:51 1998
-+++ astrolog.h Sat Apr 3 05:41:04 1999
-@@ -86,7 +86,7 @@
+--- astrolog.h.orig Thu Jan 26 06:19:59 2006
++++ astrolog.h Thu Jan 26 06:24:50 2006
+@@ -52,7 +52,7 @@
+
+ /*#define MAC /* Comment out this #define if you're not compiling for a Mac. */
+
+-#define X11 /* Comment out this #define if you don't have X windows, or */
++/*#define X11 /* Comment out this #define if you don't have X windows, or */
+ /* else have them and don't wish to compile in X graphics. */
+
+ /*#define WIN /* Comment out this #define if you don't have MS Windows, or */
+@@ -69,9 +69,11 @@
+ /*#define MACG /* Comment out this #define if you don't have a Mac, or else */
+ /* have one and don't wish to compile in Mac screen graphics. */
+
++#if defined(X11) || defined(WIN) || defined(MSG) || defined(BGI) || defined(MACG)
+ #define MOUSE /* Comment out this #define if you don't have a mouse, or */
+ /* don't wish to compile in mouse tracking features. This is */
+ /* only valid if X11, WIN, MSG, BGI, or MACG above are set. */
++#endif
+
+ #define TIME /* Comment out this #define if your compiler can't take the */
+ /* calls to the 'time' or 'localtime' functions as in time.h */
+@@ -86,7 +88,7 @@
/* 'atof' and related functions aren't defined in stdio.h, */
/* such as most PC's, Linux, VMS compilers, and NeXT's. */
@@ -9,7 +30,7 @@
/* which doesn't allow full Ansi function prototypes. This */
/* is for programmers only and has no effect on executable. */
-@@ -131,7 +131,9 @@
+@@ -131,7 +133,9 @@
*/
#ifndef PC