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

18
emulators/ucon64/DESCR Normal file
View File

@@ -0,0 +1,18 @@
uCON64 - THE tool for all your video game console concerns.
- Support for 14+ different cartridge and disc-based video game console system
- Support for ALL common patch file formats like: IPS *), APS, BSL, PPF and
Game Genie
*) with RLE compression
- Support for 10+ different backup units to backup/restore ROM(s), disc(s) and
SRAM(s) like: Flash Advance Linker, Flash 2 Advance, Doctor V64 (Junior),
Super Wild Card, Game Doctor, Dexdrive, Super Magic Drive, Game Boy Xchanger
Mad Catz Camera Link, Lynxit, MD-PRO, SMS-PRO, PCE-PRO, GG-PRO, Super Flash
and your CD-writer.
Including:
*VERY* verbose ROM information for ALL systems, detection of bad dumps using
internal checksums or DAT files, CRC32 calculation, ROM comparison,
modification (strip, pad, etc...), SRAM conversion (emulator <-> backup
unit), DiscJuggler and Nero image conversions, complete gzip and zip support
for all file-related funtions, etc...

36
emulators/ucon64/Makefile Normal file
View File

@@ -0,0 +1,36 @@
# $NetBSD: Makefile,v 1.10 2012/10/03 12:55:20 asau Exp $
#
DISTNAME= ucon64-2.0.0-src
PKGNAME= ${DISTNAME:S/-src//}
PKGREVISION= 2
CATEGORIES= emulators
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=ucon64/}
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://ucon64.sourceforge.net/
COMMENT= Emulator ROM and disk image converter and inspector
WRKSRC= ${WRKDIR}/${DISTNAME}/src
CONFIGURE_ARGS+= --disable-discmage # requires some work
CONFIGURE_ARGS+= --disable-dload
CPPFLAGS+= -D__unix__
GNU_CONFIGURE= yes
USE_TOOLS+= gmake
CHECK_PORTABILITY_SKIP+=install_beos.sh
INSTALLATION_DIRS= bin share/examples/ucon64 share/doc/ucon64/images
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/ucon64 ${DESTDIR}${PREFIX}/bin
${INSTALL_DATA} ${WRKSRC}/[a-z]*.txt \
${DESTDIR}${PREFIX}/share/examples/ucon64
${INSTALL_DATA} ${WRKDIR}/${DISTNAME}/*.html \
${DESTDIR}${PREFIX}/share/doc/ucon64
${INSTALL_DATA} ${WRKDIR}/${DISTNAME}/images/* \
${DESTDIR}${PREFIX}/share/doc/ucon64/images
.include "options.mk"
.include "../../devel/zlib/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"

37
emulators/ucon64/PLIST Normal file
View File

@@ -0,0 +1,37 @@
@comment $NetBSD: PLIST,v 1.2 2009/06/14 17:51:09 joerg Exp $
bin/ucon64
share/doc/ucon64/changes.html
share/doc/ucon64/developers.html
share/doc/ucon64/faq.html
share/doc/ucon64/hardware.html
share/doc/ucon64/images/bg.jpg
share/doc/ucon64/images/cameralink.png
share/doc/ucon64/images/cd_rw.png
share/doc/ucon64/images/dexdrive.png
share/doc/ucon64/images/f2a.png
share/doc/ucon64/images/fal.png
share/doc/ucon64/images/fig.png
share/doc/ucon64/images/gbx.png
share/doc/ucon64/images/ggpro.png
share/doc/ucon64/images/hr.png
share/doc/ucon64/images/icon.png
share/doc/ucon64/images/logo.png
share/doc/ucon64/images/mdpro.png
share/doc/ucon64/images/msg.png
share/doc/ucon64/images/pcepro.png
share/doc/ucon64/images/sf3.png
share/doc/ucon64/images/smc.png
share/doc/ucon64/images/smd.png
share/doc/ucon64/images/smspro.png
share/doc/ucon64/images/swc.png
share/doc/ucon64/images/v64.png
share/doc/ucon64/images/v64jr.png
share/doc/ucon64/install.html
share/doc/ucon64/license.html
share/doc/ucon64/readme.html
share/examples/ucon64/genpal.txt
share/examples/ucon64/mdntsc.txt
share/examples/ucon64/snescopy.txt
share/examples/ucon64/snesntsc.txt
share/examples/ucon64/snespal.txt
share/examples/ucon64/snesslow.txt

11
emulators/ucon64/distinfo Normal file
View File

@@ -0,0 +1,11 @@
$NetBSD: distinfo,v 1.6 2012/07/18 22:10:21 marino Exp $
SHA1 (ucon64-2.0.0-src.tar.gz) = 8782bbc2bf5760fafe3fa4cd02b67991d984a973
RMD160 (ucon64-2.0.0-src.tar.gz) = c28921cfae1a010db917b96be542c089690b374c
Size (ucon64-2.0.0-src.tar.gz) = 1188488 bytes
SHA1 (patch-aa) = fd1543314b6ca6d432c6d88b8b7590085dfc51e9
SHA1 (patch-ab) = 25f5311844511674d5e64efe7c35cf86dacc34a9
SHA1 (patch-ac) = 9c7febe59e1c8e6959f56e34ced83a31fa54c294
SHA1 (patch-ad) = c41895de15bc2a48bf5de1535f03d070ade79ea3
SHA1 (patch-ae) = bfb38ecec2408deaaef881fa33943e2c45bccd4d
SHA1 (patch-af) = 2f53d87dd40dfdfd90580161444d956df32207df

View File

@@ -0,0 +1,17 @@
# $NetBSD: options.mk,v 1.1.1.1 2005/07/26 04:12:22 tv Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.ucon64
PKG_SUPPORTED_OPTIONS= libusb
.include "../../mk/bsd.options.mk"
###
### Build with USB support.
###
.if !empty(PKG_OPTIONS:Mlibusb)
CONFIGURE_ARGS+= --with-libusb
CPPFLAGS+= -I${BUILDLINK_PREFIX.libusb}/include
LDFLAGS+= -L${BUILDLINK_PREFIX.libusb}/lib
LDFLAGS+= ${COMPILER_RPATH_FLAG}${BUILDLINK_PREFIX.libusb}/lib
. include "../../devel/libusb/buildlink3.mk"
.endif

View File

@@ -0,0 +1,24 @@
$NetBSD: patch-aa,v 1.1.1.1 2005/07/26 04:12:22 tv Exp $
--- Makefile.in.orig 2004-09-05 10:32:27.000000000 -0400
+++ Makefile.in
@@ -7,8 +7,8 @@
@DEFINE_LIBCD64_MAKE@
CC=@CC@
-CFLAGS=-I. -Wall -W -O3 @DEFS@
-LDFLAGS=-s
+CFLAGS=-I. -Wall -W @CPPFLAGS@ @CFLAGS@ @DEFS@
+LDFLAGS=@LDFLAGS@
TARGETS=
ifdef USE_DISCMAGE
@@ -76,7 +76,7 @@ endif
else # DLOPEN
ifdef USE_DISCMAGE # GNU specific: "simply expanded variable"
FULLLIBNAME_DM:=$(addprefix lib,$(FULLLIBNAME_DM))
-LDFLAGS+=-Llibdiscmage -l$(LIBNAME_DM)
+LDFLAGS+=-Llibdiscmage -l$(LIBNAME_DM) -lm
endif
endif

View File

@@ -0,0 +1,13 @@
$NetBSD: patch-ab,v 1.1.1.1 2005/07/26 04:12:22 tv Exp $
--- libdiscmage/libdiscmage.h.orig 2005-07-25 18:00:47.000000000 -0400
+++ libdiscmage/libdiscmage.h
@@ -28,7 +28,7 @@ extern "C" {
#include <stdio.h> // FILENAME_MAX
-#if defined __linux__ || defined __FreeBSD__ || defined __OpenBSD__ || \
+#if defined __linux__ || defined __FreeBSD__ || defined __OpenBSD__ || defined __NetBSD__ || \
defined __solaris__ || defined __MINGW32__ || defined __CYGWIN__ || \
defined __BEOS__ || defined AMIGA || defined __APPLE__ // Mac OS X actually
// We cannot use config.h (for HAVE_INTTYPES_H), because this header file may be

View File

@@ -0,0 +1,14 @@
$NetBSD: patch-ac,v 1.1.1.1 2005/07/26 04:12:22 tv Exp $
--- misc/unzip.h.orig 2004-07-28 13:27:22.000000000 -0400
+++ misc/unzip.h
@@ -48,6 +48,9 @@ extern "C" {
#ifndef _ZLIB_H
#include "zlib.h"
#endif
+#ifndef OF
+#define OF(x) x
+#endif
#if defined(STRICTUNZIP) || defined(STRICTZIPUNZIP)
/* like the STRICT of WIN32, we define a pointer that cannot be converted

View File

@@ -0,0 +1,15 @@
$NetBSD: patch-ad,v 1.1 2005/12/09 11:48:11 joerg Exp $
--- misc/file.c.orig 2005-12-09 11:37:31.000000000 +0000
+++ misc/file.c
@@ -90,10 +90,6 @@ Foundation, Inc., 675 Mass Ave, Cambridg
#define inline __inline
#endif
-
-extern int errno;
-
-
int
isfname (int c)
{

View File

@@ -0,0 +1,14 @@
$NetBSD: patch-ae,v 1.1 2005/12/09 11:48:11 joerg Exp $
--- misc/misc.c.orig 2005-12-09 11:41:00.000000000 +0000
+++ misc/misc.c
@@ -88,9 +88,6 @@ typedef struct termios tty_t;
#endif // MAXBUFSIZE
#define MAXBUFSIZE 32768
-
-extern int errno;
-
typedef struct st_func_node
{
void (*func) (void);

View File

@@ -0,0 +1,146 @@
$NetBSD: patch-af,v 1.3 2012/07/18 22:10:21 marino Exp $
- don't declare own errno
- fix build failure where gzgetc() is a macro (seen in a recent Linux
bulk build)
XXX: what this code is doing (mixing gzFile* and FILE* indiscriminately
XXX: without even casting) is vile and will probably stop compiling at
XXX: some point.
JRM: That point arrived. The garbage spewed when compiled with
JRM: zlib >= 1.2.6. Cast gzFile everywhere to fix it.
JRM: David's gzgetc fix was changed; it broke too.
--- misc/archive.c.orig 2004-12-12 01:16:54.000000000 +0000
+++ misc/archive.c
@@ -48,9 +48,6 @@ Foundation, Inc., 675 Mass Ave, Cambridg
#define MAXBUFSIZE 32768
-extern int errno;
-
-
int
fsizeof (const char *filename)
// If USE_ZLIB is defined this function is very slow. Please avoid to use
@@ -84,15 +81,15 @@ fsizeof (const char *filename)
}
#if 1
// This is not much faster than the other method
- while (!gzeof (file))
- gzseek (file, 1024 * 1024, SEEK_CUR);
- size = gztell (file);
+ while (!gzeof ((gzFile)file))
+ gzseek ((gzFile)file, 1024 * 1024, SEEK_CUR);
+ size = gztell ((gzFile)file);
#else
// Is there a more efficient way to determine the uncompressed size?
while ((bytesread = gzread (file, buf, MAXBUFSIZE)) > 0)
size += bytesread;
#endif
- gzclose (file);
+ gzclose ((gzFile)file);
return size;
}
else if (magic[0] == 'P' && magic[1] == 'K' && magic[2] == 0x03 && magic[3] == 0x04)
@@ -384,7 +381,7 @@ fclose2 (FILE *file)
if (fmode == FM_NORMAL)
return fclose (file);
else if (fmode == FM_GZIP)
- return gzclose (file);
+ return gzclose ((gzFile)file);
else if (fmode == FM_ZIP)
{
unzCloseCurrentFile (file);
@@ -416,12 +413,12 @@ fseek2 (FILE *file, long offset, int mod
if (mode == SEEK_END) // zlib doesn't support SEEK_END
{
// Note that this is _slow_...
- while (!gzeof (file))
+ while (!gzeof ((gzFile)file))
{
- gzgetc (file); // necessary for _uncompressed_ files in order to set EOF
- gzseek (file, 1024 * 1024, SEEK_CUR);
+ gzgetc ((gzFile)file); // necessary for _uncompressed_ files in order to set EOF
+ gzseek ((gzFile)file, 1024 * 1024, SEEK_CUR);
}
- offset += gztell (file);
+ offset += gztell ((gzFile)file);
mode = SEEK_SET;
}
/*
@@ -433,8 +430,8 @@ fseek2 (FILE *file, long offset, int mod
DJGPP, Cygwin & GNU/Linux). It clears the EOF indicator.
*/
if (!finfo->compressed)
- gzrewind (file);
- return gzseek (file, offset, mode) == -1 ? -1 : 0;
+ gzrewind ((gzFile)file);
+ return gzseek ((gzFile)file, offset, mode) == -1 ? -1 : 0;
}
else if (finfo->fmode == FM_ZIP)
{
@@ -476,7 +473,7 @@ fread2 (void *buffer, size_t size, size_
return fread (buffer, size, number, file);
else if (fmode == FM_GZIP)
{
- int n = gzread (file, buffer, number * size);
+ int n = gzread ((gzFile)file, buffer, number * size);
return n / size;
}
else if (fmode == FM_ZIP)
@@ -498,7 +495,7 @@ fgetc2 (FILE *file)
if (fmode == FM_NORMAL)
return fgetc (file);
else if (fmode == FM_GZIP)
- return gzgetc (file);
+ return gzgetc ((gzFile)file);
else if (fmode == FM_ZIP)
{
char c;
@@ -521,7 +518,7 @@ fgets2 (char *buffer, int maxlength, FIL
return fgets (buffer, maxlength, file);
else if (fmode == FM_GZIP)
{
- char *retval = gzgets (file, buffer, maxlength);
+ char *retval = gzgets ((gzFile)file, buffer, maxlength);
return retval == Z_NULL ? NULL : retval;
}
else if (fmode == FM_ZIP)
@@ -556,7 +553,7 @@ feof2 (FILE *file)
if (fmode == FM_NORMAL)
return feof (file);
else if (fmode == FM_GZIP)
- return gzeof (file);
+ return gzeof ((gzFile)file);
else if (fmode == FM_ZIP)
return unzeof (file); // returns feof() of the "current file"
else
@@ -578,7 +575,7 @@ fwrite2 (const void *buffer, size_t size
return fwrite (buffer, size, number, file);
else if (fmode == FM_GZIP)
{
- int n = gzwrite (file, (void *) buffer, number * size);
+ int n = gzwrite ((gzFile)file, (void *) buffer, number * size);
return n / size;
}
else
@@ -596,7 +593,7 @@ fputc2 (int character, FILE *file)
if (fmode == FM_NORMAL)
return fputc (character, file);
else if (fmode == FM_GZIP)
- return gzputc (file, character);
+ return gzputc ((gzFile)file, character);
else
return EOF; // writing to zip files is not supported
#define fputc fputc2
@@ -612,7 +609,7 @@ ftell2 (FILE *file)
if (fmode == FM_NORMAL)
return ftell (file);
else if (fmode == FM_GZIP)
- return gztell (file);
+ return gztell ((gzFile)file);
else if (fmode == FM_ZIP)
return unztell (file); // returns ftell() of the "current file"
else