~ubuntu-branches/debian/stretch/tcl-fitstcl/stretch

« back to all changes in this revision

Viewing changes to debian/patches/set_installdir.patch

  • Committer: Package Import Robot
  • Author(s): Ole Streicher
  • Date: 2015-06-10 17:35:43 UTC
  • mfrom: (1.1.1)
  • Revision ID: package-import@ubuntu.com-20150610173543-37jifpt0bjuocrr0
Tags: 2.4-1
New upstream version

Show diffs side-by-side

added added

removed removed

Lines of Context:
11
11
 CC             = @CC@
12
12
 RANLIB         = @RANLIB@
13
13
 CFLAGS         = @CFLAGS@
14
 
@@ -61,6 +61,7 @@
 
14
@@ -61,18 +61,20 @@
15
15
                ${SHLIB_LD} ${LD_FLAGS} ${SHARED_OBJ} ${SHLIB_LD_LIBS} \
16
16
                         -L${TCL_LIB_PATH} -l${TCL_LIB} -o ${SHARED_LIB}; \
17
17
        fi
18
18
+       echo "pkg_mkIndex  . ${SHARED_LIB}" | tclsh
19
19
 
20
 
 
21
20
 install: all
22
 
@@ -68,12 +69,13 @@
 
21
        @if [ "x${C_LIB_OPTION}" = xstatic ]; then \
23
22
                echo "cp ${STATIC_LIB} ${INSTALLDIR}/lib/"; \
24
23
                cp ${STATIC_LIB} ${INSTALLDIR}/lib/; \
25
24
        else \
30
29
        fi
31
30
 
32
31
 clean:
33
 
-       -rm -rf *.o *~ ${STATIC_LIB} ${SHARED_LIB}
34
 
+       -rm -rf *.o *~ ${STATIC_LIB} ${SHARED_LIB} pkgIndex.tcl
 
32
-       -rm -rf ${LOCAL_OBJ} ${STATIC_LIB} ${SHARED_LIB}
 
33
+       -rm -rf ${LOCAL_OBJ} ${STATIC_LIB} ${SHARED_LIB} pkgIndex.tcl
35
34
 
36
35
 distclean: clean
37
36
        -rm -f config.cache config.status config.log Makefile so_locations
38
37
--- a/fitsInit.c
39
38
+++ b/fitsInit.c
40
 
@@ -24,6 +24,8 @@
 
39
@@ -160,6 +160,8 @@
41
40
 
42
41
     int i;
43
42
 
48
47
        FitsOpenFiles[i].kwds = FitsOpenKwds + i;
49
48
--- a/fitsTcl.html
50
49
+++ b/fitsTcl.html
51
 
@@ -39,19 +39,13 @@
 
50
@@ -39,24 +39,14 @@
52
51
 </p>
53
52
 
54
53
 <p>
55
54
-fitsTcl is compiled as a dynamic library which can be loaded as a TCL 
56
55
-extension. To load fitsTcl, type the following command in a Tcl shell
57
 
-(running on UNIX)
58
56
+fitsTcl is compiled as a TCL packge. To load fitsTcl, type the following
59
57
+command in a Tcl shell
 
58
 (i.e. tclsh):
60
59
 
61
60
 <pre>
62
 
-% load libfitstcl.so
 
61
-% load libfitstcl.so       (Linux)
 
62
-
 
63
-% load libfitstcl.dylib    (Mac OS X)
 
64
-
 
65
-% load libfitstcl          (Cygwin)
63
66
+% package require fitsTcl
64
67
 </pre>
65
68
 
66
 
-(Under Mac&nbsp;OS and Windows, the library is instead named
67
 
-<tt>fitstcl.dll</tt>.)  If the library is not found you may need to
 
69
-If the library is not found you may need to
68
70
-set the environment variable <tt>LD_LIBRARY_PATH</tt> (Unix only) to the
69
71
-directory containing libfitstcl.so or include an explicit path to the
70
72
-file.
71
 
 </p>
72
 
 
 
73
-</p>
 
74
-
73
75
 <p>
 
76
 In fitsTcl, every FITS file is treated as a <b>FitsFile</b> object. The 
 
77
 following sections describe how to create <b>FitsFile</b> objects and all