summaryrefslogtreecommitdiff
blob: 43306cee355ffa1b6b5b9edfa227662e43bfa31a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
diff -Nur funtools-1.4.4.orig/filter/Makefile.in funtools-1.4.4/filter/Makefile.in
--- funtools-1.4.4.orig/filter/Makefile.in	2013-07-08 14:28:30.169439760 -0700
+++ funtools-1.4.4/filter/Makefile.in	2013-07-08 14:29:44.026841106 -0700
@@ -29,6 +29,9 @@
 
 prefix =		@prefix@
 exec_prefix =		@exec_prefix@
+bindir = 		@bindir@
+includedir = 		@includedir@
+libdir = 		@libdir@
 
 # The following definition can be set to non-null for special systems
 # like AFS with replication.  It allows the pathnames used for installation
@@ -38,13 +41,13 @@
 INSTALL_ROOT =
 
 # Directory in which to install the .a, .so, and .o files:
-LIB_INSTALL_DIR =	$(INSTALL_ROOT)$(exec_prefix)/lib
+LIB_INSTALL_DIR =	$(INSTALL_ROOT)$(libdir)
 
 # Directory in which to install the programs:
-BIN_INSTALL_DIR =	$(INSTALL_ROOT)$(exec_prefix)/bin
+BIN_INSTALL_DIR =	$(INSTALL_ROOT)$(bindir)
 
 # Directory in which to install the include files:
-INCLUDE_INSTALL_DIR =	$(INSTALL_ROOT)$(prefix)/include
+INCLUDE_INSTALL_DIR =	$(INSTALL_ROOT)$(includedir)/funtools/filter
 
 # util files are in the util directory at same level
 UTIL_INC =		-I../util
@@ -55,7 +58,7 @@
 #FITSY_LIBS =		-L../fitsy
 
 # wcs files are in the wcs subdirectory
-WCS_INC =		-I../wcs
+WCS_INC =		-I/usr/include/wcs
 #WCS_LIBS =		-L../wcs -lwcs
 
 # extra includes for compiling
@@ -161,7 +164,7 @@
 	    do \
 	    if [ ! -d $$i ] ; then \
 		echo "Making directory $$i"; \
-		mkdir $$i; \
+		mkdir -p $$i; \
 		chmod 755 $$i; \
 		else true; \
 		fi; \
@@ -228,6 +231,10 @@
 
 swap_c.h:	swap.c inc.sed
 		$(RM) swap_c.h
+		./inc.sed SWAP_C < swap.c > swap_c.h
+
+swap_c.h:	swap.c inc.sed
+		$(RM) swap_c.h
 		./inc.sed SWAP_C < swap.c > swap_c.h
 
 events_c.h:	evfilter.c inc.sed
diff -Nur funtools-1.4.4.orig/fitsy/Makefile.in funtools-1.4.4/fitsy/Makefile.in
--- funtools-1.4.4.orig/fitsy/Makefile.in	2013-07-08 14:28:30.147439547 -0700
+++ funtools-1.4.4/fitsy/Makefile.in	2013-07-08 14:29:44.026841106 -0700
@@ -28,6 +28,11 @@
 
 prefix =		@prefix@
 exec_prefix =		@exec_prefix@
+bindir = 		@bindir@
+includedir = 		@includedir@
+mandir = 		@mandir@
+datadir = 		@datadir@
+libdir =		@libdir@
 
 # The following definition can be set to non-null for special systems
 # like AFS with replication.  It allows the pathnames used for installation
@@ -37,13 +42,13 @@
 INSTALL_ROOT =
 
 # Directory in which to install the .a, .so, and .o files:
-LIB_INSTALL_DIR =	$(INSTALL_ROOT)$(exec_prefix)/lib
+LIB_INSTALL_DIR =	$(INSTALL_ROOT)$(libdir)
 
 # Directory in which to install the programs:
-BIN_INSTALL_DIR =	$(INSTALL_ROOT)$(exec_prefix)/bin
+BIN_INSTALL_DIR =	$(INSTALL_ROOT)$(bindir)
 
 # Directory in which to install the include files:
