Date:2011-03-26 23:36:04 (10 years 9 months ago)
Author:kyak
Commit:a34928054aa62fa9d064c4cb5a4bb33e716ac9ad
Message:w3m: update to 0.5.3, rework patches

Files: libgc/Makefile (2 diffs)
w3m/Makefile (2 diffs)
w3m/files/functable.c (1 diff)
w3m/files/tagtable.c (1 diff)
w3m/patches/001-configure.patch (1 diff)
w3m/patches/001-disable-host-libs-detection.patch (1 diff)
w3m/patches/002-dont-overwrite-pkg-config.patch (1 diff)
w3m/patches/002-main.patch (1 diff)
w3m/patches/003-GC_set_warn_proc.patch (1 diff)
w3m/patches/003-Makefile.in.patch (1 diff)
w3m/patches/004-gdk-override.patch (1 diff)
w3m/patches/004-mktable-host.patch (1 diff)

Change Details

libgc/Makefile
1515PKG_MD5SUM:=0a6785ebb61c6e2b50c3952c3bbf9ea1
1616
1717PKG_INSTALL:=1
18PKG_BUILD_DEPENDS:=gc/host
1819
1920include $(INCLUDE_DIR)/package.mk
21include $(INCLUDE_DIR)/host-build.mk
2022
2123define Package/gc
2224    TITLE:=gc
...... 
6567        $(1)/usr/lib/
6668endef
6769
70$(eval $(call HostBuild))
6871$(eval $(call BuildPackage,gc))
w3m/Makefile
88include $(TOPDIR)/rules.mk
99
1010PKG_NAME:=w3m
11PKG_VERSION:=0.5.2
12PKG_RELEASE:=2
11PKG_VERSION:=0.5.3
12PKG_RELEASE:=1
1313
1414PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
1515PKG_SOURCE_URL:=@SF/$(PKG_NAME)
16PKG_MD5SUM:=ba06992d3207666ed1bf2dcf7c72bf58
16PKG_MD5SUM:=1b845a983a50b8dec0169ac48479eacc
17
18PKG_FIXUP:=autoreconf
1719
1820include $(INCLUDE_DIR)/package.mk
1921include $(INCLUDE_DIR)/nls.mk
...... 
3133    w3m is a text-based web browser
3234endef
3335
34define Build/Prepare
35    $(call Build/Prepare/Default)
36    $(CP) $(FILES_DIR)/functable.c $(PKG_BUILD_DIR)
37    $(CP) $(FILES_DIR)/tagtable.c $(PKG_BUILD_DIR)
38endef
39
4036CONFIGURE_ARGS += --with-ssl=$(STAGING_DIR)/usr \
4137          --with-gc=$(STAGING_DIR)/usr/lib \
4238          --disable-xface \
4339          --with-imagelib="gtk2" \
44          --enable-image="fb"
40          --enable-image="fb" \
41          --with-termlib="ncurses"
4542
46CONFIGURE_VARS += ac_cv_lib_gc_GC_init=yes
43TARGET_LDFLAGS += -Wl,-rpath-link=$(STAGING_DIR)/usr/lib
4744
48TARGET_CFLAGS+=-I$(STAGING_DIR)/usr/include/glib-2.0 \
49           -I$(STAGING_DIR)/usr/include/gtk-2.0 \
50           -I$(STAGING_DIR)/usr/include/pango-1.0 \
51           -I$(STAGING_DIR)/usr/include/cairo
52
53TARGET_LDFLAGS+=-Wl,-rpath-link=$(STAGING_DIR)/usr/lib \
54        $(INTL_LDFLAGS) $(ICONV_LDFLAGS) \
55        -lintl -lglib-2.0 -liconv -lgdk_pixbuf-2.0
45define Build/Configure
46    $(call Build/Configure/Default)
47    (mkdir $(PKG_BUILD_DIR)/host && \
48    cd $(PKG_BUILD_DIR)/host && \
49    $(HOSTCC) -DDUMMY -c -o dummy.o ../entity.c && \
50    $(HOSTCC) -o mktable ../mktable.c dummy.o ../Str.c ../hash.c ../myctype.c -Wl,-rpath="$(STAGING_DIR_HOST)/lib" -L$(STAGING_DIR_HOST)/lib -I$(STAGING_DIR_HOST)/include -lgc)
51endef
5652
5753define Package/w3m/install
5854    $(INSTALL_DIR) $(1)/usr/bin $(1)/usr/lib/w3m
5955    $(INSTALL_BIN) $(PKG_BUILD_DIR)/w3m $(1)/usr/bin/
60    $(INSTALL_BIN) $(PKG_BUILD_DIR)/w3mimgdisplay $(1)/usr/lib/w3m
56    $(INSTALL_BIN) $(PKG_BUILD_DIR)/w3mimgdisplay $(1)/usr/lib/w3m/
6157endef
6258
6359$(eval $(call BuildPackage,w3m))
w3m/files/functable.c
1#include "hash.h"
2#include <stdio.h>
3#include "funcname1.h"
4static HashItem_si MyHashItem[] = {
5  /* 0 */ {"SUSPEND",FUNCNAME_susp,&MyHashItem[1]},
6  /* 1 */ {"SET_OPTION",FUNCNAME_setOpt,&MyHashItem[2]},
7  /* 2 */ {"END",FUNCNAME_goLineL,NULL},
8  /* 3 */ {"VIEW",FUNCNAME_vwSrc,NULL},
9  /* 4 */ {"PREV_VISITED",FUNCNAME_prevVA,&MyHashItem[5]},
10  /* 5 */ {"EXTERN",FUNCNAME_extbrz,NULL},
11  /* 6 */ {"UNDO",FUNCNAME_undoPos,NULL},
12  /* 7 */ {"SHELL",FUNCNAME_execsh,&MyHashItem[8]},
13  /* 8 */ {"RIGHT",FUNCNAME_col1R,&MyHashItem[9]},
14  /* 9 */ {"PREV_WORD",FUNCNAME_movLW,&MyHashItem[10]},
15  /* 10 */ {"LEFT",FUNCNAME_col1L,&MyHashItem[11]},
16  /* 11 */ {"INTERRUPT",FUNCNAME_susp,NULL},
17  /* 12 */ {"TAB_GOTO_RELATIVE",FUNCNAME_tabrURL,NULL},
18  /* 13 */ {"NEXT_UP",FUNCNAME_nextU,NULL},
19  /* 14 */ {"CLOSE_TAB_MOUSE",FUNCNAME_closeTMs,NULL},
20  /* 15 */ {"DOWN",FUNCNAME_ldown1,NULL},
21  /* 16 */ {"HISTORY",FUNCNAME_ldHist,NULL},
22  /* 17 */ {"SEARCH",FUNCNAME_srchfor,&MyHashItem[18]},
23  /* 18 */ {"NEXT_VISITED",FUNCNAME_nextVA,&MyHashItem[19]},
24  /* 19 */ {"NEXT_LEFT_UP",FUNCNAME_nextLU,&MyHashItem[20]},
25  /* 20 */ {"MOVE_UP",FUNCNAME_movU,&MyHashItem[21]},
26  /* 21 */ {"DOWNLOAD",FUNCNAME_svSrc,NULL},
27  /* 22 */ {"VIEW_IMAGE",FUNCNAME_followI,&MyHashItem[23]},
28  /* 23 */ {"MARK",FUNCNAME__mark,&MyHashItem[24]},
29  /* 24 */ {"INFO",FUNCNAME_pginfo,NULL},
30  /* 25 */ {"VERSION",FUNCNAME_dispVer,&MyHashItem[26]},
31  /* 26 */ {"BEGIN",FUNCNAME_goLineF,NULL},
32  /* 27 */ {"REDRAW",FUNCNAME_rdrwSc,NULL},
33  /* 28 */ {"QUIT",FUNCNAME_qquitfm,&MyHashItem[29]},
34  /* 29 */ {"DOWNLOAD_LIST",FUNCNAME_ldDL,NULL},
35  /* 30 */ {"REG_MARK",FUNCNAME_reMark,NULL},
36  /* 31 */ {"MOVE_RIGHT",FUNCNAME_movR,NULL},
37  /* 32 */ {"MARK_MID",FUNCNAME_chkNMID,&MyHashItem[33]},
38  /* 33 */ {"LOAD",FUNCNAME_ldfile,NULL},
39  /* 34 */ {"EXEC_SHELL",FUNCNAME_execsh,NULL},
40  /* 35 */ {"VIEW_BOOKMARK",FUNCNAME_ldBmark,&MyHashItem[36]},
41  /* 36 */ {"TAB_MOUSE",FUNCNAME_tabMs,&MyHashItem[37]},
42  /* 37 */ {"STOP_IMAGE",FUNCNAME_stopI,NULL},
43  /* 38 */ {"SHIFT_RIGHT",FUNCNAME_shiftr,&MyHashItem[39]},
44  /* 39 */ {"SEARCH_NEXT",FUNCNAME_srchnxt,NULL},
45  /* 40 */ {"PEEK",FUNCNAME_curURL,NULL},
46  /* 41 */ {"DICT_WORD_AT",FUNCNAME_dictwordat,NULL},
47  /* 42 */ {"SOURCE",FUNCNAME_vwSrc,&MyHashItem[43]},
48  /* 43 */ {"SAVE_LINK",FUNCNAME_svA,&MyHashItem[44]},
49  /* 44 */ {"GOTO",FUNCNAME_goURL,&MyHashItem[45]},
50  /* 45 */ {"ACCESSKEY",FUNCNAME_accessKey,NULL},
51  /* 46 */ {"ABORT",FUNCNAME_quitfm,NULL},
52  /* 47 */ {"MENU",FUNCNAME_mainMn,NULL},
53  /* 48 */ {"PCMAP",FUNCNAME_pcmap,&MyHashItem[49]},
54  /* 49 */ {"EXIT",FUNCNAME_quitfm,NULL},
55  /* 50 */ {"LINE_INFO",FUNCNAME_curlno,&MyHashItem[51]},
56  /* 51 */ {"ADD_BOOKMARK",FUNCNAME_adBmark,NULL},
57  /* 52 */ {"WHEREIS",FUNCNAME_srchfor,&MyHashItem[53]},
58  /* 53 */ {"SELECT_MENU",FUNCNAME_selMn,&MyHashItem[54]},
59  /* 54 */ {"GOTO_LINE",FUNCNAME_goLine,NULL},
60  /* 55 */ {"MOUSE",FUNCNAME_mouse,NULL},
61  /* 56 */ {"PIPE_BUF",FUNCNAME_pipeBuf,&MyHashItem[57]},
62  /* 57 */ {"LINK_BEGIN",FUNCNAME_topA,NULL},
63  /* 58 */ {"PEEK_IMG",FUNCNAME_peekIMG,NULL},
64  /* 59 */ {"CHARSET",FUNCNAME_docCSet,NULL},
65  /* 60 */ {"GOTO_LINK",FUNCNAME_followA,&MyHashItem[61]},
66  /* 61 */ {"EXTERN_LINK",FUNCNAME_linkbrz,NULL},
67  /* 62 */ {"MARK_WORD",FUNCNAME_chkWORD,NULL},
68  /* 63 */ {"MOVE_LIST_MENU",FUNCNAME_movlistMn,&MyHashItem[64]},
69  /* 64 */ {"LINK_MENU",FUNCNAME_linkMn,NULL},
70  /* 65 */ {"REDO",FUNCNAME_redoPos,&MyHashItem[66]},
71  /* 66 */ {"BOOKMARK",FUNCNAME_ldBmark,NULL},
72  /* 67 */ {"NEXT_RIGHT_DOWN",FUNCNAME_nextRD,&MyHashItem[68]},
73  /* 68 */ {"NEXT_LEFT",FUNCNAME_nextL,&MyHashItem[69]},
74  /* 69 */ {"COMMAND",FUNCNAME_execCmd,&MyHashItem[70]},
75  /* 70 */ {"@@@",FUNCNAME_nulcmd,NULL},
76  /* 71 */ {"RESHAPE",FUNCNAME_reshape,&MyHashItem[72]},
77  /* 72 */ {"ALARM",FUNCNAME_setAlarm,NULL},
78  /* 73 */ {"UP",FUNCNAME_lup1,&MyHashItem[74]},
79  /* 74 */ {"SETENV",FUNCNAME_setEnv,&MyHashItem[75]},
80  /* 75 */ {"RELOAD",FUNCNAME_reload,&MyHashItem[76]},
81  /* 76 */ {"LIST",FUNCNAME_linkLst,NULL},
82  /* 77 */ {"NEXT_PAGE",FUNCNAME_pgFore,&MyHashItem[78]},
83  /* 78 */ {"MOVE_MOUSE",FUNCNAME_movMs,&MyHashItem[79]},
84  /* 79 */ {"DISPLAY_IMAGE",FUNCNAME_dispI,NULL},
85  /* 80 */ {"TAB_LEFT",FUNCNAME_tabL,&MyHashItem[81]},
86  /* 81 */ {"PIPE_SHELL",FUNCNAME_pipesh,&MyHashItem[82]},
87  /* 82 */ {"NEXT_TAB",FUNCNAME_nextT,&MyHashItem[83]},
88  /* 83 */ {"NEXT_DOWN",FUNCNAME_nextD,NULL},
89  /* 84 */ {"MAIN_MENU",FUNCNAME_mainMn,&MyHashItem[85]},
90  /* 85 */ {"LIST_MENU",FUNCNAME_listMn,NULL},
91  /* 86 */ {"REINIT",FUNCNAME_reinit,&MyHashItem[87]},
92  /* 87 */ {"EDIT",FUNCNAME_editBf,NULL},
93  /* 88 */ {"SAVE_IMAGE",FUNCNAME_svI,&MyHashItem[89]},
94  /* 89 */ {"NEXT_MARK",FUNCNAME_nextMk,&MyHashItem[90]},
95  /* 90 */ {"COOKIE",FUNCNAME_cooLst,NULL},
96  /* 91 */ {"LINK_END",FUNCNAME_lastA,&MyHashItem[92]},
97  /* 92 */ {"LINE_BEGIN",FUNCNAME_linbeg,&MyHashItem[93]},
98  /* 93 */ {"DELETE_PREVBUF",FUNCNAME_deletePrevBuf,NULL},
99  /* 94 */ {"WRAP_TOGGLE",FUNCNAME_wrapToggle,NULL},
100  /* 95 */ {"DEFAULT_CHARSET",FUNCNAME_defCSet,NULL},
101  /* 96 */ {"NOTHING",FUNCNAME_nulcmd,&MyHashItem[97]},
102  /* 97 */ {"FRAME",FUNCNAME_rFrame,NULL},
103  /* 98 */ {"SEARCH_PREV",FUNCNAME_srchprv,&MyHashItem[99]},
104  /* 99 */ {"NEXT",FUNCNAME_nextBf,&MyHashItem[100]},
105  /* 100 */ {"LINE_END",FUNCNAME_linend,NULL},
106  /* 101 */ {"SELECT",FUNCNAME_selBuf,NULL},
107  /* 102 */ {"PREV_TAB",FUNCNAME_prevT,&MyHashItem[103]},
108  /* 103 */ {"MOVE_LEFT",FUNCNAME_movL,NULL},
109  /* 104 */ {"SEARCH_BACK",FUNCNAME_srchbak,&MyHashItem[105]},
110  /* 105 */ {"SAVE",FUNCNAME_svSrc,NULL},
111  /* 106 */ {"SHIFT_LEFT",FUNCNAME_shiftl,&MyHashItem[107]},
112  /* 107 */ {"READ_SHELL",FUNCNAME_readsh,&MyHashItem[108]},
113  /* 108 */ {"PRINT",FUNCNAME_svBuf,&MyHashItem[109]},
114  /* 109 */ {"MOVE_DOWN",FUNCNAME_movD,&MyHashItem[110]},
115  /* 110 */ {"EDIT_SCREEN",FUNCNAME_editScr,NULL},
116  /* 111 */ {"ISEARCH_BACK",FUNCNAME_isrchbak,NULL},
117  /* 112 */ {"NEXT_LINK",FUNCNAME_nextA,NULL},
118  /* 113 */ {"MSGS",FUNCNAME_msgs,NULL},
119  /* 114 */ {"MULTIMAP",FUNCNAME_multimap,&MyHashItem[115]},
120  /* 115 */ {"CENTER_H",FUNCNAME_ctrCsrH,NULL},
121  /* 116 */ {"TAB_LINK",FUNCNAME_tabA,&MyHashItem[117]},
122  /* 117 */ {"TAB_GOTO",FUNCNAME_tabURL,&MyHashItem[118]},
123  /* 118 */ {"PREV_PAGE",FUNCNAME_pgBack,NULL},
124  /* 119 */ {"SAVE_SCREEN",FUNCNAME_svBuf,NULL},
125  /* 120 */ {"TAB_MENU",FUNCNAME_tabMn,&MyHashItem[121]},
126  /* 121 */ {"SEARCH_FORE",FUNCNAME_srchfor,&MyHashItem[122]},
127  /* 122 */ {"MOVE_UP1",FUNCNAME_movU1,&MyHashItem[123]},
128  /* 123 */ {"MOVE_LEFT1",FUNCNAME_movL1,NULL},
129  /* 124 */ {"PREV_MARK",FUNCNAME_prevMk,&MyHashItem[125]},
130  /* 125 */ {"PEEK_LINK",FUNCNAME_peekURL,NULL},
131  /* 126 */ {"MARK_URL",FUNCNAME_chkURL,NULL},
132  /* 127 */ {"GOTO_RELATIVE",FUNCNAME_gorURL,NULL},
133  /* 128 */ {"SUBMIT",FUNCNAME_submitForm,NULL},
134  /* 129 */ {"NEXT_WORD",FUNCNAME_movRW,&MyHashItem[130]},
135  /* 130 */ {"NEW_TAB",FUNCNAME_newT,&MyHashItem[131]},
136  /* 131 */ {"HELP",FUNCNAME_ldhelp,NULL},
137  /* 132 */ {"MOVE_DOWN1",FUNCNAME_movD1,NULL},
138  /* 133 */ {"ISEARCH",FUNCNAME_isrchfor,NULL},
139  /* 134 */ {"NEXT_RIGHT",FUNCNAME_nextR,&MyHashItem[135]},
140  /* 135 */ {"CLOSE_TAB",FUNCNAME_closeT,&MyHashItem[136]},
141  /* 136 */ {"CENTER_V",FUNCNAME_ctrCsrV,NULL},
142  /* 137 */ {"MOVE_RIGHT1",FUNCNAME_movR1,NULL},
143  /* 138 */ {"ESCMAP",FUNCNAME_escmap,&MyHashItem[139]},
144  /* 139 */ {"ESCBMAP",FUNCNAME_escbmap,NULL},
145  /* 140 */ {"MENU_MOUSE",FUNCNAME_menuMs,NULL},
146  /* 141 */ {"PREV",FUNCNAME_prevBf,&MyHashItem[142]},
147  /* 142 */ {"NULL",FUNCNAME_nulcmd,&MyHashItem[143]},
148  /* 143 */ {"DICT_WORD",FUNCNAME_dictword,NULL},
149  /* 144 */ {"PREV_LINK",FUNCNAME_prevA,NULL},
150  /* 145 */ {"TAB_RIGHT",FUNCNAME_tabR,NULL},
151  /* 146 */ {"MOUSE_TOGGLE",FUNCNAME_msToggle,&MyHashItem[147]},
152  /* 147 */ {"BACK",FUNCNAME_backBf,NULL},
153  /* 148 */ {"OPTIONS",FUNCNAME_ldOpt,&MyHashItem[149]},
154  /* 149 */ {"DEFINE_KEY",FUNCNAME_defKey,NULL},
155};
156
157static HashItem_si *MyHashItemTbl[] = {
158  &MyHashItem[0],
159  NULL,
160  NULL,
161  NULL,
162  NULL,
163  &MyHashItem[3],
164  &MyHashItem[4],
165  &MyHashItem[6],
166  &MyHashItem[7],
167  &MyHashItem[12],
168  &MyHashItem[13],
169  &MyHashItem[14],
170  &MyHashItem[15],
171  &MyHashItem[16],
172  &MyHashItem[17],
173  &MyHashItem[22],
174  &MyHashItem[25],
175  &MyHashItem[27],
176  &MyHashItem[28],
177  &MyHashItem[30],
178  &MyHashItem[31],
179  NULL,
180  &MyHashItem[32],
181  NULL,
182  &MyHashItem[34],
183  NULL,
184  NULL,
185  &MyHashItem[35],
186  &MyHashItem[38],
187  &MyHashItem[40],
188  &MyHashItem[41],
189  &MyHashItem[42],
190  &MyHashItem[46],
191  &MyHashItem[47],
192  &MyHashItem[48],
193  &MyHashItem[50],
194  NULL,
195  &MyHashItem[52],
196  NULL,
197  &MyHashItem[55],
198  &MyHashItem[56],
199  &MyHashItem[58],
200  &MyHashItem[59],
201  &MyHashItem[60],
202  &MyHashItem[62],
203  &MyHashItem[63],
204  NULL,
205  &MyHashItem[65],
206  &MyHashItem[67],
207  &MyHashItem[71],
208  &MyHashItem[73],
209  &MyHashItem[77],
210  &MyHashItem[80],
211  &MyHashItem[84],
212  &MyHashItem[86],
213  &MyHashItem[88],
214  &MyHashItem[91],
215  &MyHashItem[94],
216  &MyHashItem[95],
217  &MyHashItem[96],
218  &MyHashItem[98],
219  NULL,
220  &MyHashItem[101],
221  NULL,
222  &MyHashItem[102],
223  &MyHashItem[104],
224  NULL,
225  NULL,
226  &MyHashItem[106],
227  &MyHashItem[111],
228  NULL,
229  &MyHashItem[112],
230  NULL,
231  &MyHashItem[113],
232  &MyHashItem[114],
233  &MyHashItem[116],
234  &MyHashItem[119],
235  &MyHashItem[120],
236  NULL,
237  &MyHashItem[124],
238  &MyHashItem[126],
239  &MyHashItem[127],
240  &MyHashItem[128],
241  NULL,
242  &MyHashItem[129],
243  &MyHashItem[132],
244  &MyHashItem[133],
245  NULL,
246  &MyHashItem[134],
247  &MyHashItem[137],
248  &MyHashItem[138],
249  &MyHashItem[140],
250  &MyHashItem[141],
251  NULL,
252  NULL,
253  &MyHashItem[144],
254  &MyHashItem[145],
255  &MyHashItem[146],
256  NULL,
257  &MyHashItem[148],
258};
259
260Hash_si functable = {100, MyHashItemTbl};
w3m/files/tagtable.c
1#include "hash.h"
2#include <stdio.h>
3#include "html.h"
4static HashItem_si MyHashItem[] = {
5  /* 0 */ {"option_int",HTML_OPTION_INT,&MyHashItem[1]},
6  /* 1 */ {"/form_int",HTML_N_FORM_INT,&MyHashItem[2]},
7  /* 2 */ {"/kbd",HTML_NOP,&MyHashItem[3]},
8  /* 3 */ {"dd",HTML_DD,&MyHashItem[4]},
9  /* 4 */ {"/dir",HTML_N_UL,NULL},
10  /* 5 */ {"/body",HTML_N_BODY,&MyHashItem[6]},
11  /* 6 */ {"noframes",HTML_NOFRAMES,NULL},
12  /* 7 */ {"base",HTML_BASE,NULL},
13  /* 8 */ {"/div",HTML_N_DIV,NULL},
14  /* 9 */ {"tbody",HTML_TBODY,&MyHashItem[10]},
15  /* 10 */ {"meta",HTML_META,&MyHashItem[11]},
16  /* 11 */ {"i",HTML_I,NULL},
17  /* 12 */ {"/_symbol",HTML_N_SYMBOL,&MyHashItem[13]},
18  /* 13 */ {"sup",HTML_SUP,&MyHashItem[14]},
19  /* 14 */ {"/p",HTML_N_P,NULL},
20  /* 15 */ {"/q",HTML_N_Q,NULL},
21  /* 16 */ {"input_alt",HTML_INPUT_ALT,&MyHashItem[17]},
22  /* 17 */ {"dl",HTML_DL,NULL},
23  /* 18 */ {"/tbody",HTML_N_TBODY,&MyHashItem[19]},
24  /* 19 */ {"/s",HTML_N_S,NULL},
25  /* 20 */ {"del",HTML_DEL,&MyHashItem[21]},
26  /* 21 */ {"xmp",HTML_XMP,&MyHashItem[22]},
27  /* 22 */ {"br",HTML_BR,NULL},
28  /* 23 */ {"link",HTML_LINK,&MyHashItem[24]},
29  /* 24 */ {"/u",HTML_N_U,&MyHashItem[25]},
30  /* 25 */ {"em",HTML_EM,NULL},
31  /* 26 */ {"title_alt",HTML_TITLE_ALT,&MyHashItem[27]},
32  /* 27 */ {"caption",HTML_CAPTION,&MyHashItem[28]},
33  /* 28 */ {"plaintext",HTML_PLAINTEXT,&MyHashItem[29]},
34  /* 29 */ {"p",HTML_P,NULL},
35  /* 30 */ {"q",HTML_Q,&MyHashItem[31]},
36  /* 31 */ {"blockquote",HTML_BLQ,&MyHashItem[32]},
37  /* 32 */ {"menu",HTML_UL,NULL},
38  /* 33 */ {"/colgroup",HTML_N_COLGROUP,&MyHashItem[34]},
39  /* 34 */ {"dfn",HTML_NOP,NULL},
40  /* 35 */ {"s",HTML_S,&MyHashItem[36]},
41  /* 36 */ {"strong",HTML_STRONG,NULL},
42  /* 37 */ {"dt",HTML_DT,NULL},
43  /* 38 */ {"u",HTML_U,NULL},
44  /* 39 */ {"/map",HTML_N_MAP,&MyHashItem[40]},
45  /* 40 */ {"/frameset",HTML_N_FRAMESET,&MyHashItem[41]},
46  /* 41 */ {"/ol",HTML_N_OL,NULL},
47  /* 42 */ {"/td",HTML_N_TD,NULL},
48  /* 43 */ {"li",HTML_LI,NULL},
49  /* 44 */ {"html",HTML_BODY,&MyHashItem[45]},
50  /* 45 */ {"hr",HTML_HR,NULL},
51  /* 46 */ {"/strong",HTML_N_STRONG,NULL},
52  /* 47 */ {"/th",HTML_N_TH,&MyHashItem[48]},
53  /* 48 */ {"option",HTML_OPTION,&MyHashItem[49]},
54  /* 49 */ {"kbd",HTML_NOP,&MyHashItem[50]},
55  /* 50 */ {"dir",HTML_UL,NULL},
56  /* 51 */ {"col",HTML_COL,NULL},
57  /* 52 */ {"/caption",HTML_N_CAPTION,&MyHashItem[53]},
58  /* 53 */ {"div",HTML_DIV,NULL},
59  /* 54 */ {"head",HTML_HEAD,&MyHashItem[55]},
60  /* 55 */ {"ol",HTML_OL,&MyHashItem[56]},
61  /* 56 */ {"/ul",HTML_N_UL,NULL},
62  /* 57 */ {"/ins",HTML_N_INS,&MyHashItem[58]},
63  /* 58 */ {"area",HTML_AREA,NULL},
64  /* 59 */ {"pre_plain",HTML_PRE_PLAIN,&MyHashItem[60]},
65  /* 60 */ {"td",HTML_TD,&MyHashItem[61]},
66  /* 61 */ {"/option",HTML_N_OPTION,NULL},
67  /* 62 */ {"/noframes",HTML_N_NOFRAMES,NULL},
68  /* 63 */ {"/tr",HTML_N_TR,&MyHashItem[64]},
69  /* 64 */ {"nobr",HTML_NOBR,NULL},
70  /* 65 */ {"img_alt",HTML_IMG_ALT,&MyHashItem[66]},
71  /* 66 */ {"table_alt",HTML_TABLE_ALT,&MyHashItem[67]},
72  /* 67 */ {"th",HTML_TH,&MyHashItem[68]},
73  /* 68 */ {"script",HTML_SCRIPT,&MyHashItem[69]},
74  /* 69 */ {"/tt",HTML_NOP,NULL},
75  /* 70 */ {"code",HTML_NOP,NULL},
76  /* 71 */ {"samp",HTML_NOP,NULL},
77  /* 72 */ {"textarea",HTML_TEXTAREA,NULL},
78  /* 73 */ {"textarea_int",HTML_TEXTAREA_INT,NULL},
79  /* 74 */ {"table",HTML_TABLE,&MyHashItem[75]},
80  /* 75 */ {"img",HTML_IMG,&MyHashItem[76]},
81  /* 76 */ {"/blockquote",HTML_N_BLQ,NULL},
82  /* 77 */ {"applet",HTML_APPLET,&MyHashItem[78]},
83  /* 78 */ {"map",HTML_MAP,&MyHashItem[79]},
84  /* 79 */ {"ul",HTML_UL,NULL},
85  /* 80 */ {"/script",HTML_N_SCRIPT,&MyHashItem[81]},
86  /* 81 */ {"center",HTML_CENTER,NULL},
87  /* 82 */ {"/table",HTML_N_TABLE,&MyHashItem[83]},
88  /* 83 */ {"cite",HTML_NOP,&MyHashItem[84]},
89  /* 84 */ {"/h1",HTML_N_H,NULL},
90  /* 85 */ {"tr",HTML_TR,&MyHashItem[86]},
91  /* 86 */ {"/h2",HTML_N_H,NULL},
92  /* 87 */ {"image",HTML_IMG,&MyHashItem[88]},
93  /* 88 */ {"/h3",HTML_N_H,NULL},
94  /* 89 */ {"pre_int",HTML_PRE_INT,&MyHashItem[90]},
95  /* 90 */ {"/font",HTML_N_FONT,&MyHashItem[91]},
96  /* 91 */ {"tt",HTML_NOP,&MyHashItem[92]},
97  /* 92 */ {"/h4",HTML_N_H,NULL},
98  /* 93 */ {"body",HTML_BODY,&MyHashItem[94]},
99  /* 94 */ {"/form",HTML_N_FORM,&MyHashItem[95]},
100  /* 95 */ {"/h5",HTML_N_H,NULL},
101  /* 96 */ {"/h6",HTML_N_H,NULL},
102  /* 97 */ {"frame",HTML_FRAME,NULL},
103  /* 98 */ {"/textarea_int",HTML_N_TEXTAREA_INT,&MyHashItem[99]},
104  /* 99 */ {"/img_alt",HTML_N_IMG_ALT,&MyHashItem[100]},
105  /* 100 */ {"/center",HTML_N_CENTER,NULL},
106  /* 101 */ {"/pre",HTML_N_PRE,NULL},
107  /* 102 */ {"tfoot",HTML_TFOOT,NULL},
108  /* 103 */ {"ins",HTML_INS,NULL},
109  /* 104 */ {"/var",HTML_NOP,NULL},
110  /* 105 */ {"h1",HTML_H,NULL},
111  /* 106 */ {"/tfoot",HTML_N_TFOOT,&MyHashItem[107]},
112  /* 107 */ {"input",HTML_INPUT,&MyHashItem[108]},
113  /* 108 */ {"h2",HTML_H,NULL},
114  /* 109 */ {"h3",HTML_H,NULL},
115  /* 110 */ {"h4",HTML_H,NULL},
116  /* 111 */ {"h5",HTML_H,NULL},
117  /* 112 */ {"internal",HTML_INTERNAL,&MyHashItem[113]},
118  /* 113 */ {"h6",HTML_H,NULL},
119  /* 114 */ {"div_int",HTML_DIV_INT,&MyHashItem[115]},
120  /* 115 */ {"select_int",HTML_SELECT_INT,&MyHashItem[116]},
121  /* 116 */ {"/pre_int",HTML_N_PRE_INT,NULL},
122  /* 117 */ {"/menu",HTML_N_UL,NULL},
123  /* 118 */ {"form_int",HTML_FORM_INT,&MyHashItem[119]},
124  /* 119 */ {"/sub",HTML_N_SUB,NULL},
125  /* 120 */ {"style",HTML_STYLE,&MyHashItem[121]},
126  /* 121 */ {"address",HTML_BR,NULL},
127  /* 122 */ {"/textarea",HTML_N_TEXTAREA,NULL},
128  /* 123 */ {"/input_alt",HTML_N_INPUT_ALT,NULL},
129  /* 124 */ {"doctype",HTML_DOCTYPE,&MyHashItem[125]},
130  /* 125 */ {"/style",HTML_N_STYLE,NULL},
131  /* 126 */ {"/html",HTML_N_BODY,NULL},
132  /* 127 */ {"pre",HTML_PRE,&MyHashItem[128]},
133  /* 128 */ {"title",HTML_TITLE,NULL},
134  /* 129 */ {"select",HTML_SELECT,NULL},
135  /* 130 */ {"/div_int",HTML_N_DIV_INT,&MyHashItem[131]},
136  /* 131 */ {"var",HTML_NOP,NULL},
137  /* 132 */ {"/title",HTML_N_TITLE,NULL},
138  /* 133 */ {"embed",HTML_EMBED,&MyHashItem[134]},
139  /* 134 */ {"/sup",HTML_N_SUP,&MyHashItem[135]},
140  /* 135 */ {"colgroup",HTML_COLGROUP,&MyHashItem[136]},
141  /* 136 */ {"/head",HTML_N_HEAD,&MyHashItem[137]},
142  /* 137 */ {"isindex",HTML_ISINDEX,NULL},
143  /* 138 */ {"strike",HTML_S,&MyHashItem[139]},
144  /* 139 */ {"listing",HTML_LISTING,NULL},
145  /* 140 */ {"bgsound",HTML_BGSOUND,NULL},
146  /* 141 */ {"/address",HTML_BR,NULL},
147  /* 142 */ {"thead",HTML_THEAD,&MyHashItem[143]},
148  /* 143 */ {"wbr",HTML_WBR,&MyHashItem[144]},
149  /* 144 */ {"/del",HTML_N_DEL,&MyHashItem[145]},
150  /* 145 */ {"/nobr",HTML_N_NOBR,&MyHashItem[146]},
151  /* 146 */ {"/select",HTML_N_SELECT,&MyHashItem[147]},
152  /* 147 */ {"frameset",HTML_FRAMESET,&MyHashItem[148]},
153  /* 148 */ {"/xmp",HTML_N_XMP,NULL},
154  /* 149 */ {"/code",HTML_NOP,NULL},
155  /* 150 */ {"_symbol",HTML_SYMBOL,&MyHashItem[151]},
156  /* 151 */ {"/thead",HTML_N_THEAD,&MyHashItem[152]},
157  /* 152 */ {"/samp",HTML_NOP,&MyHashItem[153]},
158  /* 153 */ {"/dfn",HTML_NOP,&MyHashItem[154]},
159  /* 154 */ {"_id",HTML_NOP,NULL},
160  /* 155 */ {"/strike",HTML_N_S,&MyHashItem[156]},
161  /* 156 */ {"/a",HTML_N_A,NULL},
162  /* 157 */ {"/select_int",HTML_N_SELECT_INT,&MyHashItem[158]},
163  /* 158 */ {"sub",HTML_SUB,&MyHashItem[159]},
164  /* 159 */ {"/b",HTML_N_B,NULL},
165  /* 160 */ {"/internal",HTML_N_INTERNAL,NULL},
166  /* 161 */ {"/pre_plain",HTML_N_PRE_PLAIN,&MyHashItem[162]},
167  /* 162 */ {"font",HTML_FONT,&MyHashItem[163]},
168  /* 163 */ {"/dl",HTML_N_DL,NULL},
169  /* 164 */ {"form",HTML_FORM,&MyHashItem[165]},
170  /* 165 */ {"/cite",HTML_NOP,&MyHashItem[166]},
171  /* 166 */ {"a",HTML_A,NULL},
172  /* 167 */ {"b",HTML_B,NULL},
173  /* 168 */ {"/listing",HTML_N_LISTING,&MyHashItem[169]},
174  /* 169 */ {"/em",HTML_N_EM,&MyHashItem[170]},
175  /* 170 */ {"/i",HTML_N_I,NULL},
176};
177
178static HashItem_si *MyHashItemTbl[] = {
179  &MyHashItem[0],
180  &MyHashItem[5],
181  NULL,
182  &MyHashItem[7],
183  &MyHashItem[8],
184  &MyHashItem[9],
185  &MyHashItem[12],
186  &MyHashItem[15],
187  &MyHashItem[16],
188  &MyHashItem[18],
189  &MyHashItem[20],
190  &MyHashItem[23],
191  &MyHashItem[26],
192  &MyHashItem[30],
193  &MyHashItem[33],
194  &MyHashItem[35],
195  &MyHashItem[37],
196  &MyHashItem[38],
197  &MyHashItem[39],
198  NULL,
199  &MyHashItem[42],
200  &MyHashItem[43],
201  &MyHashItem[44],
202  &MyHashItem[46],
203  &MyHashItem[47],
204  NULL,
205  &MyHashItem[51],
206  NULL,
207  &MyHashItem[52],
208  NULL,
209  &MyHashItem[54],
210  &MyHashItem[57],
211  &MyHashItem[59],
212  &MyHashItem[62],
213  &MyHashItem[63],
214  NULL,
215  &MyHashItem[65],
216  &MyHashItem[70],
217  &MyHashItem[71],
218  &MyHashItem[72],
219  &MyHashItem[73],
220  &MyHashItem[74],
221  &MyHashItem[77],
222  NULL,
223  &MyHashItem[80],
224  &MyHashItem[82],
225  &MyHashItem[85],
226  &MyHashItem[87],
227  &MyHashItem[89],
228  &MyHashItem[93],
229  &MyHashItem[96],
230  &MyHashItem[97],
231  &MyHashItem[98],
232  &MyHashItem[101],
233  &MyHashItem[102],
234  &MyHashItem[103],
235  &MyHashItem[104],
236  &MyHashItem[105],
237  &MyHashItem[106],
238  &MyHashItem[109],
239  &MyHashItem[110],
240  &MyHashItem[111],
241  &MyHashItem[112],
242  NULL,
243  &MyHashItem[114],
244  &MyHashItem[117],
245  NULL,
246  NULL,
247  &MyHashItem[118],
248  &MyHashItem[120],
249  NULL,
250  &MyHashItem[122],
251  &MyHashItem[123],
252  &MyHashItem[124],
253  &MyHashItem[126],
254  NULL,
255  NULL,
256  &MyHashItem[127],
257  &MyHashItem[129],
258  NULL,
259  &MyHashItem[130],
260  &MyHashItem[132],
261  &MyHashItem[133],
262  &MyHashItem[138],
263  &MyHashItem[140],
264  &MyHashItem[141],
265  &MyHashItem[142],
266  NULL,
267  NULL,
268  &MyHashItem[149],
269  &MyHashItem[150],
270  &MyHashItem[155],
271  &MyHashItem[157],
272  NULL,
273  &MyHashItem[160],
274  NULL,
275  &MyHashItem[161],
276  &MyHashItem[164],
277  &MyHashItem[167],
278  &MyHashItem[168],
279};
280
281Hash_si tagtable = {100, MyHashItemTbl};
w3m/patches/001-configure.patch
1+++ w3m-0.5.2_mod/configure 2010-09-25 20:57:51.055870033 +0400
2@@ -6221,7 +6221,7 @@
3 _ACEOF
4
5
6-for lib in bsd BSD 44bsd socket nsl dld dl
7+for lib in BSD 44bsd socket nsl dld dl
8 do
9  lib=$lib
10  { echo "$as_me:$LINENO: checking for -l$lib" >&5
11@@ -7886,7 +7886,7 @@
12    { (exit 1); exit 1; }; }
13    fi
14  fi
15- unset ac_cv_lib_gc_GC_init
16+
17  { echo "$as_me:$LINENO: checking for GC_init in -lgc" >&5
18 echo $ECHO_N "checking for GC_init in -lgc... $ECHO_C" >&6; }
19 if test "${ac_cv_lib_gc_GC_init+set}" = set; then
w3m/patches/001-disable-host-libs-detection.patch
1--- a/configure.ac
2@@ -82,10 +82,10 @@ AC_W3M_MAILER
3 AC_W3M_EXT_BROWSER
4
5 dnl Checks for ext libs
6-for lib in bsd BSD 44bsd socket nsl dld dl
7-do
8- AC_W3M_EXTLIBS($lib)
9-done
10+dnl for lib in bsd BSD 44bsd socket nsl dld dl
11+dnl do
12+dnl AC_W3M_EXTLIBS($lib)
13+dnl done
14
15 AC_W3M_IPv6
16 AC_W3M_SSL_DIGEST_AUTH
w3m/patches/002-dont-overwrite-pkg-config.patch
1--- a/acinclude.m4
2@@ -661,8 +661,6 @@ AC_DEFUN([AC_W3M_IMAGE],
3      with_gtk2="yes"
4      if test x"$PKG_CONFIG" = x; then
5        PKG_CONFIG=pkg-config
6- else
7- PKG_CONFIG=:
8      fi;;
9    esac
10   done
w3m/patches/002-main.patch
1+++ w3m-0.5.2_mod/main.c 2010-09-25 18:12:27.960869894 +0400
2@@ -842,7 +842,7 @@
3     mySignal(SIGPIPE, SigPipe);
4 #endif
5
6- orig_GC_warn_proc = GC_set_warn_proc(wrap_GC_warn_proc);
7+ // orig_GC_warn_proc = GC_set_warn_proc(wrap_GC_warn_proc);
8     err_msg = Strnew();
9     if (load_argc == 0) {
10     /* no URL specified */
w3m/patches/003-GC_set_warn_proc.patch
1--- a/main.c
2@@ -833,7 +833,8 @@ main(int argc, char **argv, char **envp)
3     mySignal(SIGPIPE, SigPipe);
4 #endif
5
6- orig_GC_warn_proc = GC_set_warn_proc(wrap_GC_warn_proc);
7+ orig_GC_warn_proc = GC_get_warn_proc();
8+ GC_set_warn_proc(wrap_GC_warn_proc);
9     err_msg = Strnew();
10     if (load_argc == 0) {
11     /* no URL specified */
w3m/patches/003-Makefile.in.patch
1+++ w3m-0.5.2_mod/Makefile.in 2010-09-25 22:01:16.666250962 +0400
2@@ -134,7 +134,7 @@
3 $(OBJS) $(LOBJS): fm.h funcname1.h
4
5 tagtable.c: tagtable.tab mktable$(EXT) html.h
6- ./mktable$(EXT) 100 $(srcdir)/tagtable.tab > $@
7+# ./mktable$(EXT) 100 $(srcdir)/tagtable.tab > $@
8
9 indep.o: indep.c fm.h funcname1.h
10 func.o: funcname.c functable.c funcname1.h
11@@ -167,7 +167,7 @@
12
13 functable.c: funcname.tab mktable$(EXT)
14     sort funcname.tab | $(AWK) -f $(top_srcdir)/functable.awk > functable.tab
15- ./mktable$(EXT) 100 functable.tab > $@
16+# ./mktable$(EXT) 100 functable.tab > $@
17     -rm -f functable.tab
18
19 mktable$(EXT): mktable.o dummy.o $(ALIB)
w3m/patches/004-gdk-override.patch
1diff -ur w3m-0.5.2.orig/configure w3m-0.5.2/configure
2+++ w3m-0.5.2/configure 2011-02-25 22:03:24.676058666 +0300
3@@ -5626,7 +5626,7 @@
4  else
5    { echo "$as_me:$LINENO: WARNING: GdkPixbuf is not installed. Install GdkPixbuf (version >= 2.0.0)" >&5
6 echo "$as_me: WARNING: GdkPixbuf is not installed. Install GdkPixbuf (version >= 2.0.0)" >&2;}
7- have_gdkpixbuf="no"; have_gtk2="no"
8+ have_gdkpixbuf="yes"; have_gtk2="yes"
9  fi
10   fi
11   if test x"$with_gdkpixbuf" = xyes; then
w3m/patches/004-mktable-host.patch
1--- a/Makefile.in
2@@ -136,11 +136,11 @@ $(ALIB): $(ALIBOBJS)
3 $(OBJS) $(LOBJS): fm.h funcname1.h
4
5 tagtable.c: tagtable.tab mktable$(EXT) html.h
6- ./mktable$(EXT) 100 $(srcdir)/tagtable.tab > $@
7+ ./host/mktable$(EXT) 100 $(srcdir)/tagtable.tab > $@
8
9 entity.h: entity.tab mktable$(EXT)
10     echo '/* $$I''d$$ */' > $@
11- ./mktable$(EXT) 100 $(srcdir)/entity.tab >> $@
12+ ./host/mktable$(EXT) 100 $(srcdir)/entity.tab >> $@
13
14 indep.o: indep.c fm.h funcname1.h entity.h
15 func.o: funcname.c functable.c funcname1.h
16@@ -173,7 +173,7 @@ funcname2.h: funcname.tab
17
18 functable.c: funcname.tab mktable$(EXT)
19     sort funcname.tab | $(AWK) -f $(top_srcdir)/functable.awk > functable.tab
20- ./mktable$(EXT) 100 functable.tab > $@
21+ ./host/mktable$(EXT) 100 functable.tab > $@
22     -rm -f functable.tab
23
24 mktable$(EXT): mktable.o dummy.o Str.o hash.o myctype.o

Archive Download the corresponding diff file



interactive