aboutsummaryrefslogtreecommitdiffstats
path: root/www/w3m/files
diff options
context:
space:
mode:
Diffstat (limited to 'www/w3m/files')
-rw-r--r--www/w3m/files/patch-aa32
-rw-r--r--www/w3m/files/patch-ae42
-rw-r--r--www/w3m/files/patch-ak8
-rw-r--r--www/w3m/files/patch-ao16
4 files changed, 54 insertions, 44 deletions
diff --git a/www/w3m/files/patch-aa b/www/w3m/files/patch-aa
index 05bbd2e0cdc..77a08cfc76c 100644
--- a/www/w3m/files/patch-aa
+++ b/www/w3m/files/patch-aa
@@ -1,35 +1,32 @@
---- config.h.orig Thu Dec 2 13:12:36 1999
-+++ config.h Mon Dec 6 03:21:06 1999
-@@ -49,18 +49,20 @@
+--- config.h.orig Fri Jan 28 09:48:51 2000
++++ config.h Fri Jan 28 18:53:34 2000
+@@ -59,19 +59,16 @@
/**********************************************************/
#ifdef makefile_parameter
-BIN_DIR = /usr/local/bin
-HELP_DIR = /usr/local/lib/w3m
+-LIB_DIR = /usr/local/lib/w3m
-HELP_FILE = w3mhelp_ja.html
--SYS_LIBRARIES = -lgpm -lbsd -lncurses
+-SYS_LIBRARIES = -lgpm -lbsd -lncurses -L/usr/local/ssl/lib -lssl -lcrypto
+BIN_DIR = %%PREFIX%%/bin
-+LIB_DIR = %%PREFIX%%/libexec/w3m
+HELP_DIR = %%PREFIX%%/share/doc/w3m
+HELP_DIR_JA = %%PREFIX%%/share/doc/ja/w3m
++LIB_DIR = %%PREFIX%%/libexec/w3m
+HELP_FILE = w3mhelp_en.html
+SYS_LIBRARIES = -lncurses
LOCAL_LIBRARIES =
-CC = gcc
--MYCFLAGS = -g -I./gc
-+#CC = gcc
-+#MYCFLAGS = -g -I./gc
+-MYCFLAGS = -g -I./gc -I/usr/local/ssl/include/openssl -I/usr/local/ssl/include
KEYBIND_SRC = keybind.c
KEYBIND_OBJ = keybind.o
EXT=
-GCLIB=gc/gc.a
-GCTARGET=gc/gc.a
-+#GCLIB=gc/gc.a
-+#GCTARGET=gc/gc.a
+ RANLIB=ranlib
+ MKDIR=mkdir -p
#else
-
-
-@@ -68,21 +70,30 @@
+@@ -81,23 +78,31 @@
#define JA 0
#define EN 1
@@ -43,19 +40,22 @@
#define COLOR
#define MOUSE
-#define USE_GPM
+-#undef USE_SYSMOUSE
+#undef USE_GPM
++#define USE_SYSMOUSE
#define MENU
#define USE_COOKIE
- #undef USE_SSL
+-#define USE_SSL
++#undef USE_SSL
--#define DEF_EDITOR "/bin/vi"
+ #define DEF_EDITOR "/usr/bin/vi"
-#define DEF_MAILER "/bin/mail"
-#define DEF_EXT_BROWSER "/usr/local/bin/netscape"
-+#define DEF_EDITOR "/usr/bin/vi"
+#define DEF_MAILER "/usr/bin/mail"
+#define DEF_EXT_BROWSER "%%PREFIX%%/bin/netscape"
-#define LIB_DIR "/usr/local/lib/w3m"
+-#define HELP_DIR "/usr/local/lib/w3m"
-#define HELP_FILE "w3mhelp.html"
+#define LIB_DIR "%%PREFIX%%/libexec/w3m"
+#ifdef JAPANESE
diff --git a/www/w3m/files/patch-ae b/www/w3m/files/patch-ae
index 541e0228f89..e4c7e3bf33c 100644
--- a/www/w3m/files/patch-ae
+++ b/www/w3m/files/patch-ae
@@ -1,18 +1,16 @@
---- XMakefile.orig Fri Dec 3 10:57:55 1999
-+++ XMakefile Mon Dec 6 03:12:50 1999
-@@ -17,16 +17,16 @@
+--- XMakefile.orig Fri Jan 28 08:38:16 2000
++++ XMakefile Fri Jan 28 18:55:34 2000
+@@ -18,14 +18,14 @@
INCLUDES=-I.
-DEFS=$(INCLUDES) #-DSTR_DEBUG # -DDEBUG
-CFLAGS=$(MYCFLAGS) $(DEFS)
--LIBS=-L. -laa $(GCLIB) -lm $(LOCAL_LIBRARIES) $(SYS_LIBRARIES)
+-LIBS=-L. -lindep $(GCLIB) -lm $(LOCAL_LIBRARIES) $(SYS_LIBRARIES)
+DEFS+=$(INCLUDES) #-DSTR_DEBUG # -DDEBUG
+CFLAGS+=$(MYCFLAGS) $(DEFS)
-+LIBS+=$(ALIB) -lgc -lm $(LOCAL_LIBRARIES) $(SYS_LIBRARIES)
++LIBS+=-L. -lindep -lgc -lm $(LOCAL_LIBRARIES) $(SYS_LIBRARIES)
INSTALL=sh install.sh
- INSTALL2=sh ../install.sh
- RANLIB=ranlib
all: $(TARGETS)
@@ -21,31 +19,27 @@
$(CC) $(CFLAGS) -o $(TARGET) $(ALLOBJS) $(LIBS)
$(ALIB): $(ALIBOBJS)
-@@ -48,25 +48,26 @@
- cd gc; make CC='$(CC) $(MYCFLAGS)'
-
+@@ -66,23 +66,24 @@
install: $(TARGETS)
-- -mkdir $(DESTDIR)$(BIN_DIR)
-- -mkdir $(DESTDIR)$(HELP_DIR)
+ -$(MKDIR) $(DESTDIR)$(BIN_DIR)
+ -$(MKDIR) $(DESTDIR)$(HELP_DIR)
++ -$(MKDIR) $(DESTDIR)$(HELP_DIR_JA)
+ -$(MKDIR) $(DESTDIR)$(LIB_DIR)
- $(INSTALL) -m 755 $(TARGET) $(DESTDIR)$(BIN_DIR)/$(TARGET)
- $(INSTALL) -m 644 w3mhelp_en.html $(DESTDIR)$(HELP_DIR)/w3mhelp_en.html
- $(INSTALL) -m 644 w3mhelp_ja.html $(DESTDIR)$(HELP_DIR)/w3mhelp_ja.html
- $(INSTALL) -m 644 w3mhelp-lynx_en.html $(DESTDIR)$(HELP_DIR)/w3mhelp-lynx_en.html
- $(INSTALL) -m 644 w3mhelp-lynx_ja.html $(DESTDIR)$(HELP_DIR)/w3mhelp-lynx_ja.html
- $(INSTALL) -m 644 $(HELP_FILE) $(DESTDIR)$(HELP_DIR)/w3mhelp.html
-- $(INSTALL) -m 755 $(BOOKMARKER) $(DESTDIR)$(HELP_DIR)/$(BOOKMARKER)
-- (cd scripts; for i in *; do $(INSTALL2) -m 755 $$i $(DESTDIR)$(HELP_DIR)/$$i; done)
-+ -mkdir -p $(DESTDIR)$(BIN_DIR)
-+ -mkdir -p $(DESTDIR)$(LIB_DIR)
-+ -mkdir -p $(DESTDIR)$(HELP_DIR)
-+ -mkdir -p $(DESTDIR)$(HELP_DIR_JA)
+- for d in $(BOOKMARKER) $(HELPER); do $(INSTALL) -m 755 $$d $(DESTDIR)$(LIB_DIR)/$$d; done
+- (cd scripts; ln -s ../install.sh .; for i in *.cgi; do $(INSTALL) -m 755 $$i $(DESTDIR)$(LIB_DIR)/$$i; done)
+ $(BSD_INSTALL_PROGRAM) -m 755 $(TARGET) $(DESTDIR)$(BIN_DIR)/$(TARGET)
+ $(BSD_INSTALL_DATA) -m 644 w3mhelp_en.html $(DESTDIR)$(HELP_DIR)/w3mhelp_en.html
+ $(BSD_INSTALL_DATA) -m 644 w3mhelp_ja.html $(DESTDIR)$(HELP_DIR_JA)/w3mhelp_ja.html
+ $(BSD_INSTALL_DATA) -m 644 w3mhelp-lynx_en.html $(DESTDIR)$(HELP_DIR)/w3mhelp-lynx_en.html
+ $(BSD_INSTALL_DATA) -m 644 w3mhelp-lynx_ja.html $(DESTDIR)$(HELP_DIR_JA)/w3mhelp-lynx_ja.html
-+ $(BSD_INSTALL_PROGRAM) -m 755 $(BOOKMARKER) $(DESTDIR)$(LIB_DIR)/$(BOOKMARKER)
-+ (cd scripts; for i in *; do $(BSD_INSTALL_SCRIPT) -m 755 $$i $(DESTDIR)$(LIB_DIR)/$$i; done)
++ for d in $(BOOKMARKER) $(HELPER); do $(BSD_INSTALL_PROGRAM) -m 755 $$d $(DESTDIR)$(LIB_DIR)/$$d; done
++ (cd scripts; for i in *.cgi; do $(BSD_INSTALL_SCRIPT) -m 755 $$i $(DESTDIR)$(LIB_DIR)/$$i; done)
uninstall:
-$(RM) $(BIN_DIR)/$(TARGET)
@@ -54,10 +48,10 @@
+ -$(RM) $(HELP_DIR_JA)/w3mhelp-lynx_ja.html
-$(RM) $(HELP_DIR)/w3mhelp_en.html
- -$(RM) $(HELP_DIR)/w3mhelp_ja.html
+- -$(RM) $(HELP_DIR)/w3mhelp.html
+ -$(RM) $(HELP_DIR_JA)/w3mhelp_ja.html
- -$(RM) $(HELP_DIR)/w3mhelp.html
-- -$(RM) $(HELP_DIR)/$(BOOKMARKER)
+ -$(RM) $(LIB_DIR)/$(BOOKMARKER)
++ -$(RM) $(LIB_DIR)/$(HELPER)
- clean:
- rm -f *.o $(TARGETS) $(ALIB) mktable tagtable.c
+ clean: sweep
+ rm -f *.o *.a $(TARGETS) mktable
diff --git a/www/w3m/files/patch-ak b/www/w3m/files/patch-ak
index 6bd70a6b11b..408ed469464 100644
--- a/www/w3m/files/patch-ak
+++ b/www/w3m/files/patch-ak
@@ -1,10 +1,10 @@
---- main.c.orig Mon Dec 6 01:55:23 1999
-+++ main.c Mon Dec 6 01:56:00 1999
-@@ -1032,7 +1032,7 @@
+--- main.c.orig Fri Jan 28 14:38:59 2000
++++ main.c Fri Jan 28 18:57:39 2000
+@@ -1087,7 +1087,7 @@
void
ldhelp(void)
{
-- cmd_loadURL(libFile(HELP_FILE), NULL);
+- cmd_loadURL(helpFile(HELP_FILE), NULL);
+ cmd_loadURL(HELP_FILE, NULL);
}
diff --git a/www/w3m/files/patch-ao b/www/w3m/files/patch-ao
new file mode 100644
index 00000000000..9b00512431d
--- /dev/null
+++ b/www/w3m/files/patch-ao
@@ -0,0 +1,16 @@
+--- rc.c.orig Fri Jan 28 09:46:07 2000
++++ rc.c Fri Jan 28 18:58:17 2000
+@@ -540,13 +540,3 @@
+ Strcat_charp(file, base);
+ return expandName(file->ptr);
+ }
+-
+-char *
+-helpFile(char *base)
+-{
+- Str file = Strnew_charp(HELP_DIR);
+-
+- Strcat_char(file, '/');
+- Strcat_charp(file, base);
+- return expandName(file->ptr);
+-}