summaryrefslogtreecommitdiff
path: root/misc/wdic/patches
diff options
context:
space:
mode:
authorminskim <minskim>2005-03-07 14:48:09 +0000
committerminskim <minskim>2005-03-07 14:48:09 +0000
commitf797b5b327c27f478fd4211cad6542ed833e8a20 (patch)
tree22f99cbb7ec982673ac984cf5bb33d6499333b3e /misc/wdic/patches
parent334efdf2df20b46476fa42e3f3c30c45face0d37 (diff)
downloadpkgsrc-f797b5b327c27f478fd4211cad6542ed833e8a20.tar.gz
Import wdic-3.0. Packaged by Yi Min-Cheol.
wdic is a terminal-based English dictionary for Korean. It fetches data from the Empas dictionary (http://engdic.emaps.com/).
Diffstat (limited to 'misc/wdic/patches')
-rw-r--r--misc/wdic/patches/patch-aa11
-rw-r--r--misc/wdic/patches/patch-ab23
2 files changed, 34 insertions, 0 deletions
diff --git a/misc/wdic/patches/patch-aa b/misc/wdic/patches/patch-aa
new file mode 100644
index 00000000000..addca2f28e9
--- /dev/null
+++ b/misc/wdic/patches/patch-aa
@@ -0,0 +1,11 @@
+$NetBSD: patch-aa,v 1.1.1.1 2005/03/07 14:48:09 minskim Exp $
+
+--- Makefile.orig 2005-03-07 19:36:49.000000000 +0900
++++ Makefile
+@@ -1,5 +1,5 @@
+ all:
+- gcc -o wdic -ggdb wdic_wob_v3.0.c
++ ${CC} -o wdic ${CFLAGS} wdic_wob_v3.0.c
+
+ clean:
+ rm -f *.o wdic
diff --git a/misc/wdic/patches/patch-ab b/misc/wdic/patches/patch-ab
new file mode 100644
index 00000000000..4608cc0c386
--- /dev/null
+++ b/misc/wdic/patches/patch-ab
@@ -0,0 +1,23 @@
+$NetBSD: patch-ab,v 1.1.1.1 2005/03/07 14:48:09 minskim Exp $
+
+--- wdic_wob_v3.0.c.orig Mon Jan 3 06:29:42 2005
++++ wdic_wob_v3.0.c
+@@ -13,6 +13,9 @@
+ #include <string.h>
+ #include <netdb.h>
+ #include <sys/socket.h>
++#if defined(__NetBSD__) || defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__APPLE__)
++#include <netinet/in.h>
++#endif
+
+ #define VERSION "v3.0"
+ #define URL "engdic.empas.com"
+@@ -66,7 +69,7 @@ void parse_result(int sd) {
+
+ if(main_start==1) {
+ if(strcmp("<br>", buf) == 0) { printf("\n"); }
+- else if((strstr(buf, "left:8px")!=NULL) || (strstr(buf, "v_ico_plus")!=NULL)) {
++ else if((strstr(buf, "margin-top:15px")!=NULL) || (strstr(buf, "v_ico_plus")!=NULL)) {
+ // stop parsing main
+ main_start = 0;
+ }