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

9
x11/xscribble/DESCR Normal file
View File

@@ -0,0 +1,9 @@
Xscribble is an X application that allows a user of a touch screen
to input characters into X applications, using a uni-stroke (graffiti
like) alphabet. It uses the X test extension to allow synthesis of
characters as though they had been typed on a keyboard. It is the
X version of the scribble program.
As this program is "familiar" to Palm users, even if other, better
recognizers become available, it is important that we have a good
implementation of this recognition system..

7
x11/xscribble/MESSAGE Normal file
View File

@@ -0,0 +1,7 @@
===========================================================================
$NetBSD: MESSAGE,v 1.2 2002/09/24 12:30:55 wiz Exp $
To actually use xscribble, you need to copy
${PREFIX}/share/examples/xscribble/*.cl into ~/.classifiers.
===========================================================================

34
x11/xscribble/Makefile Normal file
View File

@@ -0,0 +1,34 @@
# $NetBSD: Makefile,v 1.18 2012/10/29 05:07:20 asau Exp $
DISTNAME= xscribble
PKGNAME= xscribble-20000616
PKGREVISION= 3
CATEGORIES= x11
MASTER_SITES= http://www.handhelds.org/download/projects/xscribble/
EXTRACT_SUFX= .tgz
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://www.handhelds.org/projects/xscribble.html
COMMENT= Handwriting recognition (like graffiti)
MAKE_JOBS_SAFE= no
USE_IMAKE= YES
NO_INSTALL_MANPAGES= YES
.include "../../mk/bsd.prefs.mk"
.if ${OPSYS} == "Darwin"
SYS_LIBRARIES= -lmx
MAKE_ENV+= SYS_LIBRARIES=${SYS_LIBRARIES:Q}
.endif
INSTALLATION_DIRS= share/examples/xscribble
post-install:
${INSTALL_DATA} ${WRKSRC}/classifiers/*.cl ${DESTDIR}${PREFIX}/share/examples/xscribble
.include "../../x11/libXaw/buildlink3.mk"
.include "../../x11/libXt/buildlink3.mk"
.include "../../x11/libXtst/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"

5
x11/xscribble/PLIST Normal file
View File

@@ -0,0 +1,5 @@
@comment $NetBSD: PLIST,v 1.2 2009/06/14 18:25:18 joerg Exp $
bin/xscribble
share/examples/xscribble/digits.cl
share/examples/xscribble/letters.cl
share/examples/xscribble/punc.cl

11
x11/xscribble/distinfo Normal file
View File

@@ -0,0 +1,11 @@
$NetBSD: distinfo,v 1.8 2012/10/26 20:14:51 joerg Exp $
SHA1 (xscribble.tgz) = 9983577533c6b6f482e2bfe863f54604337562c7
RMD160 (xscribble.tgz) = 49f5a5339819a76e303a135d54fb8ffd4f88febb
Size (xscribble.tgz) = 164379 bytes
SHA1 (patch-aa) = 3655a05ea99e25a9f126d1b33c562c5387db82b7
SHA1 (patch-ab) = 6da2e1ba900c05d428de74b44e369c0e0c242190
SHA1 (patch-ac) = 61557798a2ea575862e9c0a14761465491ec6ac5
SHA1 (patch-ad) = 9fe0ce4f137975cd380280e13ccfa1543016b5b7
SHA1 (patch-ae) = 794a20d07760403be3fd90fef5de604732834771
SHA1 (patch-lirec_sc.c) = c53184fc5161ce5484f5e6139bae411727538f41

View File

@@ -0,0 +1,38 @@
$NetBSD: patch-aa,v 1.4 2012/07/30 04:08:53 dholland Exp $
- use standard headers
- don't need to provide bcopy or strdup
--- lirec/li_recognizer.c.orig Mon Jun 12 18:20:13 2000
+++ lirec/li_recognizer.c
@@ -21,7 +21,7 @@
#include <stdio.h>
#include <string.h>
#ifndef ELX
-#include <malloc.h>
+#include <stdlib.h>
#endif
#include <math.h>
#include <locale.h>
@@ -53,9 +53,9 @@ static char *lialg_recognize_stroke(rCla
char* li_err_msg = NULL;
char _zdebug_flag[128];
-#define bcopy(s1,s2,n) memcpy(s2,s1,n)
+/*#define bcopy(s1,s2,n) memcpy(s2,s1,n)*/
-#ifdef mips
+#if 0
char *strdup(char* from) {
char* to;
int len = strlen(from) + 1;
@@ -923,7 +923,8 @@ RECOGNIZER_FINALIZE(r)
************************************************** */
/*#include <assert.h>*/
-#include <values.h>
+#include <limits.h>
+#define MAXINT INT_MAX
#include <sys/time.h>
#ifdef __ultrix

View File

@@ -0,0 +1,18 @@
$NetBSD: patch-ab,v 1.3 2004/05/23 18:31:27 danw Exp $
--- Imakefile.orig Mon Jun 12 18:20:11 2000
+++ Imakefile
@@ -9,11 +9,10 @@ LOCAL_LIBRARIES = XkbClientLibs XawClien
SRCS = xscribble.c Scribble.c
OBJS = xscribble.o Scribble.o
HEADERS = ScribbleP.h Scribble.h
- DEFINES = XkbClientDefines
+ DEFINES = XkbClientDefines -Dunix=1
INCLUDES = -Ilirec -Irecman
MakeSubdirs($(SUBDIRS))
DependSubdirs($(SUBDIRS))
-ComplexProgramTarget(xscribble)
-
+ComplexProgramTargetNoMan(xscribble)

View File

@@ -0,0 +1,16 @@
$NetBSD: patch-ac,v 1.2 2012/07/30 04:08:53 dholland Exp $
Everything pkgsrc builds on counts as "unix", but doesn't necessarily
pollute the namespace with that by default.
--- lirec/util.h.orig 2000-06-12 22:20:14.000000000 +0000
+++ lirec/util.h
@@ -53,7 +53,7 @@ char *tempstring(); /* returns a pointer
# define GRAPHICS /* only GDEV on unix machines */
#endif
-#ifndef unix
+#if 0
/* various BSD to lattice C name changes */

View File

@@ -0,0 +1,13 @@
$NetBSD: patch-ad,v 1.1 2001/06/01 11:26:44 agc Exp $
--- lirec/Imakefile 2001/06/01 11:21:35 1.1
+++ lirec/Imakefile 2001/06/01 11:22:11
@@ -8,6 +8,8 @@
INCLUDES = -I../recman
+DEFINES = XkbClientDefines -Dunix=1
+
#include <Library.tmpl>
DependTarget()

View File

@@ -0,0 +1,23 @@
$NetBSD: patch-ae,v 1.2 2012/07/30 04:08:53 dholland Exp $
- Use standard headers.
- Don't declare own malloc.
--- lirec/util.c.orig 2000-06-12 22:20:14.000000000 +0000
+++ lirec/util.c
@@ -22,6 +22,7 @@ the full agreement.
#include <setjmp.h>
/* ari -- for strlen */
#include <string.h>
+#include <stdlib.h>
extern char* li_err_msg;
static char err_msg[BUFSIZ];
@@ -34,7 +35,6 @@ char *
myalloc(nitems, itemsize, typename)
char *typename;
{
- char *malloc();
register unsigned int bytes = nitems * itemsize;
register char *p = malloc(bytes);
if(p == NULL)

View File

@@ -0,0 +1,30 @@
$NetBSD: patch-lirec_sc.c,v 1.1 2012/10/26 20:14:51 joerg Exp $
--- lirec/sc.c.orig 2012-10-26 14:07:40.000000000 +0000
+++ lirec/sc.c
@@ -26,10 +26,13 @@ Software Foundation, Inc., 675 Mass Ave,
#include "matrix.h"
#include "util.h"
#include "sc.h"
-#include "stdio.h"
+#include <stdio.h>
+#include <stdlib.h>
#include "math.h"
#include "zdebug.h"
+static void FixClassifier(sClassifier sc, Matrix avgcov);
+
#define EPS (1.0e-6) /* for singular matrix check */
sClassifier
sNewClassifier()
@@ -363,9 +366,7 @@ register Matrix sigma;
return result;
}
-FixClassifier(sc, avgcov)
-register sClassifier sc;
-Matrix avgcov;
+static void FixClassifier(sClassifier sc, Matrix avgcov)
{
int i;
double det;