-INCLUDE_INSTALL_DIR =	$(INSTALL_ROOT)$(prefix)/include
+INCLUDE_INSTALL_DIR =	$(INSTALL_ROOT)$(includedir)/funtools/fitsy
 
 # There are just too many different versions of "install" around;
 # better to use the install-sh script that comes with the distribution,
@@ -187,7 +192,7 @@
 	    do \
 	    if [ ! -d $$i ] ; then \
 		echo "Making directory $$i"; \
-		mkdir $$i; \
+		mkdir -p $$i; \
 		chmod 755 $$i; \
 		else true; \
 		fi; \
diff -Nur funtools-1.4.4.orig/gnu/Makefile.in funtools-1.4.4/gnu/Makefile.in
--- funtools-1.4.4.orig/gnu/Makefile.in	2013-07-08 14:28:30.151439619 -0700
+++ funtools-1.4.4/gnu/Makefile.in	2013-07-08 14:29:44.026841106 -0700
@@ -21,6 +21,11 @@
 
 prefix =		@prefix@
 exec_prefix =		@exec_prefix@
+bindir = 		@bindir@
+includedir = 		@includedir@
+mandir = 		@mandir@
+datadir = 		@datadir@
+libdir =		@libdir@
 
 # The following definition can be set to non-null for special systems
 # like AFS with replication.  It allows the pathnames used for installation
@@ -53,13 +58,13 @@
 EXTRA_OBJS = 		@EXTRA_OBJS@
 
 # Directory in which to install the .a, .so, and .o files:
-LIB_INSTALL_DIR =	$(INSTALL_ROOT)$(exec_prefix)/lib
+LIB_INSTALL_DIR =	$(INSTALL_ROOT)$(libdir)
 
 # Directory in which to install the programs:
-BIN_INSTALL_DIR =	$(INSTALL_ROOT)$(exec_prefix)/bin
+BIN_INSTALL_DIR =	$(INSTALL_ROOT)$(bindir)
 
 # Directory in which to install the include files:
-INCLUDE_INSTALL_DIR =	$(INSTALL_ROOT)$(prefix)/include
+INCLUDE_INSTALL_DIR =	$(INSTALL_ROOT)$(includedir)
 
 # There are just too many different versions of "install" around;
 # better to use the install-sh script that comes with the distribution,
diff -Nur funtools-1.4.4.orig/Makefile.in funtools-1.4.4/Makefile.in
--- funtools-1.4.4.orig/Makefile.in	2013-07-08 14:28:30.170439766 -0700
+++ funtools-1.4.4/Makefile.in	2013-07-08 15:49:21.427756907 -0700
@@ -28,28 +28,33 @@
 
 prefix =		@prefix@
 exec_prefix =		@exec_prefix@
+bindir = 		@bindir@
+includedir = 		@includedir@
+mandir = 		@mandir@
+datadir = 		@datadir@
+libdir = 		@libdir@
 
 # The following definition can be set to non-null for special systems
 # like AFS with replication.  It allows the pathnames used for installation
 # to be different than those used for actually reference files at
 # run-time.  INSTALL_ROOT is prepended to $prefix and $exec_prefix
 # when installing files.
-INSTALL_ROOT =
+INSTALL_ROOT = $(DESTDIR)
 
 # Directory in which to install the .a or .so binary for the FUNTOOLS library:
-LIB_INSTALL_DIR =	$(INSTALL_ROOT)$(exec_prefix)/lib
+LIB_INSTALL_DIR =	$(INSTALL_ROOT)$(libdir)
 
 # Directory in which to install the program wish:
-BIN_INSTALL_DIR =	$(INSTALL_ROOT)$(exec_prefix)/bin
+BIN_INSTALL_DIR =	$(INSTALL_ROOT)$(bindir)
 
 # Directory in which to install the funtools.h include file:
-INCLUDE_INSTALL_DIR =	$(INSTALL_ROOT)$(prefix)/include
+INCLUDE_INSTALL_DIR =	$(INSTALL_ROOT)$(includedir)/funtools
 
 # Top-level directory for manual entries:
