Gentoo Archives: gentoo-commits

From: "Sebastien Fabbro (bicatali)" <bicatali@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sci-astronomy/ds9/files: ds9-5.7-src.patch ds9.png ds9-5.7-saotk.patch ds9-5.7-makefile.patch ds9-5.7-main.patch ds9-5.7-tcl85.patch ds9-5.5-makefile.patch ds9-5.4-saotk.patch ds9-5.2-Makefile.patch ds9-5.4-gcc43.patch ds9-5.2-gcc43.patch ds9-5.5-src.patch ds9-5.5-main.patch ds9-5.1-gcc4.2-x86.patch
Date: Wed, 04 Nov 2009 06:25:17
Message-Id: E1N5ZIw-0006Ce-7e@stork.gentoo.org
1 bicatali 09/11/04 06:25:14
2
3 Added: ds9-5.7-src.patch ds9.png ds9-5.7-saotk.patch
4 ds9-5.7-makefile.patch ds9-5.7-main.patch
5 ds9-5.7-tcl85.patch
6 Removed: ds9-5.5-makefile.patch ds9-5.4-saotk.patch
7 ds9-5.2-Makefile.patch ds9-5.4-gcc43.patch
8 ds9-5.2-gcc43.patch ds9-5.5-src.patch
9 ds9-5.5-main.patch ds9-5.1-gcc4.2-x86.patch
10 Log:
11 Version bump. Updated all patches, added icon and fix for tcl-8.5 (bug #267558)
12 (Portage version: 2.2_rc48/cvs/Linux x86_64)
13
14 Revision Changes Path
15 1.1 sci-astronomy/ds9/files/ds9-5.7-src.patch
16
17 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-astronomy/ds9/files/ds9-5.7-src.patch?rev=1.1&view=markup
18 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-astronomy/ds9/files/ds9-5.7-src.patch?rev=1.1&content-type=text/plain
19
20 Index: ds9-5.7-src.patch
21 ===================================================================
22 --- saods9.orig/src/ds9.tcl 2009-11-04 02:32:17.000000000 +0000
23 +++ saods9/src/ds9.tcl 2009-11-04 02:50:39.000000000 +0000
24 @@ -34,24 +34,34 @@
25 option add {*Label*BorderWidth} 2
26
27 # initialize
28 -set ds9(root) "zvfsmntpt"
29 +set ds9(root) "/usr/share/ds9"
30
31 -source $ds9(root)/tcl8.4/msgcat1.3/msgcat.tcl
32 -source $ds9(root)/tcl8.4/http2.5/http.tcl
33 +package require msgcat
34 +package require http
35
36 -source $ds9(root)/tk8.4/tearoff.tcl
37 +package require tearoff
38
39 -source $ds9(root)/tcllib1.10/base64/base64.tcl
40 -source $ds9(root)/tcllib1.10/log/log.tcl
41 -source $ds9(root)/tcllib1.10/ftp/ftp.tcl
42 -source $ds9(root)/tcllib1.10/textutil/repeat.tcl
43 -source $ds9(root)/tcllib1.10/textutil/tabify.tcl
44 -
45 -source $ds9(root)/tkcon2.5/tkcon.tcl
46 -source $ds9(root)/xmlrpc0.3/xmlrpc.tcl
47 -
48 -source $ds9(root)/blt2.4/graph.tcl
49 -source $ds9(root)/blt2.4/tabset.tcl
50 +package require base64
51 +package require log
52 +package require ftp
53 +package require textutil::repeat
54 +package require textutil::tabify
55 +
56 +package require tkcon
57 +package require xmlrpc
58 +
59 +package require BLT
60 +package require Tktable
61 +package require tclxpa
62 +package require img::base
63 +package require img::jpeg
64 +package require img::tiff
65 +package require img::png
66 +package require img::gif
67 +package require img::ppm
68 +package require img::bmp
69 +package require img::xbm
70 +package require img::window
71
72 source $ds9(root)/src/source.tcl
73
74
75
76
77 1.1 sci-astronomy/ds9/files/ds9.png
78
79 <<Binary file>>
80
81
82 1.1 sci-astronomy/ds9/files/ds9-5.7-saotk.patch
83
84 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-astronomy/ds9/files/ds9-5.7-saotk.patch?rev=1.1&view=markup
85 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-astronomy/ds9/files/ds9-5.7-saotk.patch?rev=1.1&content-type=text/plain
86
87 Index: ds9-5.7-saotk.patch
88 ===================================================================
89 diff -Nur saods9.orig/saotk/fitsy++/Makefile saods9/saotk/fitsy++/Makefile
90 --- saods9.orig/saotk/fitsy++/Makefile 2009-11-04 02:32:17.000000000 +0000
91 +++ saods9/saotk/fitsy++/Makefile 2009-11-04 06:26:59.000000000 +0000
92 @@ -3,8 +3,8 @@
93
94 CXXFLAGS = $(CXXOPT) -I. -I.. -I../vector -I../util \
95 -I../../include -I$(X11INCLUDE) \
96 - -I../../$(FUNTOOLSDIR)/filter -I../../$(FUNTOOLSDIR)/fitsy \
97 - -I../../$(FUNTOOLSDIR)/util
98 + -I/usr/include/funtools/filter -I/usr/include/funtools/fitsy \
99 + -I/usr/include/funtools/util -I/usr/include/wcs
100
101 SS = \
102 alloc.C \
103 diff -Nur saods9.orig/saotk/frame/fitsimage.C saods9/saotk/frame/fitsimage.C
104 --- saods9.orig/saotk/frame/fitsimage.C 2009-11-04 02:32:17.000000000 +0000
105 +++ saods9/saotk/frame/fitsimage.C 2009-11-04 06:26:59.000000000 +0000
106 @@ -26,7 +26,99 @@
107 // this is kluge to speed up doug minks wcssubs 'ksearch' routine
108 extern "C" {
109 FitsHead* wcshead = NULL;
110 - char* ksearchh(char*, char*);
111 + char* ksearchh(char* hstring, char* keyword)
112 + {
113 +/* Find entry for keyword keyword in FITS header string hstring.
114 + (the keyword may have a maximum of eight letters)
115 + NULL is returned if the keyword is not found */
116 +
117 +/* char *hstring; character string containing fits-style header
118 + information in the format <keyword>= <value> {/ <comment>}
119 + the default is that each entry is 80 characters long;
120 + however, lines may be of arbitrary length terminated by
121 + nulls, carriage returns or linefeeds, if packed is true. */
122 +/*char *keyword; character string containing the name of the variable
123 + to be returned. ksearch searches for a line beginning
124 + with this string. The string may be a character
125 + literal or a character variable terminated by a null
126 + or '$'. it is truncated to 8 characters. */
127 +{
128 + char *loc, *headnext, *headlast, *pval, *lc, *line;
129 + int icol, nextchar, lkey, nleft, lhead, lmax;
130 +
131 +#ifdef USE_SAOLIB
132 + int iel=1, ip=1, nel, np, ier;
133 + char *get_fits_head_str();
134 +
135 + if( !use_saolib ){
136 +#endif
137 +
138 + pval = 0;
139 +static int lhead0 = 0;
140 +/* Find current length of header string */
141 + if (lhead0)
142 + lmax = lhead0;
143 + else
144 + lmax = 256000;
145 + for (lhead = 0; lhead < lmax; lhead++) {
146 + if (hstring[lhead] == (char) 0)
147 + break;
148 + }
149 +
150 +/* Search header string for variable name */
151 + headlast = hstring + lhead;
152 + headnext = hstring;
153 + pval = NULL;
154 + while (headnext < headlast) {
155 + nleft = headlast - headnext;
156 + loc = strncsrch (headnext, keyword, nleft);
157 +
158 + /* Exit if keyword is not found */
159 + if (loc == NULL) {
160 + break;
161 + }
162 +
163 + icol = (loc - hstring) % 80;
164 + lkey = strlen (keyword);
165 + nextchar = (int) *(loc + lkey);
166 +
167 + /* If this is not in the first 8 characters of a line, keep searching */
168 + if (icol > 7)
169 + headnext = loc + 1;
170 +
171 + /* If parameter name in header is longer, keep searching */
172 + else if (nextchar != 61 && nextchar > 32 && nextchar < 127)
173 + headnext = loc + 1;
174 +
175 + /* If preceeding characters in line are not blanks, keep searching */
176 + else {
177 + line = loc - icol;
178 + for (lc = line; lc < loc; lc++) {
179 + if (*lc != ' ')
180 + headnext = loc + 1;
181 + }
182 +
183 + /* Return pointer to start of line if match */
184 + if (loc >= headnext) {
185 + pval = line;
186 + break;
187 + }
188 + }
189 + }
190 +/* Return pointer to calling program */
191 + return (pval);
192 +
193 +#ifdef USE_SAOLIB
194 + }
195 + else {
196 + if (get_fits_head_str(keyword,iel,ip,&nel,&np,&ier,hstring) != NULL)
197 + return(hstring);
198 + else
199 + return(NULL);
200 + }
201 +#endif
202 +}
203 +}
204
205 char* findit(char* cards, char* key)
206 {
207 diff -Nur saods9.orig/saotk/frame/Makefile saods9/saotk/frame/Makefile
208 --- saods9.orig/saotk/frame/Makefile 2009-11-04 02:32:17.000000000 +0000
209 +++ saods9/saotk/frame/Makefile 2009-11-04 06:28:21.000000000 +0000
210 @@ -5,8 +5,7 @@
211 -I. -I.. -I../widget -I../vector -I../list -I../fitsy++ -I../util \
212 -I../../include -I$(X11INCLUDE) \
213 -I../../$(FUNTOOLSDIR)/util \
214 - -I/usr/include/libxml2 \
215 - -I../../$(ASTDIR)
216 + -I/usr/include/libxml2
217
218 SS = \
219 annulus.C \
220 diff -Nur saods9.orig/saotk/widget/ps.h saods9/saotk/widget/ps.h
221 --- saods9.orig/saotk/widget/ps.h 2009-11-04 02:32:17.000000000 +0000
222 +++ saods9/saotk/widget/ps.h 2009-11-04 06:26:59.000000000 +0000
223 @@ -13,7 +13,7 @@
224 #include "zlib.h"
225 extern int DebugGZ;
226
227 -#if defined( __alpha) || defined(__mips64) || defined(__sparcv9) || defined(__M64)
228 +#if defined( __alpha) || defined(__mips64) || defined(__sparcv9) || defined(__M64) || defined(__LP64__)
229 #define BIT32 int
230 #else
231 #define BIT32 long
232
233
234
235 1.1 sci-astronomy/ds9/files/ds9-5.7-makefile.patch
236
237 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-astronomy/ds9/files/ds9-5.7-makefile.patch?rev=1.1&view=markup
238 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-astronomy/ds9/files/ds9-5.7-makefile.patch?rev=1.1&content-type=text/plain
239
240 Index: ds9-5.7-makefile.patch
241 ===================================================================
242 --- saods9.orig/Makefile 2009-11-04 02:32:17.000000000 +0000
243 +++ saods9/Makefile 2009-11-04 02:39:27.000000000 +0000
244 @@ -177,14 +177,12 @@
245 all : build
246
247 build : dirs \
248 - tcl tk \
249 - tktable tcllib tkcon xmlrpc blt \
250 - zlib tclxml tkimg tkmpeg html \
251 - xpa iis checkdns $(SIGNAL) funtools \
252 - sla ast wcssubs \
253 + xmlrpc \
254 + tkmpeg html \
255 + iis checkdns $(SIGNAL) funtools \
256 + sla \
257 rice hcompress plio \
258 - $(OPTDIR) \
259 - saotk zip zvfs ds9
260 + saotk ds9
261
262 doc : FORCE
263 @echo "Making Documentation..."
264 @@ -299,7 +297,7 @@
265
266 html : FORCE
267 @echo "Installing HTMLWIDGET..."
268 - cd $(HTMLDIR); CC='$(CC)' CFLAGS='$(OPTS)' LDFLAGS='$(LIBS)' $(PREHTMLFLAGS) $(root)/htmlwidget/configure --prefix $(root) --with-tcl=$(root)/$(TCLDIR) --with-tk=$(root)/$(TKDIR) $(XFLAGS) --enable-shared=no
269 + cd $(HTMLDIR); CC='$(CC)' CFLAGS='$(OPTS)' LDFLAGS='$(LIBS)' $(PREHTMLFLAGS) $(root)/htmlwidget/configure --prefix $(root) $(XFLAGS) --enable-shared=no
270 cd $(HTMLDIR); $(MAKE)
271 cp $(HTMLDIR)/libtkhtml.a lib/.
272
273
274
275
276 1.1 sci-astronomy/ds9/files/ds9-5.7-main.patch
277
278 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-astronomy/ds9/files/ds9-5.7-main.patch?rev=1.1&view=markup
279 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-astronomy/ds9/files/ds9-5.7-main.patch?rev=1.1&content-type=text/plain
280
281 Index: ds9-5.7-main.patch
282 ===================================================================
283 diff -Nur saods9.orig/ds9/ds9.C saods9/ds9/ds9.C
284 --- saods9.orig/ds9/ds9.C 2009-11-04 02:32:16.000000000 +0000
285 +++ saods9/ds9/ds9.C 2009-11-04 02:58:59.000000000 +0000
286 @@ -13,8 +13,6 @@
287
288 void TclSetStartupScriptFileName(const char*);
289
290 - int Zvfs_Init(Tcl_Interp*);
291 - int Zvfs_Mount(Tcl_Interp*, char*, char *);
292
293 int Blt_Init(Tcl_Interp*);
294 int Tktable_Init(Tcl_Interp*);
295 @@ -73,15 +71,13 @@
296 appname = dupstr(argv[0]);
297
298 // set default encoding dir
299 - Tcl_SetDefaultEncodingDir("./zvfsmntpt/tcl8.4");
300
301 // so that tcl and tk know where to find their libs
302 // we do it here before InitLibraryPath is called
303 - putenv((char*)"TCL_LIBRARY=./zvfsmntpt/tcl8.4");
304 - putenv((char*)"TK_LIBRARY=./zvfsmntpt/tk8.4");
305 +
306
307 // invoke startup script
308 - TclSetStartupScriptFileName("./zvfsmntpt/src/ds9.tcl");
309 + TclSetStartupScriptFileName("/usr/share/ds9/ds9.tcl");
310 }
311
312 Tcl_Interp *global_interp;
313 @@ -100,31 +96,8 @@
314 // We have to initialize the virtual filesystem before calling
315 // Tcl_Init(). Otherwise, Tcl_Init() will not be able to find
316 // its startup script files.
317 - if (Zvfs_Init(interp) == TCL_ERROR)
318 - return TCL_ERROR;
319 - Tcl_StaticPackage (interp, "zvfs", Zvfs_Init,
320 - (Tcl_PackageInitProc*)NULL);
321
322 // find current working directory, and set as mount point
323 - {
324 - Tcl_DString pwd;
325 - Tcl_DStringInit(&pwd);
326 - Tcl_GetCwd(interp, &pwd);
327 -#ifdef ZIPFILE
328 - ostringstream str;
329 - str << (char *)Tcl_GetNameOfExecutable()
330 - << "/../ds9.zip"
331 - << ends;
332 - if( Zvfs_Mount(interp, (char*)str.str().c_str(), Tcl_DStringValue(&pwd)) != TCL_OK ){
333 - cerr << "ERROR: The auxiliary ds9 file 'ds9.zip' is missing. If you moved the ds9 program from its original location, please also move the zip file to the same place." << endl;
334 - exit(1);
335 - }
336 -#else
337 - Zvfs_Mount(interp, (char *)Tcl_GetNameOfExecutable(),
338 - Tcl_DStringValue(&pwd));
339 -#endif
340 - Tcl_DStringFree(&pwd);
341 - }
342
343 // Initialize Tcl and Tk
344 if (Tcl_Init(interp))
345 @@ -133,7 +106,6 @@
346 // Tk
347 if (Tk_Init(interp))
348 return TCL_ERROR;
349 - Tcl_StaticPackage(interp,"Tk", Tk_Init, Tk_SafeInit);
350
351 {
352 Tcl_DString pwd;
353 @@ -142,18 +114,6 @@
354 Tcl_DStringFree(&pwd);
355 }
356
357 - // Blt
358 - if (Blt_Init(interp) == TCL_ERROR)
359 - return TCL_ERROR;
360 - Tcl_StaticPackage (interp, "BLT", Blt_Init,
361 - (Tcl_PackageInitProc*)NULL);
362 -
363 - // Tktable
364 - if (Tktable_Init(interp) == TCL_ERROR)
365 - return TCL_ERROR;
366 - Tcl_StaticPackage (interp, "Tktable", Tktable_Init,
367 - (Tcl_PackageInitProc*)NULL);
368 -
369 // Checkdns
370 if (Checkdns_Init(interp) == TCL_ERROR)
371 return TCL_ERROR;
372 @@ -171,13 +131,6 @@
373 return TCL_ERROR;
374 Tcl_StaticPackage (interp, "tkhtml", Tkhtml_Init,
375 (Tcl_PackageInitProc*)NULL);
376 -
377 - // Tclxpa
378 - if (Tclxpa_Init(interp) == TCL_ERROR)
379 - return TCL_ERROR;
380 - Tcl_StaticPackage (interp, "Tclxpa", Tclxpa_Init,
381 - (Tcl_PackageInitProc*)NULL);
382 -
383 // IIS
384 if (Iis_Init(interp) == TCL_ERROR)
385 return TCL_ERROR;
386 @@ -194,84 +147,6 @@
387 if (Tclxml_Init(interp) == TCL_ERROR)
388 return TCL_ERROR;
389
390 - // Tkimg
391 - if (Tkimg_Init(interp) == TCL_ERROR)
392 - return TCL_ERROR;
393 - Tcl_StaticPackage (interp, "img",
394 - Tkimg_Init,(Tcl_PackageInitProc*)NULL);
395 -
396 - // zlibtcl
397 - if (Zlibtcl_Init(interp) == TCL_ERROR)
398 - return TCL_ERROR;
399 - Tcl_StaticPackage (interp, "zlibtcl", Zlibtcl_Init,
400 - (Tcl_PackageInitProc*)NULL);
401 -
402 - // jpegtcl
403 - if (Jpegtcl_Init(interp) == TCL_ERROR)
404 - return TCL_ERROR;
405 - Tcl_StaticPackage (interp, "jpegtcl", Jpegtcl_Init,
406 - (Tcl_PackageInitProc*)NULL);
407 -
408 - // Tkimgjpeg
409 - if (Tkimgjpeg_Init(interp) == TCL_ERROR)
410 - return TCL_ERROR;
411 - Tcl_StaticPackage (interp, "jpeg", Tkimgjpeg_Init,
412 - (Tcl_PackageInitProc*)NULL);
413 -
414 - // Tifftcl
415 - if (Tifftcl_Init(interp) == TCL_ERROR)
416 - return TCL_ERROR;
417 - Tcl_StaticPackage (interp, "tifftcl", Tifftcl_Init,
418 - (Tcl_PackageInitProc*)NULL);
419 -
420 - // Tkimgtiff
421 - if (Tkimgtiff_Init(interp) == TCL_ERROR)
422 - return TCL_ERROR;
423 - Tcl_StaticPackage (interp, "tiff", Tkimgtiff_Init,
424 - (Tcl_PackageInitProc*)NULL);
425 -
426 - // Pngtcl
427 - if (Pngtcl_Init(interp) == TCL_ERROR)
428 - return TCL_ERROR;
429 - Tcl_StaticPackage (interp, "pngtcl", Pngtcl_Init,
430 - (Tcl_PackageInitProc*)NULL);
431 -
432 - // Tkimgpng
433 - if (Tkimgpng_Init(interp) == TCL_ERROR)
434 - return TCL_ERROR;
435 - Tcl_StaticPackage (interp, "png", Tkimgpng_Init,
436 - (Tcl_PackageInitProc*)NULL);
437 -
438 - // Tkimggif
439 - if (Tkimggif_Init(interp) == TCL_ERROR)
440 - return TCL_ERROR;
441 - Tcl_StaticPackage (interp, "gif", Tkimggif_Init,
442 - (Tcl_PackageInitProc*)NULL);
443 -
444 - // Tkimgppm
445 - if (Tkimgppm_Init(interp) == TCL_ERROR)
446 - return TCL_ERROR;
447 - Tcl_StaticPackage (interp, "ppm", Tkimgppm_Init,
448 - (Tcl_PackageInitProc*)NULL);
449 -
450 - // Tkimgbmp
451 - if (Tkimgbmp_Init(interp) == TCL_ERROR)
452 - return TCL_ERROR;
453 - Tcl_StaticPackage (interp, "bmp", Tkimgbmp_Init,
454 - (Tcl_PackageInitProc*)NULL);
455 -
456 - // Tkimgxbm
457 - if (Tkimgxbm_Init(interp) == TCL_ERROR)
458 - return TCL_ERROR;
459 - Tcl_StaticPackage (interp, "xbm", Tkimgxbm_Init,
460 - (Tcl_PackageInitProc*)NULL);
461 -
462 - // Tkimgwindow
463 - if (Tkimgwindow_Init(interp) == TCL_ERROR)
464 - return TCL_ERROR;
465 - Tcl_StaticPackage (interp, "window", Tkimgwindow_Init,
466 - (Tcl_PackageInitProc*)NULL);
467 -
468 // Signal_Ext
469 #ifndef _WIN32
470 if (Signal_ext_Init(interp) == TCL_ERROR)
471 @@ -294,15 +169,6 @@
472 (Tcl_PackageInitProc*)NULL);
473 #endif
474
475 - // Variables
476 - Tcl_SetVar(interp, "auto_path", "./zvfsmntpt/tcl8.4 ./zvfsmntpt/tk8.4 ./zvfsmntpt/blt2.4 ./zvfsmntpt/tcllib1.6 ./zvfsmntpt/src", TCL_GLOBAL_ONLY);
477 - Tcl_SetVar(interp, "tcl_libPath", "./zvfsmntpt/tcl8.4", TCL_GLOBAL_ONLY);
478 - Tcl_SetVar(interp, "blt_library", "./zvfsmntpt/blt2.4", TCL_GLOBAL_ONLY);
479 - Tcl_SetVar(interp, "blt_libPath", "./zvfsmntpt/blt2.4", TCL_GLOBAL_ONLY);
480 - Tcl_SetVar2(interp, "env", "TK_TABLE_LIBRARY", "", TCL_GLOBAL_ONLY);
481 -
482 - //Tcl_SetVar(interp, "tcl_rcFileName", "~/.wishrc", TCL_GLOBAL_ONLY);
483 -
484 return TCL_OK;
485 }
486
487 diff -Nur saods9.orig/ds9/Makefile saods9/ds9/Makefile
488 --- saods9.orig/ds9/Makefile 2009-11-04 02:32:16.000000000 +0000
489 +++ saods9/ds9/Makefile 2009-11-04 03:10:28.000000000 +0000
490 @@ -4,12 +4,7 @@
491 #--------------------------defines
492
493 ZDIR = zipdir/zvfsmntpt
494 -FFILES = $(ZDIR)/$(TCLVER) \
495 - $(ZDIR)/$(TKVER) \
496 - $(ZDIR)/$(BLTVER) \
497 - $(ZDIR)/$(TCLLIBVER) \
498 - $(ZDIR)/$(TKCONVER) \
499 - $(ZDIR)/$(XMLRPCVER) \
500 +FFILES = \
501 $(ZDIR)/src \
502 $(ZDIR)/msgs \
503 $(ZDIR)/doc \
504 @@ -30,39 +25,14 @@
505 ../lib/libsaotk.a \
506 ../lib/libtkhtml.a \
507 ../lib/libtkmpeg.a \
508 - ../lib/$(TCLXMLVER)/libTclxml3.2.a \
509 - ../lib/$(TKIMGVER)/libtkimgwindow1.3.a \
510 - ../lib/$(TKIMGVER)/libtkimgjpeg1.3.a \
511 - ../lib/$(TKIMGVER)/libjpegtcl1.0.a \
512 - ../lib/$(TKIMGVER)/libtkimgtiff1.3.a \
513 - ../lib/$(TKIMGVER)/libtifftcl3.6.1.a \
514 - ../lib/$(TKIMGVER)/libtkimgpng1.3.a \
515 - ../lib/$(TKIMGVER)/libpngtcl1.2.6.a \
516 - ../lib/$(TKIMGVER)/libtkimgppm1.3.a \
517 - ../lib/$(TKIMGVER)/libtkimggif1.3.a \
518 - ../lib/$(TKIMGVER)/libtkimgbmp1.3.a \
519 - ../lib/$(TKIMGVER)/libtkimgxbm1.3.a \
520 - ../lib/$(TKIMGVER)/libzlibtcl1.2.1.a \
521 - ../lib/$(TKIMGVER)/libtkimg1.3.a \
522 - ../lib/$(TKTABLEVER)/libTktable2.9.a \
523 - ../lib/libfuntools.a \
524 ../lib/librice.a \
525 ../lib/libhcomp.a \
526 ../lib/libplio.a \
527 - ../lib/libast.a \
528 ../lib/libsaotk.a \
529 - ../lib/libwcs.a \
530 ../lib/libsla.a \
531 - ../lib/libzvfs.a \
532 - ../lib/libzip.a \
533 - ../lib/libz.a \
534 - ../lib/libxpa.a \
535 ../lib/libiis.a \
536 ../lib/libcheckdns.a \
537 - ../lib/libsignal_ext.a \
538 - ../lib/libBLT24.a \
539 - ../lib/libtk8.4.a \
540 - ../lib/libtcl8.4.a
541 + ../lib/libsignal_ext.a
542 endif
543
544 ifeq ($(OS),windows)
545 @@ -165,12 +135,9 @@
546 ifneq (,$(findstring leopard,$(ARCH)))
547 CXXFLAGS = $(CXXOPT) -I. -I../include -I$(X11INCLUDE) -DZIPFILE
548
549 -ds9 : ds9Base ds9.zip
550 +ds9 : ds9Base
551 $(RM) $@
552 - cp ds9Base ds9
553 - strip ds9
554 - cp ds9 ../bin/.
555 - cp ds9.zip ../bin/.
556 + cp ds9Base ../bin/ds9
557 cd ../bin; $(CODESIGN) -s "SAOImage DS9" ds9
558
559 debug : ds9Base ds9.zip
560 @@ -180,14 +147,9 @@
561 ds9.zip : $(FILES)
562 cd zipdir; zip -r9 ../ds9.zip *
563 else
564 -ds9 : null.zip ds9Base $(FILES)
565 +ds9 : ds9Base $(FILES)
566 $(RM) $@
567 - cp ds9Base ds9.zip
568 - strip ds9.zip
569 - cat null.zip >> ds9.zip
570 - cd zipdir; zip -rA9 ../ds9.zip *
571 - mv ds9.zip ds9
572 - cp ds9 ../bin/.
573 + cp ds9Base ../bin/ds9
574
575 debug : null.zip ds9Base $(FILES)
576 $(RM) $@
577 @@ -359,6 +321,23 @@
578
579 #--------------------------linux
580
581 +# for gentoo: get rid of bundled libs
582 +ifneq (,$(findstring gentoo,$(ARCH)))
583 +ds9Base : $(OBJS) $(LIBS)
584 + $(RM) $@
585 + rm -f libstdc++.a
586 + ln -s `$(CXX) -print-file-name=libstdc++.a` .
587 + $(CXX) ${LDFLAGS} \
588 + $(OBJS) $(LIBS) -o $@ \
589 + -Wl,-Bstatic -L. -lstdc++ \
590 + -Wl,-Bdynamic -L$(X11LIB) -lX11 \
591 + -ldl -lpthread -lxml2 -L/usr/lib/$(TCLXMLVER) -lTclxml3.2 \
592 + -ltk -ltcl -lBLT24 \
593 + -lfuntools `pkg-config --libs wcstools` -lz \
594 + `ast_link`
595 + rm -f libstdc++.a
596 +endif
597 +
598 ifneq (,$(findstring linux,$(ARCH)))
599 ds9Base : $(OBJS) $(LIBS)
600 $(RM) $@
601
602
603
604 1.1 sci-astronomy/ds9/files/ds9-5.7-tcl85.patch
605
606 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-astronomy/ds9/files/ds9-5.7-tcl85.patch?rev=1.1&view=markup
607 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-astronomy/ds9/files/ds9-5.7-tcl85.patch?rev=1.1&content-type=text/plain
608
609 Index: ds9-5.7-tcl85.patch
610 ===================================================================
611 --- saods9.orig/htmlwidget/makemake.tcl.in 2005-11-09 01:06:08.000000000 +0100
612 +++ saods9/htmlwidget/makemake.tcl.in 2008-01-12 01:09:50.000000000 +0100
613 @@ -360,9 +360,7 @@
614
615 # A target to build everything.
616 #
617 -set all ${PFX}hwish${TEXE}
618 -lappend all ${PFX}hv${TEXE}
619 -lappend all ${PFX}ss${TEXE}
620 +set all libtkhtml.a
621 if {"@ENABLE_SHLIB@"=="1"} {
622 lappend all tkhtml@TARGET_SHLIB_EXT@
623 # lappend all tkhtml.so