Import of pkgsrc-2013Q2

This commit is contained in:
2013-09-26 17:14:40 +02:00
commit 785076ae39
74991 changed files with 4380255 additions and 0 deletions
+36
View File
@@ -0,0 +1,36 @@
$NetBSD: patch-aa,v 1.1.1.1 2002/06/15 09:31:39 shell Exp $
--- src/Makefile.orig Mon Jun 10 21:05:56 2002
+++ src/Makefile
@@ -1,20 +1,16 @@
-CC = gcc
# do you have imlib?
#No, I don't have that strange library
#IMLIB =
#LIBIMLIB =
-#Yes I have
-IMLIB = -DIMLIB
-LIBIMLIB = -lImlib
#CFLAGS = -Wall -g -DFOR_PILOT_COMPAT -O2 -fno-strength-reduce -Dlinux -D__i386__ -D_POSIX_C_SOURCE=199309L -D_POSIX_SOURCE -D_XOPEN_SOURCE=500L -D_BSD_SOURCE -D_SVID_SOURCE -DFUNCPROTO=15 -DNARROWPROTO
-CFLAGS = -Wall -g -DFOR_PILOT_COMPAT -O2 -fno-strength-reduce
+CFLAGS += -Wall -DFOR_PILOT_COMPAT -O2 -fno-strength-reduce
INC = -I./include -I./IMdkit/include -I/usr/include -I/usr/X11R6/include
-LIB = -L/usr/X11R6/lib -lXext -lX11 ./IMdkit/lib/libXimd.a -L/usr/lib/unicon2 -limmclient -Wl,-rpath=/usr/lib/unicon2 -limm_server -lpth -ldl
+LIB = -lXext -lX11 ./IMdkit/lib/libXimd.a -limmclient -limm_server -lpth
SRC = chinput.c init.c server.c config.c color.c util.c convert.c IC.c XIM.c focus.c root.c overspot.c onspot.c offspot.c voice.c keyboard.c handw.c hwengine.c loop.c
@@ -23,7 +19,7 @@
all: chinput
chinput: IMdkit/lib/libXimd.a $(OBJ)
- g++ -o chinput $(OBJ) $(LIB) $(LIBIMLIB)
+ $(CC) -o chinput $(OBJ) $(LDFLAGS) $(LIB) $(LIBIMLIB)
.c.o:
$(CC) -c $(CFLAGS) $(IMLIB) $(INC) $<
+13
View File
@@ -0,0 +1,13 @@
$NetBSD: patch-ab,v 1.1.1.1 2002/06/15 09:31:39 shell Exp $
--- src/XIM.h.orig Mon Jun 10 21:19:55 2002
+++ src/XIM.h
@@ -25,7 +25,7 @@
//setenv XMODIFIERS @im=Chinput (csh, tcsh)
#define DEFAULT_IMNAME "Chinput"
-#define LOCALE_GB "zh_CN.GBK"
+#define LOCALE_GB "zh_CN.eucCN"
#define LOCALE_BIG5 "zh_TW.Big5"
//This input server support CJK by default
+13
View File
@@ -0,0 +1,13 @@
$NetBSD: patch-ac,v 1.1.1.1 2002/06/15 09:31:39 shell Exp $
--- src/chinput.c.orig Mon Jun 10 21:16:56 2002
+++ src/chinput.c
@@ -75,7 +75,7 @@
HZloadRCFile(); //resource file
HZloadRCIME(); //IME lists from Chinput.ad
HZparseParameters(argc, argv); //parse parameters
- setlocale(LC_ALL, deflocale); //locale set
+ setlocale(LC_CTYPE, deflocale); //locale set
HZinitDisplay(); //display init
HZinitServerFont(); //font init
HZinitWindows(); //windows geometry init
+31
View File
@@ -0,0 +1,31 @@
$NetBSD: patch-ad,v 1.1.1.1 2002/06/15 09:31:39 shell Exp $
--- src/config.c.orig Mon Jun 10 22:53:45 2002
+++ src/config.c
@@ -388,7 +388,7 @@
if(method == cur_inputmethod) return;
//change the encoding for later use
- if(!strcmp(chinputime[method].encoding, "GB"))
+ if(!strcmp(chinputime[method].encoding, "eucCN"))
HZServer.encoding = HZSERVER_ENCODING_GB;
else
HZServer.encoding = HZSERVER_ENCODING_BIG5;
@@ -681,7 +681,7 @@
if(HZServer.encoding == HZSERVER_ENCODING_GB){
for(i=0; i<index_ime; i++){
if(!strcmp(chinputime[i].name, imd) &&
- !strcmp(chinputime[i].encoding, "GB")){
+ !strcmp(chinputime[i].encoding, "eucCN")){
return i;
}
}
@@ -738,7 +738,7 @@
//chinput_imserver = IMM_OpenClient("127.0.0.1", 9010);
cur_inputmethod = id;
- if(!strcmp(chinputime[cur_inputmethod].encoding, "GB"))
+ if(!strcmp(chinputime[cur_inputmethod].encoding, "eucCN"))
HZServer.encoding = HZSERVER_ENCODING_GB;
else
HZServer.encoding = HZSERVER_ENCODING_BIG5;
+22
View File
@@ -0,0 +1,22 @@
$NetBSD: patch-ae,v 1.1.1.1 2002/06/15 09:31:39 shell Exp $
--- src/init.c.orig Mon Jun 10 21:23:44 2002
+++ src/init.c
@@ -342,7 +342,7 @@
//enable two locales at the same time
strcpy(imlocale, IMLOCALE);
- if(getenv("LC_ALL") && strstr(getenv("LC_ALL"), "zh_TW")){
+ if(getenv("LC_CTYPE") && strstr(getenv("LC_CTYPE"), "zh_TW.Big5")){
strcpy(deflocale, LOCALE_BIG5);
//strcpy(imlocale, "zh_TW");
flag_encoding = HZSERVER_ENCODING_BIG5;
@@ -567,7 +567,7 @@
}
fclose(fp);
- if(strstr(getenv("LC_ALL"), "zh_TW"))
+ if(strstr(getenv("LC_CTYPE"), "zh_TW.Big5"))
cur_inputmethod = HZgetInputMethod(input_method_big5);
else
cur_inputmethod = HZgetInputMethod(input_method_gb);
+15
View File
@@ -0,0 +1,15 @@
$NetBSD: patch-af,v 1.1.1.1 2002/06/15 09:31:39 shell Exp $
--- resource/Chinput.ad.orig Mon Jun 10 21:55:02 2002
+++ resource/Chinput.ad
@@ -55,8 +55,8 @@
! 16 point font set
!
chinput.font = 8x16
-chinput.gbfont = -*-song-medium-r-normal--16-*-*-*-*-*-gbk-0
-chinput.big5font = -*-song-medium-r-normal--16-*-*-*-*-*-big5-0
+chinput.gbfont = -*-medium-r-normal--16-*-*-*-*-*-gb2312.1980-0
+chinput.big5font = -*-medium-r-normal--16-*-*-*-*-*-big5-0
!
!
! inputbar width in chars
+12
View File
@@ -0,0 +1,12 @@
$NetBSD: patch-ag,v 1.1 2006/01/04 12:04:46 rxg Exp $
--- src/handw.c.orig 2006-01-04 19:57:26.000000000 +0800
+++ src/handw.c
@@ -25,7 +25,6 @@
#define F_STRING 0
#define F_CONTROL 1
-extern int ForwardEvent();
static int in_hwkeys(int x0, int y0);
static void set_hwkey(int n, char c, int f, char *label, char *blabel,
int x, int y, int w, int h);
+12
View File
@@ -0,0 +1,12 @@
$NetBSD: patch-ah,v 1.1 2006/01/04 12:04:46 rxg Exp $
--- src/keyboard.c.orig 2006-01-04 19:58:25.000000000 +0800
+++ src/keyboard.c
@@ -24,7 +24,6 @@
#define INC (x0 += KEY_WIDTH)
#define HALFINC (x0 += KEY_WIDTH/2)
-extern int ForwardEvent();
static void set_key(int n, unsigned long keysym, int x, int y, int w, int h);
static int in_keys(int x0, int y0);
+13
View File
@@ -0,0 +1,13 @@
$NetBSD: patch-ai,v 1.1 2007/07/24 15:14:50 joerg Exp $
--- src/IMdkit/lib/IMConn.c.orig 2007-07-24 14:18:46.000000000 +0000
+++ src/IMdkit/lib/IMConn.c
@@ -30,7 +30,7 @@ IN CONNECTION WITH THE USE OR PERFORMANC
******************************************************************/
#include <X11/Xlib.h>
-#include <malloc.h>
+#include <stdlib.h>
#include "IMdkit.h"
#include <stdarg.h>
+13
View File
@@ -0,0 +1,13 @@
$NetBSD: patch-aj,v 1.1 2009/07/06 16:06:58 joerg Exp $
--- src/IMdkit/lib/i18nClbk.c.orig 2010-05-31 09:18:25.000000000 +0200
+++ src/IMdkit/lib/i18nClbk.c
@@ -129,7 +129,7 @@ int _Xi18nPreeditDrawCallback (XIMS ims,
XIMPreeditDrawCallbackStruct *draw =
(XIMPreeditDrawCallbackStruct *) &preedit_CB->todo.draw;
CARD16 connect_id = call_data->any.connect_id;
- register int feedback_count;
+ int feedback_count;
register int i;
BITMASK32 status = 0x0;