summaryrefslogtreecommitdiff
path: root/textproc/stardic/patches
diff options
context:
space:
mode:
authorshell <shell@pkgsrc.org>2002-06-15 09:21:43 +0000
committershell <shell@pkgsrc.org>2002-06-15 09:21:43 +0000
commitcd58b39db02bd199da5b2abfcd69b996a48d276f (patch)
tree2177685c7f9c325e671d68f944a5167d0c6858bd /textproc/stardic/patches
parentfbb67319c0e16d6d6f254dd073f56e74221e2324 (diff)
downloadpkgsrc-cd58b39db02bd199da5b2abfcd69b996a48d276f.tar.gz
Initial import of stardic-1.31
(PR#16410 by Rui-Xiang Guo <rxg@netbsd.org>) English-Chinese dictionary --- * an English-Chinese dictionary software for Unix; * about 50000 words, some have phonetic symbols; * rule match; * fetch word from screen; * no Chinese environment needed;
Diffstat (limited to 'textproc/stardic/patches')
-rw-r--r--textproc/stardic/patches/patch-aa49
-rw-r--r--textproc/stardic/patches/patch-ab24
2 files changed, 73 insertions, 0 deletions
diff --git a/textproc/stardic/patches/patch-aa b/textproc/stardic/patches/patch-aa
new file mode 100644
index 00000000000..bd30359a002
--- /dev/null
+++ b/textproc/stardic/patches/patch-aa
@@ -0,0 +1,49 @@
+$NetBSD: patch-aa,v 1.1.1.1 2002/06/15 09:21:43 shell Exp $
+
+--- makefile.orig Sat Jan 29 12:07:34 2000
++++ makefile
+@@ -1,15 +1,16 @@
+ TRANSOBJ= trans.o image.o regdef.o
++TRANSDIR= $(PREFIX)/share/stardic
+
+ # modify those variables for yourself
+
+ # for linux
+-LDFLAGS= -L/usr/X11/lib -lXm -lXt -lXext -lX11
++LDFLAGS+= -L/usr/X11/lib -lXm -lXt -lXext -lX11
+
+ # for solaris
+ # LDFLAGS= -lXm -lXt -lXext -lX11
+
+ # for linux
+-CPPFLAGS= -I/usr/X11/include
++CPPFLAGS+= -I/usr/X11/include -DTRANSHOME=\"$(TRANSDIR)\"
+
+ # for solaris
+ #CPPFLAGS= -I/usr/dt/include -I/usr/openwin/include
+@@ -18,14 +19,22 @@
+ #CFLAGS= +w -DNDEBUG
+
+ # for g++
+-CFLAGS= -Wall -DNDEBUG
++CFLAGS+= -Wall -DNDEBUG
+
+-CC= g++
++CC= $(CXX)
+ #CC= CC
+
+ .KEEP_STATE:
+-stardic:$(TRANSOBJ)
++all: $(TRANSOBJ)
+ $(LINK.c) -o stardic $(TRANSOBJ)
++ gzip hzfont/*.pcf
+
+ .cc.o:
+ $(COMPILE.c) $<
++
++install:
++ $(BSD_INSTALL_PROGRAM) stardic $(PREFIX)/bin
++ $(BSD_INSTALL_DATA_DIR) $(TRANSDIR)
++ $(BSD_INSTALL_DATA) transdic yblib *.gif *.xbm $(TRANSDIR)
++ $(BSD_INSTALL_DATA_DIR) $(TRANSDIR)/hzfont
++ $(BSD_INSTALL_DATA) hzfont/fonts.dir hzfont/*.pcf.gz $(TRANSDIR)/hzfont
diff --git a/textproc/stardic/patches/patch-ab b/textproc/stardic/patches/patch-ab
new file mode 100644
index 00000000000..14f9f711fc7
--- /dev/null
+++ b/textproc/stardic/patches/patch-ab
@@ -0,0 +1,24 @@
+$NetBSD: patch-ab,v 1.1.1.1 2002/06/15 09:21:44 shell Exp $
+
+--- trans.cc.orig Sat Jan 29 11:34:27 2000
++++ trans.cc
+@@ -103,6 +103,7 @@
+ char sHomeDir[MAX_STR_LEN+1];
+ PixmapClass *poBackImage;
+ char* asSearchDirs[]={
++ TRANSHOME,
+ "/opt/dic",
+ "/usr/local/dic",
+ "/dic",
+@@ -2468,6 +2469,11 @@
+ void AppFrame::vInit(int argc,char **argv)
+ {
+ Atom DELETE_WIN;
++ int i;
++
++ for (i = 1; i < argc; i++)
++ if (strcmp("-ft", argv[i]) == 0)
++ fallback[10] = "*fontList:9x15bold=English,hz16ft=Chinese,yb10x20=YB";
+
+ wToplevel=XtVaAppInitialize(&app,"transrc",
+ NULL,0,&argc,argv,fallback,