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

3
converters/macfork/DESCR Normal file
View File

@@ -0,0 +1,3 @@
A UN*X utility for extracting resources from a Macintosh resource
fork. Currently macfork only directly supports icon families, pict
files, and palettes, but any resource data can be extracted to a file.

View File

@@ -0,0 +1,25 @@
# $NetBSD: Makefile,v 1.19 2012/10/03 00:20:12 asau Exp $
DISTNAME= macfork-1.0
PKGREVISION= 1
CATEGORIES= converters
MASTER_SITES= http://www.cs.cmu.edu/~ajw/public/dist/
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://www.cs.cmu.edu/afs/cs/user/ajw/www/software/
COMMENT= Tool for extracting data from Macintosh resource forks
WRKSRC= ${WRKDIR}/macfork
USE_LANGUAGES= c c++
USE_TOOLS+= gmake
DOCDIR= ${PREFIX}/share/doc/macfork
INSTALLATION_DIRS= bin
do-install:
${INSTALL_PROGRAM} ${WRKSRC:Q}/macfork ${DESTDIR}${PREFIX:Q}/bin
${INSTALL_DATA_DIR} ${DESTDIR}${DOCDIR}
${INSTALL_DATA} ${WRKSRC:Q}/README ${DESTDIR}${DOCDIR}
.include "../../mk/bsd.pkg.mk"

3
converters/macfork/PLIST Normal file
View File

@@ -0,0 +1,3 @@
@comment $NetBSD: PLIST,v 1.2 2009/06/14 17:39:10 joerg Exp $
bin/macfork
share/doc/macfork/README

View File

@@ -0,0 +1,9 @@
$NetBSD: distinfo,v 1.6 2012/11/07 15:23:37 joerg Exp $
SHA1 (macfork-1.0.tar.gz) = 86cbf8a7a3c65bd168f40ef9ab1e1a73161abdd0
RMD160 (macfork-1.0.tar.gz) = e37842b9dbec86e235dcd759be002f4810be1421
Size (macfork-1.0.tar.gz) = 15451 bytes
SHA1 (patch-Makefile) = 6d6ad60d13b1ff451ab9486a5347b744b39fefe1
SHA1 (patch-aa) = be6282f1fb0ca57fc3a002e830885ff64eaab233
SHA1 (patch-ab) = 82c91966a3875afdcaaf2ff65957dc97e1e3786a
SHA1 (patch-ac) = 6ffb0e1eeb3a43167053f0abdc18ff1a8fdc9ea2

View File

@@ -0,0 +1,13 @@
$NetBSD: patch-Makefile,v 1.1 2012/11/07 15:23:37 joerg Exp $
--- Makefile.orig 2012-11-05 19:40:37.000000000 +0000
+++ Makefile
@@ -7,7 +7,7 @@ MYCODEDIR := .
# Directories to search for header files
-SEARCHDIRS := -I- -I${MYCODEDIR}
+SEARCHDIRS := -I${MYCODEDIR}
# makemake variables

View File

@@ -0,0 +1,16 @@
$NetBSD: patch-aa,v 1.3 2005/01/19 16:45:59 tv Exp $
--- Resource.cc.orig 1999-08-31 13:10:19.000000000 -0400
+++ Resource.cc
@@ -9,7 +9,11 @@
*/
#include "Resource.h"
+#include <sys/types.h>
+#include <sys/socket.h>
#include <netinet/in.h>
+#include <arpa/inet.h> /* for ntoh*() */
+#include <string.h>
#define dprintf if (0) printf

View File

@@ -0,0 +1,12 @@
$NetBSD: patch-ab,v 1.1 2005/01/19 16:45:59 tv Exp $
--- MacFork.cc.orig 2005-01-19 11:43:48.000000000 -0500
+++ MacFork.cc
@@ -14,6 +14,7 @@
#include "Resource.h"
#include <netinet/in.h>
+#include <arpa/inet.h> /* for ntoh*() */
const Int NO_ID = 65536;