-MAN_INSTALL_DIR =	$(INSTALL_ROOT)$(prefix)/man
+MAN_INSTALL_DIR =	$(INSTALL_ROOT)$(mandir)
 
 # Top-level directory for share entries:
-MAN_SHARE_DIR =		$(INSTALL_ROOT)$(prefix)/share/funtools
+MAN_SHARE_DIR =		$(INSTALL_ROOT)$(datadir)/funtools
 
 # util files are in the util subdirectory
 UTIL_INC =		-I./util
@@ -60,8 +65,8 @@
 # FITSY_LIBS =		-L./fitsy -lfitsy
 
 # wcs files are in the wcs subdirectory
-WCS_INC =		-I./wcs
-# WCS_LIBS =		-L./wcs -lwcs
+#WCS_INC =		-I../wcs
+#WCS_LIBS =		-L./wcs -lwcs
 
 # filter files are in the filter subdirectory
 FILTER_INC =        	-I./filter
@@ -160,7 +165,7 @@
 
 # this is used in the link line
 # LLIB =	$(LIB)
-LLIB =		@LLIB@
+LLIB =		-L. -lfuntools
 
 # libraries containing main as subroutines
 MAINLIB =	lib$(PACKAGE)MainLib.a
@@ -188,7 +193,7 @@
 
 # Subdirectories to run make in for the primary targets.
 
-SUBLIBS =	util fitsy wcs filter
+SUBLIBS =	util fitsy filter
 
 SUBDIRS =	$(SUBLIBS) gnu funtest faq
 
@@ -225,10 +230,10 @@
 		echo $(PROGS) | ./mkfunmainlib > funmainlib.c;
 
 shlib:		sublib $(LIBOBJS)
