Dash:
[t2.git] / target / psion-pda / pkg_links.patch
blobf445f158eea00ad45a813efd2abdce97336822c3
1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
3 #
4 # T2 SDE: target/psion-pda/pkg_links.patch
5 # Copyright (C) 2004 - 2005 The T2 SDE Project
6 #
7 # More information can be found in the files COPYING and README.
8 #
9 # This patch file is dual-licensed. It is available under the license the
10 # patched project is licensed under, as long as it is an OpenSource license
11 # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
12 # of the GNU General Public License as published by the Free Software
13 # Foundation; either version 2 of the License, or (at your option) any later
14 # version.
15 # --- T2-COPYRIGHT-NOTE-END ---
17 Well - the patches does multiple things:
19 It fixes the genertor helpers to work with recent libraries and tools and on
20 non-x86 arches to be able to regenerate and thus strip a lot of stuff.
22 - Rene Rebe <rene@exactcode.de>
24 diff -ur links-2.1pre16/Unicode/gen-cp links-2.1pre16-hacked/Unicode/gen-cp
25 --- links-2.1pre16/Unicode/gen-cp 2002-11-03 11:10:38.000000000 +0100
26 +++ links-2.1pre16-hacked/Unicode/gen-cp 2005-02-28 00:29:09.433976128 +0100
27 @@ -10,17 +10,17 @@
28 echo -n $i' ' 1>&2
29 echo
30 echo 'struct table_entry table_'$i' [] = {'
31 - tail +3 $i.cp | sed 's/#.*$//' | grep '^0x[89a-zA-Z]' | sed 's/[ ][ ]*/ /g' | sed 's/[ ]*$/ },/' | sed 's/ /, /' | sed 's/^[ ]*/ { /' | grep '.*,.*,'
32 + tail -n +3 $i.cp | sed 's/#.*$//' | grep '^0x[89a-zA-Z]' | sed 's/[ ][ ]*/ /g' | sed 's/[ ]*$/ },/' | sed 's/ /, /' | sed 's/^[ ]*/ { /' | grep '.*,.*,'
33 echo ' { 0, 0 }'
34 echo '};'
35 echo
36 - echo 'unsigned char *aliases_'$i' [] = {'`head -2 $i.cp | tail +2`', NULL };'
37 + echo 'unsigned char *aliases_'$i' [] = {'`head -n 2 $i.cp | tail -n +2`', NULL };'
38 n=`expr $n + 1`
39 done
40 echo
41 echo 'struct codepage_desc codepages [] = {'
42 for i in $codepages; do
43 - echo ' { "'`head -1 $i.cp`'", aliases_'$i', table_'$i' },'
44 + echo ' { "'`head -n 1 $i.cp`'", aliases_'$i', table_'$i' },'
45 done
46 echo ' { NULL, NULL, NULL }'
47 echo '};'
48 diff -ur links-2.1pre16/Unicode/index.txt links-2.1pre16-hacked/Unicode/index.txt
49 --- links-2.1pre16/Unicode/index.txt 2002-10-14 11:13:16.000000000 +0200
50 +++ links-2.1pre16-hacked/Unicode/index.txt 2005-02-28 00:27:04.527964728 +0100
51 @@ -1,35 +1,4 @@
52 7bit
53 8859_1
54 -8859_2
55 -8859_3
56 -8859_4
57 -8859_5
58 -8859_6
59 -8859_7
60 -8859_8
61 -8859_9
62 -8859_10
63 -8859_13
64 -8859_14
65 8859_15
66 -8859_16
67 -cp1250
68 -cp1251
69 -cp1252
70 -cp1256
71 -cp1257
72 -cp437
73 -cp737
74 -cp850
75 -cp852
76 -cp866
77 -cp1125
78 -macroman
79 -mac_lat2
80 -kamen
81 -koi8_r
82 -koi8_u
83 -koi8_ru
84 -tcvn5712
85 -viscii
86 utf_8
87 --- links-2.1pre16/configure 2005-01-22 21:54:20.000000000 +0100
88 +++ links-2.1pre16-hacked/configure 2005-02-17 23:17:46.000000000 +0100
89 @@ -813,7 +813,7 @@
90 AUTOCONF="./missing autoconf"
91 AUTOMAKE="./missing automake"
92 AUTOHEADER="./missing autoheader"
93 -image_formats="GIF PNG XBM"
94 +image_formats=""
98 --- links-2.1pre16/graphics/Makefile 2003-08-17 02:25:49.000000000 +0200
99 +++ links-2.1pre16-hacked/graphics/Makefile 2005-02-24 01:10:59.000000000 +0100
100 @@ -7,10 +7,10 @@
101 rm -f improcess gepns core pbm2png clip generate_font arrow
103 improcess: improcess.c
104 - gcc -o improcess $(CFLAGS) $(LDFLAFGS) -lpng improcess.c
105 + gcc -o improcess $(CFLAGS) $(LDFLAFGS) -lpng -lz -lm improcess.c
107 pbm2png: pbm2png.c
108 - gcc -o pbm2png $(CFLAGS) $(LDFLAGS) -lpng pbm2png.c
109 + gcc -o pbm2png $(CFLAGS) $(LDFLAGS) -lpng -lz -lm pbm2png.c
111 genps: genps.c
113 @@ -20,4 +20,4 @@
114 gcc -o generate_font -lm -lpng -lz $(CFLAGS) $(LDFLAGS) generate_font.c
116 arrow: arrow.c
117 - gcc -o arrow $(CFLAGS) $(LDFLAGS) arrow.c -lpng
118 + gcc -o arrow $(CFLAGS) $(LDFLAGS) arrow.c -lpng -lz -lm
119 --- links-2.1pre16/graphics/pbm2png.c 2002-05-05 22:47:32.000000000 +0200
120 +++ links-2.1pre16-hacked/graphics/pbm2png.c 2005-02-24 01:10:24.000000000 +0100
121 @@ -149,14 +149,14 @@
122 sprintf(string,"%s%d.html",basename_,index);
123 f=fopen(string,"w");
125 - fprintf(f,"<html><head><title>%s</title></head><body bgcolor=\"#000000\" text=\"#00ff00\" link=\"#ffff00\" vlink=\"#00ffff\"
126 + fprintf(f,"<html><head><title>%s</title></head><body bgcolor=\"#000000\" text=\"#00ff00\" link=\"#ffff00\" vlink=\"#00ffff\"\
127 alink=\"#ffff00\">\n",titlestring);
128 fprintf(f,"<h1>%s, Page %d</h1>\n",titlestring,index+pageoffset);
129 fprintf(f,"<p><table border=0 cellspacing=0 cellpadding=2><tr>");
130 fprintf(f,"<td valign=\"top\"><table border=0 cellpadding=0 cellspacing=0><tr><td>");
131 if (index)
133 - fprintf(f,"<a href=\"%s%d.html\"><img src=\"left.png\" border=0
134 + fprintf(f,"<a href=\"%s%d.html\"><img src=\"left.png\" border=0\
135 ></a>\n",basename_,index-1);
137 else
138 @@ -166,17 +166,17 @@
139 fprintf(f,"</td><td>");
140 if (index<filenumber-1)
142 - fprintf(f,"<a href=\"%s%d.html\">
143 + fprintf(f,"<a href=\"%s%d.html\">\
144 <img src=\"right.png\" border=0></a>\n",basename_,index+1);
146 else
148 fprintf(f,"<img src=\"right.png\" border=0>\n");
150 - fprintf(f,"</td></tr><tr><td colspan=2><a href=\"index.html\">
151 + fprintf(f,"</td></tr><tr><td colspan=2><a href=\"index.html\">\
152 <img src=\"idx.png\" border=0 ></a></td>");
153 fprintf(f,"</tr></table>");
154 - fprintf(f,"</td><td><img src=\"%s%d.png\" border=\"0\"
155 + fprintf(f,"</td><td><img src=\"%s%d.png\" border=\"0\"\
156 ></td>\n</tr></table>",basename_,index);
157 fprintf(f,"</body></html>");
158 fclose(f);
159 @@ -426,7 +426,7 @@
160 int a,z;
162 if (argc<7){
163 - fprintf(stderr,"Usage: pbm2png <hundred_dpi> <basename_> <titlestring>
164 + fprintf(stderr,"Usage: pbm2png <hundred_dpi> <basename_> <titlestring>\
165 <bottom_html_code> <pageoffset> <ifname> [starting_filenumber]\n");
166 return 0;
168 --- links-2.1pre16/language.inc 2005-01-22 21:51:55.000000000 +0100
169 +++ links-2.1pre16-hacked/language.inc 2005-02-24 00:51:30.000000000 +0100
170 @@ -513,6 +513,7 @@
171 { 0, NULL }
174 +#ifdef WANT_NLS
175 struct translation translation_belarusian [] = {
176 { 0, NULL },
177 {T__CHAR_SET, "koi8-ru" },
178 @@ -16416,6 +16417,8 @@
179 { 0, NULL }
182 +#endif
184 struct translation_desc translations [] = {
185 { translation_english },
186 { translation_belarusian },