View File

@@ -0,0 +1,111 @@
$NetBSD: patch-ac,v 1.1 2008/08/02 21:00:29 dholland Exp $
Fix misuses of va_list to allow building on amd64.
--- arg.c.orig 1999-08-31 12:49:19.000000000 -0400
+++ arg.c 2008-08-02 16:56:12.000000000 -0400
@@ -28,5 +28,6 @@
#include <stdarg.h>
+#include <stdint.h>
#include <ctype.h>
#include <string.h>
#include <stdlib.h>
@@ -65,7 +66,11 @@ int arg_warning = 1; /* print warnings
static Arg_form *regf; /* advancing form ptr used by arg_find_reg */
-va_list arg_doc_parse();
+struct va_holder {
+ va_list ap;
+};
+
+static void arg_doc_parse(Arg_form *, struct va_holder *);
int arg_format(Arg_form *f);
void arg_init(Arg_form *form);
int arg_done();
@@ -180,7 +185,7 @@ Arg_form *arg_to_form1(va_list ap)
}
for (; (s = va_arg(ap, char *)) != 0;) {
/* note that we continue (not break) in all cases except one */
- switch ((int)s) {
+ switch ((int)(intptr_t)s) {
case ARG_FLAGNEXT: /* ptr to flag vbl */
CHECKTYPE(form, "FLAG");
form->type = ARG_SIMPFLAG;
@@ -220,7 +225,12 @@ Arg_form *arg_to_form1(va_list ap)
form->doc = prevs = s;
/* skip over doc args */
- ap = arg_doc_parse(form, ap);
+ {
+ struct va_holder tmp;
+ va_copy(tmp.ap, ap);
+ arg_doc_parse(form, &tmp);
+ va_copy(ap, tmp.ap);
+ }
}
va_end(ap);
return rootform;
@@ -289,13 +299,13 @@ int arg_format(Arg_form *f)
* documentation string and returns the new ap.
*/
-va_list arg_doc_parse(Arg_form *f, va_list ap)
+static void arg_doc_parse(Arg_form *f, struct va_holder *app)
{
char *s, buf[256];
int size, gotparam;
va_list ap0;
- ap0 = ap;
+ va_copy(ap0, app->ap);
gotparam = 0;
for (s=f->doc; *s; s++) {
for (; *s; s++) /* search for next format code */
@@ -329,22 +339,22 @@ va_list arg_doc_parse(Arg_form *f, va_li
case 'o': case 'O':
case 'x': case 'X':
case 'c':
- if (size==2 || *s>='A' && *s<='Z') va_arg(ap, long);
- else va_arg(ap, int);
+ if (size==2 || *s>='A' && *s<='Z') va_arg(app->ap, long);
+ else va_arg(app->ap, int);
break;
case 'e':
case 'f':
case 'g':
/* note: float args are converted to doubles by MOST compilers*/
- va_arg(ap, double);
+ va_arg(app->ap, double);
break;
case 's':
- va_arg(ap, char *);
+ va_arg(app->ap, char *);
break;
default:
fprintf(stderr, "arg: unknown format code %%%c in %s\n",
*s, f->doc);
- va_arg(ap, int);
+ va_arg(app->ap, int);
break;
}
}
@@ -354,7 +364,7 @@ va_list arg_doc_parse(Arg_form *f, va_li
strcpy(f->doc, buf);
}
- return ap; /* varargs ptr past end of doc params */
+ /*return ap;*/ /* varargs ptr past end of doc params */
}
/*----------------------------------------------------------------------*/
@@ -851,7 +861,7 @@ static void space(FILE *fp, int c, int c
putc('\n', fp);
c = 0;
}
- for (; c<c1&~7; c=(c+7)&~7) putc('\t', fp);
+ for (; c<(c1&~7); c=(c+7)&~7) putc('\t', fp);
for (; c<c1; c++) putc(' ', fp);
}