-		@(rm -rf $(PACKAGE)tmp; mkdir $(PACKAGE)tmp; \
+		@(rm -rf $(PACKAGE)tmp; mkdir -p $(PACKAGE)tmp; \
 		(cd $(PACKAGE)tmp && ar x ../$(LIB)); \
 		CC='$(CC)' CXX=$(CXX) \
-		./mklib -o $(PACKAGE) $(PACKAGE)tmp/*.o; \
+		./mklib $(PACKAGE)tmp/*.o $(LIBS) -o $(PACKAGE) ; \
 		rm -rf $(PACKAGE)tmp;)
 
 mainlib:	$(MAINLIBOBJS) funmainlib.o lex.calc.o
@@ -237,7 +242,7 @@
 		$(RANLIB) lib$(PACKAGE)MainLib.a)
 
 shmainlib:	mainlib
-		@(rm -rf $(PACKAGE)tmp; mkdir $(PACKAGE)tmp; \
+		@(rm -rf $(PACKAGE)tmp; mkdir -p $(PACKAGE)tmp; \
 		(cd $(PACKAGE)tmp && ar x ../lib$(PACKAGE)MainLib.a); \
 		CC='$(CC)' CXX='$(CXX)' \
 		./mklib -o $(PACKAGE)MainLib -L. -lfuntools $(PACKAGE)tmp/*.o;\
@@ -248,7 +253,7 @@
 		$(RANLIB) libtclfun.a)
 
 shtclfun:	tclfun
-		@(rm -rf $(PACKAGE)tmp; mkdir $(PACKAGE)tmp; \
+		@(rm -rf $(PACKAGE)tmp; mkdir -p $(PACKAGE)tmp; \
 		(cd $(PACKAGE)tmp && ar x ../$(LIB) && ar x ../libtclfun.a); \
 		CC='$(CC)' CXX='$(CXX)' \
 		./mklib -o tclfun $(PACKAGE)tmp/*.o; \
@@ -422,7 +427,7 @@
 	    do \
 	    if [ ! -d $$i ] ; then \
 		echo "Making directory $$i"; \
-		mkdir $$i; \
+		mkdir -p $$i; \
 		chmod 755 $$i; \
 		else true; \
 		fi; \
@@ -462,7 +467,7 @@
 install-man:
 	@if [ ! -d $(MAN_INSTALL_DIR) ] ; then \
 	    echo "Making directory $(MAN_INSTALL_DIR)"; \
-	    mkdir $(MAN_INSTALL_DIR); \
+	    mkdir -p $(MAN_INSTALL_DIR); \
 	    chmod 755 $(MAN_INSTALL_DIR); \
 	    else true; \
 	fi;
@@ -473,7 +478,7 @@
 		M="$(MAN_INSTALL_DIR)/man$$E"; \
 		if [ ! -d $$M ] ; then \
 		    echo "Making directory $$M"; \
-		    mkdir $$M; \
+		    mkdir -p $$M; \
 		    chmod 755 $$M; \
 		    else true; \
 		fi; \
diff -Nur funtools-1.4.4.orig/util/Makefile.in funtools-1.4.4/util/Makefile.in
--- funtools-1.4.4.orig/util/Makefile.in	2013-07-08 14:28:30.160439699 -0700
+++ funtools-1.4.4/util/Makefile.in	2013-07-08 14:29:44.026841106 -0700
@@ -29,6 +29,11 @@
 
 prefix =		@prefix@
 exec_prefix =		@exec_prefix@
+bindir = 		@bindir@
+includedir = 		@includedir@
+mandir = 		@mandir@
+datadir = 		@datadir@
+libdir =		@libdir@
 
 # The following definition can be set to non-null for special systems
 # like AFS with replication.  It allows the pathnames used for installation
@@ -38,13 +43,13 @@
 INSTALL_ROOT =
 
 # Directory in which to install the .a, .so, and .o files:
-LIB_INSTALL_DIR =	$(INSTALL_ROOT)$(exec_prefix)/lib
+LIB_INSTALL_DIR =	$(INSTALL_ROOT)$(libdir)
 
 # Directory in which to install the programs:
-BIN_INSTALL_DIR =	$(INSTALL_ROOT)$(exec_prefix)/bin
+BIN_INSTALL_DIR =	$(INSTALL_ROOT)$(bindir)
 
 # Directory in which to install the include files:
-INCLUDE_INSTALL_DIR =	$(INSTALL_ROOT)$(prefix)/include
+INCLUDE_INSTALL_DIR =	$(INSTALL_ROOT)$(includedir)/funtools/util
 
 # extra includes for compiling
 INCLUDES =
@@ -200,12 +205,24 @@
 tlaunch2:	tlaunch2.o
 		$(CC) $(LDFLAGS) tlaunch2.o -o tlaunch2
 
+tlaunch.o:	tlaunch.c
+
+tlaunch:	tlaunch.o launch.o $(LIB)
+		$(CC) $(LDFLAGS) tlaunch.o launch.o -o tlaunch $(LIB) $(LIBS) \
+		$(EXTRA_LIBS)
+
+tlaunch2.o:	tlaunch2.c
+
+tlaunch2:	tlaunch2.o
+		$(CC) $(LDFLAGS) tlaunch2.o -o tlaunch2
+
+
 install-binaries: $(LIB) $(PROGS)
 	@for i in $(LIB_INSTALL_DIR) $(INCLUDE_INSTALL_DIR) $(BIN_INSTALL_DIR) ; \
 	    do \
 	    if [ ! -d $$i ] ; then \
 		echo "Making directory $$i"; \
-		mkdir $$i; \
+		mkdir -p $$i; \
 		chmod 755 $$i; \
 		else true; \
 		fi; \
@@ -272,4 +289,11 @@
 		purift $(CC) $(LDFLAGS) tlaunch.o xlaunch.o -o tlaunch \
 		$(LIB) $(LIBS) $(EXTRA_LIBS)
 
+pure:		tlaunch.pure
+
+tlaunch.pure:	tlaunch.o launch.o $(LIB)
+		purift $(CC) $(LDFLAGS) tlaunch.o launch.o -o tlaunch \
+		$(LIB) $(LIBS) $(EXTRA_LIBS)
+
+
 # DO NOT DELETE THIS LINE -- make depend depends on it.