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
+4
View File
@@ -0,0 +1,4 @@
Basilisk II is an Open Source 68k Macintosh emulator. That is, it
enables you to run 68k MacOS software on you computer, even if you
are using a different operating system. However, you still need a
copy of MacOS and a Macintosh ROM image to use Basilisk II.
+36
View File
@@ -0,0 +1,36 @@
# $NetBSD: Makefile,v 1.35 2012/10/03 12:55:08 asau Exp $
DISTNAME= BasiliskII_src_01052006
PKGNAME= BasiliskII-1.0.20060501
PKGREVISION= 3
CATEGORIES= emulators
MASTER_SITES= http://gwenole.beauchesne.info/projects/basilisk2/files/
EXTRACT_SUFX= .tar.bz2
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://gwenole.beauchesne.info/projects/basilisk2/
COMMENT= Open Source 68k Macintosh emulator
WRKSRC= ${WRKDIR}/BasiliskII-1.0
USE_LANGUAGES= c c++
USE_TOOLS+= gmake
GNU_CONFIGURE= yes
CONFIGURE_DIRS= src/Unix
CONFIGURE_ARGS+= --disable-fbdev-dga
CONFIGURE_ARGS+= --enable-addressing=banks
CONFIGURE_ARGS+= --without-mon
BUILD_DIRS= ${CONFIGURE_DIRS}
.include "options.mk"
CXXFLAGS+=-g -O0
INSTALLATION_DIRS= share/doc/BasiliskII
post-install:
${INSTALL_DATA} ${WRKSRC}/README ${DESTDIR}${PREFIX}/share/doc/BasiliskII/
${INSTALL_DATA} ${WRKSRC}/TECH ${DESTDIR}${PREFIX}/share/doc/BasiliskII/
${INSTALL_DATA} ${WRKSRC}/TODO ${DESTDIR}${PREFIX}/share/doc/BasiliskII/
.include "../../converters/libiconv/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
+9
View File
@@ -0,0 +1,9 @@
@comment $NetBSD: PLIST,v 1.4 2009/06/14 17:51:00 joerg Exp $
bin/BasiliskII
man/man1/BasiliskII.1
share/BasiliskII/fbdevices
share/BasiliskII/keycodes
share/BasiliskII/tunconfig
share/doc/BasiliskII/README
share/doc/BasiliskII/TECH
share/doc/BasiliskII/TODO
+18
View File
@@ -0,0 +1,18 @@
$NetBSD: distinfo,v 1.17 2012/05/14 07:35:02 dholland Exp $
SHA1 (BasiliskII_src_01052006.tar.bz2) = 6373b33adf6caec53c5d1ed46a00adcac89ad3bb
RMD160 (BasiliskII_src_01052006.tar.bz2) = bb1a061c504bd7d28b869e0eec2806cf8a79cf8d
Size (BasiliskII_src_01052006.tar.bz2) = 1310908 bytes
SHA1 (patch-aa) = 387f7a3f6edac21b99d81ba88a0eeed4591c75ef
SHA1 (patch-ab) = 4ada93db64772e70e95c58b6a324019c1da6a72d
SHA1 (patch-ac) = ac4d313a8c60a807a5ea563dcca995e092be9c15
SHA1 (patch-ad) = 6a215532e891848fe449ef5fe4307793c34bb9d6
SHA1 (patch-ae) = dcac9287614535fa72fe9c8b0e3c516575e40887
SHA1 (patch-af) = 285b46cc6e1b761e12498603579424b4f49689c1
SHA1 (patch-ag) = 081471cf25f0b11a9ef449e48fd7ce8ea3367f0d
SHA1 (patch-ah) = 0f67eed6f59e6c381c1a6fbeb98261cad4697760
SHA1 (patch-ai) = fc527be478576f157bffbd6a91eb1bdc85903fb1
SHA1 (patch-aj) = c331aa7080b330cf58f58c72456b91b0e5a2156f
SHA1 (patch-ak) = 1dad263b22ae3257a6e34b90972ba264ada7b287
SHA1 (patch-src-slirp-misc.c) = c9209ae4f3b142a506d42d296ed854974ec47117
SHA1 (patch-src-slirp-slirp.h) = c0c93d01e5b8d5182ddeed87b1434a7b113175e0
+36
View File
@@ -0,0 +1,36 @@
# $NetBSD: options.mk,v 1.6 2012/10/23 10:24:03 wiz Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.BasiliskII
PKG_SUPPORTED_OPTIONS= esound gtk sdl
PKG_OPTIONS_LEGACY_OPTS+= esd:esound
.include "../../mk/bsd.options.mk"
.if !empty(PKG_OPTIONS:Mesound)
CONFIGURE_ARGS+= --with-esd
.include "../../audio/esound/buildlink3.mk"
.else
CONFIGURE_ARGS+= --without-esd
.endif
.if !empty(PKG_OPTIONS:Mgtk)
CONFIGURE_ARGS+= --with-gtk
.include "../../x11/gtk/buildlink3.mk"
.else
CONFIGURE_ARGS+= --without-gtk
.endif
.if !empty(PKG_OPTIONS:Msdl)
CONFIGURE_ARGS+= --enable-sdl-audio
CONFIGURE_ARGS+= --enable-sdl-video
.include "../../devel/SDL/buildlink3.mk"
.else
BUILDLINK_DEPMETHOD.libXt?= build
.include "../../x11/libSM/buildlink3.mk"
.include "../../x11/libXext/buildlink3.mk"
.include "../../x11/libX11/buildlink3.mk"
.include "../../x11/libXt/buildlink3.mk"
.include "../../x11/libXxf86dga/buildlink3.mk"
.include "../../x11/libXxf86vm/buildlink3.mk"
.endif
+13
View File
@@ -0,0 +1,13 @@
$NetBSD: patch-aa,v 1.4 2005/11/23 12:17:56 adam Exp $
--- src/dummy/ether_dummy.cpp.orig 2005-05-14 10:10:09.000000000 +0200
+++ src/dummy/ether_dummy.cpp
@@ -174,7 +174,7 @@ void EtherInterrupt(void)
length = recvfrom(fd, Mac2HostAddr(packet), 1514, 0, (struct sockaddr *)&from, &from_len);
if (length < 14)
break;
- ether_udp_read(packet, length, &from);
+ ether_udp_read((uint32)packet, length, &from);
}
}
#endif
+13
View File
@@ -0,0 +1,13 @@
$NetBSD: patch-ab,v 1.5 2006/05/13 20:52:35 adam Exp $
--- src/Unix/video_x.cpp.orig 2006-01-03 23:03:27.000000000 +0100
+++ src/Unix/video_x.cpp
@@ -2326,7 +2326,7 @@ static void update_display_dynamic(int t
static void update_display_static(driver_window *drv)
{
// Incremental update code
- unsigned wide = 0, high = 0, x1, x2, y1, y2, i, j;
+ int wide = 0, high = 0, x1, x2, y1, y2, i, j;
const video_mode &mode = drv->monitor.get_current_mode();
int bytes_per_row = mode.bytes_per_row;
int bytes_per_pixel = mode.bytes_per_row / mode.x;
+12
View File
@@ -0,0 +1,12 @@
$NetBSD: patch-ac,v 1.4 2005/11/03 21:34:23 rillig Exp $
--- src/Unix/vm_alloc.cpp.orig 2005-01-30 21:42:14.000000000 +0000
+++ src/Unix/vm_alloc.cpp
@@ -39,6 +39,7 @@
#include "vm_alloc.h"
#ifdef HAVE_MACH_VM
+#include <mach/mach.h>
#ifndef HAVE_MACH_TASK_SELF
#ifdef HAVE_TASK_SELF
#define mach_task_self task_self
+80
View File
@@ -0,0 +1,80 @@
$NetBSD: patch-ad,v 1.4 2005/11/03 21:34:23 rillig Exp $
--- src/Unix/sshpty.c.orig 2003-08-17 10:20:22.000000000 +0000
+++ src/Unix/sshpty.c
@@ -18,6 +18,7 @@ RCSID("$OpenBSD: sshpty.c,v 1.4 2001/12/
/* Selections from openssh's "includes.h" */
#include "config.h"
+#include <signal.h>
#include <stdio.h>
#include <ctype.h>
#include <errno.h>
@@ -145,19 +146,30 @@ pty_allocate(int *ptyfd, int *ttyfd, cha
*/
int ptm;
char *pts;
+#ifdef __sunos__
mysig_t old_signal;
-
+#else
+ sig_t old_signal;
+#endif
ptm = open("/dev/ptmx", O_RDWR | O_NOCTTY);
if (ptm < 0) {
error("/dev/ptmx: %.100s", strerror(errno));
return 0;
}
+#ifdef __sunos__
old_signal = mysignal(SIGCHLD, SIG_DFL);
+#else
+ old_signal = signal(SIGCHLD, SIG_DFL);
+#endif
if (grantpt(ptm) < 0) {
error("grantpt: %.100s", strerror(errno));
return 0;
}
+#ifdef __sunos__
mysignal(SIGCHLD, old_signal);
+#else
+ signal(SIGCHLD, old_signal);
+#endif
if (unlockpt(ptm) < 0) {
error("unlockpt: %.100s", strerror(errno));
return 0;
@@ -175,7 +187,7 @@ pty_allocate(int *ptyfd, int *ttyfd, cha
close(*ptyfd);
return 0;
}
-#ifndef HAVE_CYGWIN
+#if !defined(__NetBSD__)
/*
* Push the appropriate streams modules, as described in Solaris pts(7).
* HP-UX pts(7) doesn't have ttcompat module.
@@ -184,7 +196,7 @@ pty_allocate(int *ptyfd, int *ttyfd, cha
error("ioctl I_PUSH ptem: %.100s", strerror(errno));
if (ioctl(*ttyfd, I_PUSH, "ldterm") < 0)
error("ioctl I_PUSH ldterm: %.100s", strerror(errno));
-#ifndef __hpux
+#if !defined(__NetBSD__)
if (ioctl(*ttyfd, I_PUSH, "ttcompat") < 0)
error("ioctl I_PUSH ttcompat: %.100s", strerror(errno));
#endif
@@ -277,7 +289,7 @@ pty_allocate(int *ptyfd, int *ttyfd, cha
}
/* set tty modes to a sane state for broken clients */
if (tcgetattr(*ptyfd, &tio) < 0)
- log("Getting tty modes for pty failed: %.100s", strerror(errno));
+ error("Getting tty modes for pty failed: %.100s", strerror(errno));
else {
tio.c_lflag |= (ECHO | ISIG | ICANON);
tio.c_oflag |= (OPOST | ONLCR);
@@ -285,7 +297,7 @@ pty_allocate(int *ptyfd, int *ttyfd, cha
/* Set the new modes for the terminal. */
if (tcsetattr(*ptyfd, TCSANOW, &tio) < 0)
- log("Setting tty modes for pty failed: %.100s", strerror(errno));
+ error("Setting tty modes for pty failed: %.100s", strerror(errno));
}
return 1;
+13
View File
@@ -0,0 +1,13 @@
$NetBSD: patch-ae,v 1.1 2005/11/17 16:56:39 joerg Exp $
--- src/Unix/timer_unix.cpp.orig 2005-11-17 14:22:31.000000000 +0000
+++ src/Unix/timer_unix.cpp
@@ -228,7 +228,7 @@ uint64 GetTicks_usec(void)
// Linux select() changes its timeout parameter upon return to contain
// the remaining time. Most other unixen leave it unchanged or undefined.
#define SELECT_SETS_REMAINING
-#elif defined(__FreeBSD__) || defined(__sun__) || (defined(__MACH__) && defined(__APPLE__))
+#elif defined(__FreeBSD__) || defined(__sun__) || (defined(__MACH__) && defined(__APPLE__)) || defined(__DragonFly__)
#define USE_NANOSLEEP
#elif defined(HAVE_PTHREADS) && defined(sgi)
// SGI pthreads has a bug when using pthreads+signals+nanosleep,
+169
View File
@@ -0,0 +1,169 @@
$NetBSD: patch-af,v 1.4 2012/05/14 07:35:02 dholland Exp $
- need limits.h, or since this is C++, <climits> for INT_MAX, fails on linux
- add dragonfly to the ifdef circus
--- src/Unix/sys_unix.cpp.orig 2005-11-24 17:23:43.000000000 +0000
+++ src/Unix/sys_unix.cpp
@@ -18,6 +18,8 @@
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
+#include <climits>
+
#include "sysdeps.h"
#include <sys/ioctl.h>
@@ -37,7 +39,7 @@
#include <dirent.h>
#endif
-#if defined(__FreeBSD__) || defined(__NetBSD__)
+#if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__DragonFly__)
#include <sys/cdio.h>
#endif
@@ -64,7 +66,7 @@ struct file_handle {
#if defined(__linux__)
int cdrom_cap; // CD-ROM capability flags (only valid if is_cdrom is true)
-#elif defined(__FreeBSD__)
+#elif defined(__FreeBSD__) || defined(__DragonFly__)
struct ioc_capability cdrom_cap;
#elif defined(__APPLE__) && defined(__MACH__)
char *ioctl_name; // For CDs on OS X - a device for special ioctls
@@ -220,7 +222,7 @@ void SysAddCDROMPrefs(void)
// Until I can convince the other guys that my Darwin code is useful,
// we just do nothing (it is safe to have no cdrom device)
#endif
-#elif defined(__FreeBSD__) || defined(__NetBSD__)
+#elif defined(__FreeBSD__) || defined(__NetBSD__) || defined(__DragonFly__)
PrefsAddString("cdrom", "/dev/cd0c");
#endif
}
@@ -240,7 +242,7 @@ void SysAddSerialPrefs(void)
PrefsAddString("seriala", "/dev/tts/0");
PrefsAddString("serialb", "/dev/tts/1");
}
-#elif defined(__FreeBSD__)
+#elif defined(__FreeBSD__) || defined(__DragonFly__)
PrefsAddString("seriala", "/dev/cuaa0");
PrefsAddString("serialb", "/dev/cuaa1");
#elif defined(__NetBSD__)
@@ -302,7 +304,7 @@ static bool is_drive_mounted(const char
void *Sys_open(const char *name, bool read_only)
{
bool is_file = strncmp(name, "/dev/", 5) != 0;
-#if defined(__FreeBSD__)
+#if defined(__FreeBSD__) || defined(__DragonFly__)
// SCSI IDE
bool is_cdrom = strncmp(name, "/dev/cd", 7) == 0 || strncmp(name, "/dev/acd", 8) == 0;
#else
@@ -351,7 +353,7 @@ void *Sys_open(const char *name, bool re
}
// Open file/device
-#if defined(__linux__) || defined(__FreeBSD__) || defined(__NetBSD__)
+#if defined(__linux__) || defined(__FreeBSD__) || defined(__NetBSD__) || defined(__DragonFly__)
int fd = open(name, (read_only ? O_RDONLY : O_RDWR) | (is_cdrom ? O_NONBLOCK : 0));
#else
int fd = open(name, read_only ? O_RDONLY : O_RDWR);
@@ -394,7 +396,7 @@ void *Sys_open(const char *name, bool re
#else
fh->cdrom_cap = 0;
#endif
-#elif defined(__FreeBSD__)
+#elif defined(__FreeBSD__) || defined(__DragonFly__)
fh->is_floppy = ((st.st_rdev >> 16) == 2);
#ifdef CDIOCCAPABILITY
if (is_cdrom) {
@@ -557,7 +559,7 @@ void SysEject(void *arg)
close(fh->fd); // Close and reopen so the driver will see the media change
fh->fd = open(fh->name, O_RDONLY | O_NONBLOCK);
}
-#elif defined(__FreeBSD__) || defined(__NetBSD__)
+#elif defined(__FreeBSD__) || defined(__NetBSD__) || defined(__DragonFly__)
if (fh->is_floppy) {
fsync(fh->fd);
} else if (fh->is_cdrom) {
@@ -697,7 +699,7 @@ bool SysIsDiskInserted(void *arg)
#endif
cdrom_tochdr header;
return ioctl(fh->fd, CDROMREADTOCHDR, &header) == 0;
-#elif defined(__FreeBSD__) || defined(__NetBSD__)
+#elif defined(__FreeBSD__) || defined(__NetBSD__) || defined(__DragonFly__)
} else if (fh->is_floppy) {
return false; //!!
} else if (fh->is_cdrom) {
@@ -805,7 +807,7 @@ bool SysCDReadTOC(void *arg, uint8 *toc)
extern bool DarwinCDReadTOC(char *name, uint8 *toc);
return DarwinCDReadTOC(fh->name, toc);
-#elif defined(__FreeBSD__)
+#elif defined(__FreeBSD__) || defined(__DragonFly__)
uint8 *p = toc + 2;
// Header
@@ -916,7 +918,7 @@ bool SysCDGetPosition(void *arg, uint8 *
*pos++ = chan.cdsc_reladdr.msf.second;
*pos++ = chan.cdsc_reladdr.msf.frame;
return true;
-#elif defined(__FreeBSD__) || defined(__NetBSD__)
+#elif defined(__FreeBSD__) || defined(__NetBSD__) || defined(__DragonFly__)
struct ioc_read_subchannel chan;
chan.data_format = CD_MSF_FORMAT;
chan.address_format = CD_MSF_FORMAT;
@@ -968,7 +970,7 @@ bool SysCDPlay(void *arg, uint8 start_m,
play.cdmsf_sec1 = end_s;
play.cdmsf_frame1 = end_f;
return ioctl(fh->fd, CDROMPLAYMSF, &play) == 0;
-#elif defined(__FreeBSD__) || defined(__NetBSD__)
+#elif defined(__FreeBSD__) || defined(__NetBSD__) || defined(__DragonFly__)
struct ioc_play_msf play;
play.start_m = start_m;
play.start_s = start_s;
@@ -998,7 +1000,7 @@ bool SysCDPause(void *arg)
if (fh->is_cdrom) {
#if defined(__linux__)
return ioctl(fh->fd, CDROMPAUSE) == 0;
-#elif defined(__FreeBSD__) || defined(__NetBSD__)
+#elif defined(__FreeBSD__) || defined(__NetBSD__) || defined(__DragonFly__)
return ioctl(fh->fd, CDIOCPAUSE) == 0;
#else
return false;
@@ -1021,7 +1023,7 @@ bool SysCDResume(void *arg)
if (fh->is_cdrom) {
#if defined(__linux__)
return ioctl(fh->fd, CDROMRESUME) == 0;
-#elif defined(__FreeBSD__) || defined(__NetBSD__)
+#elif defined(__FreeBSD__) || defined(__NetBSD__) || defined(__DragonFly__)
return ioctl(fh->fd, CDIOCRESUME) == 0;
#else
return false;
@@ -1044,7 +1046,7 @@ bool SysCDStop(void *arg, uint8 lead_out
if (fh->is_cdrom) {
#if defined(__linux__)
return ioctl(fh->fd, CDROMSTOP) == 0;
-#elif defined(__FreeBSD__) || defined(__NetBSD__)
+#elif defined(__FreeBSD__) || defined(__NetBSD__) || defined(__DragonFly__)
return ioctl(fh->fd, CDIOCSTOP) == 0;
#else
return false;
@@ -1085,7 +1087,7 @@ void SysCDSetVolume(void *arg, uint8 lef
vol.channel0 = vol.channel2 = left;
vol.channel1 = vol.channel3 = right;
ioctl(fh->fd, CDROMVOLCTRL, &vol);
-#elif defined(__FreeBSD__) || defined(__NetBSD__)
+#elif defined(__FreeBSD__) || defined(__NetBSD__) || defined(__DragonFly__)
struct ioc_vol vol;
vol.vol[0] = vol.vol[2] = left;
vol.vol[1] = vol.vol[3] = right;
@@ -1112,7 +1114,7 @@ void SysCDGetVolume(void *arg, uint8 &le
ioctl(fh->fd, CDROMVOLREAD, &vol);
left = vol.channel0;
right = vol.channel1;
-#elif defined(__FreeBSD__) || defined(__NetBSD__)
+#elif defined(__FreeBSD__) || defined(__NetBSD__) || defined(__DragonFly__)
struct ioc_vol vol;
ioctl(fh->fd, CDIOCGETVOL, &vol);
left = vol.vol[0];
+47
View File
@@ -0,0 +1,47 @@
$NetBSD: patch-ag,v 1.4 2007/06/12 12:51:08 joerg Exp $
--- src/Unix/sigsegv.cpp.orig 2006-03-30 22:45:49.000000000 +0000
+++ src/Unix/sigsegv.cpp
@@ -226,7 +226,7 @@ static void powerpc_decode_instruction(i
#if HAVE_SIGINFO_T
// Generic extended signal handler
-#if defined(__FreeBSD__)
+#if defined(__FreeBSD__) || defined(__DragonFly__)
#define SIGSEGV_ALL_SIGNALS FAULT_HANDLER(SIGBUS)
#else
#define SIGSEGV_ALL_SIGNALS FAULT_HANDLER(SIGSEGV)
@@ -264,7 +264,7 @@ static void powerpc_decode_instruction(i
#define SIGSEGV_SKIP_INSTRUCTION ix86_skip_instruction
#endif
#endif
-#if defined(__FreeBSD__) || defined(__OpenBSD__)
+#if defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__DragonFly__)
#if (defined(i386) || defined(__i386__))
#define SIGSEGV_FAULT_INSTRUCTION (((struct sigcontext *)scp)->sc_eip)
#define SIGSEGV_REGISTER_FILE ((unsigned long *)&(((struct sigcontext *)scp)->sc_edi)) /* EDI is the first GPR (even below EIP) in sigcontext */
@@ -451,7 +451,7 @@ static sigsegv_address_t get_fault_addre
#define SIGSEGV_ALL_SIGNALS FAULT_HANDLER(SIGSEGV)
#endif
#endif
-#if defined(__FreeBSD__)
+#if defined(__FreeBSD__) || defined(__DragonFly__)
#if (defined(i386) || defined(__i386__))
#define SIGSEGV_ALL_SIGNALS FAULT_HANDLER(SIGBUS)
#define SIGSEGV_FAULT_HANDLER_ARGLIST int sig, int code, struct sigcontext *scp, char *addr
@@ -721,10 +721,14 @@ enum {
#endif
};
#endif
-#if defined(__FreeBSD__)
+#if defined(__FreeBSD__) || defined(__DragonFly__)
enum {
#if (defined(i386) || defined(__i386__))
+# if (defined(__FreeBSD__) && __FreeBSD_version >= 500000)
X86_REG_EIP = 10,
+#else
+ X86_REG_EIP = 11,
+#endif
X86_REG_EAX = 7,
X86_REG_ECX = 6,
X86_REG_EDX = 5,
+13
View File
@@ -0,0 +1,13 @@
$NetBSD: patch-ah,v 1.2 2006/05/13 20:52:35 adam Exp $
--- src/Unix/serial_unix.cpp.orig 2005-12-04 16:03:11.000000000 +0100
+++ src/Unix/serial_unix.cpp
@@ -212,7 +212,7 @@ int16 XSERDPort::open(uint16 config)
if (fstat(fd, &st) == 0)
if (S_ISCHR(st.st_mode))
protocol = ((MAJOR(st.st_rdev) == LP_MAJOR) ? parallel : serial);
-#elif defined(__FreeBSD__) || defined(__NetBSD__)
+#elif defined(__FreeBSD__) || defined(__NetBSD__) || defined(__DragonFly__)
// Parallel port?
struct stat st;
if (fstat(fd, &st) == 0)
+22
View File
@@ -0,0 +1,22 @@
$NetBSD: patch-ai,v 1.3 2006/05/13 20:52:35 adam Exp $
--- src/Unix/prefs_editor_gtk.cpp.orig 2006-04-30 23:16:48.000000000 +0200
+++ src/Unix/prefs_editor_gtk.cpp
@@ -1283,7 +1283,7 @@ static GList *add_serial_names(void)
while ((de = readdir(d)) != NULL) {
#if defined(__linux__)
if (strncmp(de->d_name, "ttyS", 4) == 0 || strncmp(de->d_name, "lp", 2) == 0) {
-#elif defined(__FreeBSD__)
+#elif defined(__FreeBSD__) || defined(__DragonFly__)
if (strncmp(de->d_name, "cuaa", 4) == 0 || strncmp(de->d_name, "lpt", 3) == 0) {
#elif defined(__NetBSD__)
if (strncmp(de->d_name, "tty0", 4) == 0 || strncmp(de->d_name, "lpt", 3) == 0) {
@@ -1322,7 +1322,7 @@ static GList *add_ether_names(void)
struct ifreq req, *ifr = ifc.ifc_req;
for (int i=0; i<ifc.ifc_len; i+=sizeof(ifreq), ifr++) {
req = *ifr;
-#if defined(__FreeBSD__) || defined(__NetBSD__) || defined(sgi)
+#if defined(__FreeBSD__) || defined(__NetBSD__) || defined(sgi) || defined(__DragonFly__)
if (ioctl(s, SIOCGIFADDR, &req) == 0 && (req.ifr_addr.sa_family == ARPHRD_ETHER || req.ifr_addr.sa_family == ARPHRD_ETHER+1)) {
#elif defined(__linux__)
if (ioctl(s, SIOCGIFHWADDR, &req) == 0 && req.ifr_hwaddr.sa_family == ARPHRD_ETHER) {
+13
View File
@@ -0,0 +1,13 @@
$NetBSD: patch-aj,v 1.3 2006/05/13 20:52:35 adam Exp $
--- src/Unix/ether_unix.cpp.orig 2006-04-02 23:06:50.000000000 +0200
+++ src/Unix/ether_unix.cpp
@@ -49,7 +49,7 @@
#include <stdio.h>
#include <map>
-#if defined(__FreeBSD__) || defined(sgi) || (defined(__APPLE__) && defined(__MACH__))
+#if defined(__FreeBSD__) || defined(__DragonFly__) || defined(sgi) || (defined(__APPLE__) && defined(__MACH__))
#include <net/if.h>
#endif
+13
View File
@@ -0,0 +1,13 @@
$NetBSD: patch-ak,v 1.2 2005/12/15 02:56:58 dogcow Exp $
--- src/Unix/audio_oss_esd.cpp.orig 2005-11-17 14:30:41.000000000 +0000
+++ src/Unix/audio_oss_esd.cpp
@@ -30,7 +30,7 @@
#include <linux/soundcard.h>
#endif
-#ifdef __FreeBSD__
+#if defined(__FreeBSD__) || defined(__DragonFly__)
#include <sys/soundcard.h>
#endif
@@ -0,0 +1,22 @@
$NetBSD: patch-src-slirp-misc.c,v 1.1 2011/08/20 15:30:36 joerg Exp $
--- src/slirp/misc.c.orig 2011-08-20 13:13:50.000000000 +0000
+++ src/slirp/misc.c
@@ -106,7 +106,7 @@ struct quehead_32 {
u_int32_t qh_rlink;
};
-inline void
+void
insque_32(a, b)
void *a;
void *b;
@@ -120,7 +120,7 @@ insque_32(a, b)
= (u_int32_t)element;
}
-inline void
+void
remque_32(a)
void *a;
{
@@ -0,0 +1,15 @@
$NetBSD: patch-src-slirp-slirp.h,v 1.1 2011/08/20 15:30:36 joerg Exp $
--- src/slirp/slirp.h.orig 2011-08-20 13:13:12.000000000 +0000
+++ src/slirp/slirp.h
@@ -288,8 +288,8 @@ extern int do_echo;
# define insque_32 insque
# define remque_32 remque
#else
- inline void insque_32 _P((void *, void *));
- inline void remque_32 _P((void *));
+ void insque_32 _P((void *, void *));
+ void remque_32 _P((void *));
#endif
#ifndef _WIN32
+11
View File
@@ -0,0 +1,11 @@
Originally Cygne was developed by Dox as a Bandai Wonderswan (Colour)
emulator for Windows systems. From version 2.1 Dox decided to
release the Windows sources to the public in GPL form which allows
others to use the source and hack it :)
Cygne/SDL is a Cygne port using the Simple Directmedia Layer (SDL)
library. Cygne/SDL is released as OpenSource under the GPL license.
It uses code from the orignal Cygne (allthough a bit modified),
code from the MAME NEC CPU core as well as portions from several
SDLemu emulation projects. Anybody may hack the current sourcecode
if they like or can make additional changes into it.
+40
View File
@@ -0,0 +1,40 @@
# $NetBSD: Makefile,v 1.19 2013/04/13 19:08:27 dholland Exp $
#
DISTNAME= Cygne-SDL-0.1-src
PKGNAME= ${DISTNAME:S/-src//}
PKGREVISION= 6
CATEGORIES= emulators
MASTER_SITES= http://sdlemu.ngemu.com/OpenProjects/
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://icculus.org/Cygne-SDL/
COMMENT= Bandai Wonderswan Color handheld emulator
# The makefile mentions nasm but does not actually use it.
#BUILD_DEPENDS+= nasm>=0.98:../../devel/nasm
WRKSRC= ${WRKDIR}/Cygne-SDL-0.1
MAKE_FILE= Makefiles/Makefile.unix
NO_CONFIGURE= yes
BUILD_DIRS= src
USE_LANGUAGES= c c++
USE_TOOLS+= zip
INSTALLATION_DIRS= bin share/Cygne-SDL share/doc/Cygne-SDL
post-build:
cd ${WRKSRC}/WonderSnake && \
${TOOLS_PATH.zip} Wondersnake.zip Wondersnake.wsc
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/src/cygne ${DESTDIR}${PREFIX}/bin/Cygne-SDL
${INSTALL_DATA} ${WRKSRC}/README ${DESTDIR}${PREFIX}/share/doc/Cygne-SDL
${INSTALL_DATA} ${WRKSRC}/WonderSnake/Wondersnake.txt \
${DESTDIR}${PREFIX}/share/Cygne-SDL
${INSTALL_DATA} ${WRKSRC}/WonderSnake/Wondersnake.zip \
${DESTDIR}${PREFIX}/share/Cygne-SDL
.include "../../devel/SDL/buildlink3.mk"
.include "../../devel/zlib/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
+5
View File
@@ -0,0 +1,5 @@
@comment $NetBSD: PLIST,v 1.3 2009/06/14 17:51:00 joerg Exp $
bin/Cygne-SDL
share/Cygne-SDL/Wondersnake.txt
share/Cygne-SDL/Wondersnake.zip
share/doc/Cygne-SDL/README
+10
View File
@@ -0,0 +1,10 @@
$NetBSD: distinfo,v 1.5 2013/04/13 19:08:27 dholland Exp $
SHA1 (Cygne-SDL-0.1-src.tar.gz) = f9c50702d1911d0ff1728e5aa089e67cfdfd0030
RMD160 (Cygne-SDL-0.1-src.tar.gz) = 6d9fd7195a936f17fc3984a66722272c7e30991a
Size (Cygne-SDL-0.1-src.tar.gz) = 106448 bytes
SHA1 (patch-aa) = 65f8a9b50150dbbb65f20999e457ef31ff196c9b
SHA1 (patch-ab) = 775f303626193bec32d2964ad7c63e528bc831b3
SHA1 (patch-ac) = 5d73fc40a43a83aff312a86e077f28b1d52955c9
SHA1 (patch-ad) = 0869496464d90d3b6db932d0279e4ac1328a3332
SHA1 (patch-src_mainsdl.cpp) = 53cceb4a6b2b9c36b64414e8be621b0baa9470d1
+67
View File
@@ -0,0 +1,67 @@
$NetBSD: patch-aa,v 1.4 2013/04/13 19:06:13 dholland Exp $
- configure for pkgsrc
- avoid unnecessary gmake syntax
--- src/Makefiles/Makefile.unix.orig 2002-03-26 16:50:55.000000000 +0000
+++ src/Makefiles/Makefile.unix
@@ -1,24 +1,15 @@
-CC = gcc
-LD = gcc
+#LD = g++
NASM = nasm
### Include and lib stuff ####
-STDINCLUDE = /usr/include
-STDLIB = /usr/lib
-SDLINCLUDE = /usr/local/include/SDL
-SDLLIB = /usr/local/lib
-
-CFLAGS = -O1 -DUNIX -DTARGET_UNIX -DGCC -DUSES_16BIT_ONLY -D__SDL__ -fomit-frame-pointer -march=pentium \
- -mpentium -finline-functions -fexpensive-optimizations -funroll-loops -funroll-all-loops -pipe \
- -fschedule-insns2 -fstrength-reduce -malign-double -mfancy-math-387 -ffast-math -fforce-addr \
- -fforce-mem `sdl-config --cflags` \
- -L$(STDLIB) -L$(SDLLIB) -I$(STDINCLUDE) -I$(SDLINCLUDE)
-LDFLAGS = $(CFLAGS)
+CFLAGS += -DUNIX -DTARGET_UNIX -DGCC -DUSES_16BIT_ONLY -D__SDL__
+
+LDFLAGS += `sdl-config --libs`
TARGET = cygne
-OBJ = ddrawsdl.o filessdl.o gfx.o nec.o tcache.o memory.o mainsdl.o zlib/unzip.o
+OBJ = ddrawsdl.o filessdl.o gfx.o nec.o tcache.o memory.o mainsdl.o unzip.o
LIBS = `sdl-config --libs` -lz
@@ -28,17 +19,22 @@ INCS = -I. `sdl-config --cflags`
THECC = $(CC) $(CFLAGS) $(INCS)
-%.o: %.asm
+.SUFFIXES: .asm
+
+.asm.o:
$(NASM) -f elf -o $@ $<
-%.o: %.c
- $(THECC) -c $< -o $@
+.c.o:
+ $(CC) $(CFLAGS) $(INCS) -c $< -o $@
+
+.cpp.o:
+ $(CXX) $(CFLAGS) $(INCS) -c $< -o $@
-%.o: %.cpp
- $(THECC) -c $< -o $@
+unzip.o:
+ $(CC) $(CFLAGS) $(INCS) -c zlib/unzip.c -o $@
-cygne: $(OBJ) Makefile
- $(LD) $(LDFLAGS) -o $@ $(OBJ) $(LIBS)
+cygne: $(OBJ)
+ $(CXX) $(LDFLAGS) -o $@ $(OBJ) $(LIBS)
clean:
rm -f cygne *.o zlib/*.o
+29
View File
@@ -0,0 +1,29 @@
$NetBSD: patch-ab,v 1.3 2013/04/13 19:07:21 dholland Exp $
- Fix C syntax (string constants continued onto the next line must
have a backslash)
--- src/Usage.h.orig 2002-03-26 16:55:20.000000000 +0100
+++ src/Usage.h
@@ -1,13 +1,13 @@
void Usage()
{
printf(
-"Usage: ./cygne romfile options
- Where options are:
-
- romfile : Filename of the romfile. It can have several
- extensions (.ws/.wsc/.rom/.bin). Gzipped and
- zipped (.gz and .zip) are also supported.
- -double : Scale the screen 2 times the normal size.
- -scanline : Allows scanline output with scaling.
+"Usage: ./cygne romfile options\n\
+ Where options are:\n\
+\n\
+ romfile : Filename of the romfile. It can have several\n\
+ extensions (.ws/.wsc/.rom/.bin). Gzipped and\n\
+ zipped (.gz and .zip) are also supported.\n\
+ -double : Scale the screen 2 times the normal size.\n\
+ -scanline : Allows scanline output with scaling.\n\
");
}
+284
View File
@@ -0,0 +1,284 @@
$NetBSD: patch-ac,v 1.3 2013/04/13 19:08:27 dholland Exp $
- Fix C syntax (string constants continued onto the next line must
have a backslash)
- Use the asm blocks only on platforms where they're understood.
Disable the more elaborate blitter modes on other platforms
until/unless someone wants to write non-asm equivalents.
--- src/ddrawsdl.cpp.orig 2002-03-26 15:02:25.000000000 +0000
+++ src/ddrawsdl.cpp
@@ -12,6 +12,7 @@
*/
#include <SDL.h>
+#include <assert.h>
#include "globals.h"
#include "gfx.h"
@@ -174,69 +175,83 @@ void UpdateFrame_h()
{
switch(fBlitterMode) {
case 1:
- __asm__ __volatile__(".align 32
- cld
- rep
+#if defined(__i386__) || defined(__x86_64__)
+ __asm__ __volatile__(".align 32\n\
+ cld\n\
+ rep\n\
movsw"
:
:"S"(dx_buffer), "D"(g_pDDSPrimary->pixels), "c"((g_pDDSPrimary->h * g_pDDSPrimary->pitch)>>1));
+#else
+ memcpy(g_pDDSPrimary->pixels, dx_buffer, g_pDDSPrimary->h * g_pDDSPrimary->pitch);
+#endif
break;
case 2:
- __asm__ __volatile__("pusha
- xorl %%eax, %%eax
- movl $448, %%ebx
- emms
- sum:
- movq (%0, %%eax, 1), %%mm0
- movq %%mm0, %%mm1
- punpcklwd %%mm0, %%mm0
- addl $8, %%eax
- punpckhwd %%mm1,%%mm1
- movq %%mm0, -16(%1, %%eax, 2)
- cmpl %%ebx, %%eax
-
- movq %%mm1, -8(%1, %%eax, 2)
- jnz sum
- xorl %%eax, %%eax
-
- addl %2, %0
- decl %%edx
-
- leal (%1, %2, 4), %1
- jnz sum
- emms
+#if defined(__i386__)
+ __asm__ __volatile__("pusha\n\
+ xorl %%eax, %%eax\n\
+ movl $448, %%ebx \n\
+ emms\n\
+ sum:\n\
+ movq (%0, %%eax, 1), %%mm0\n\
+ movq %%mm0, %%mm1\n\
+ punpcklwd %%mm0, %%mm0\n\
+ addl $8, %%eax\n\
+ punpckhwd %%mm1,%%mm1\n\
+ movq %%mm0, -16(%1, %%eax, 2)\n\
+ cmpl %%ebx, %%eax\n\
+ \n\
+ movq %%mm1, -8(%1, %%eax, 2)\n\
+ jnz sum\n\
+ xorl %%eax, %%eax\n\
+ \n\
+ addl %2, %0\n\
+ decl %%edx\n\
+ \n\
+ leal (%1, %2, 4), %1\n\
+ jnz sum\n\
+ emms\n\
popa"
:
: "S"(dx_buffer), "D"(g_pDDSPrimary->pixels), "c"(g_pDDSPrimary->pitch>>1), "d"(144));
+#else
+ /* If you put real code here, enable the corresponding option in main() */
+ assert(0);
+#endif
break;
case 3:
- __asm__ __volatile__("pusha
- xorl %%eax, %%eax
- movl $896, %%ebx
- emms
- sum3:
- movq (%0, %%eax, 1), %%mm0
- movq %%mm0, %%mm1
- punpcklwd %%mm0, %%mm0
- addl $8, %%eax
- punpckhwd %%mm1,%%mm1
- movq %%mm0, -16(%1, %%eax, 2)
- cmpl %%ebx, %%eax
-
- movq %%mm1, -8(%1, %%eax, 2)
- jnz sum3
- xorl %%eax, %%eax
-
- addl %2, %0
- decl %%edx
-
- leal (%1, %2, 4), %1
- jnz sum3
- emms
+#if defined(__i386__)
+ __asm__ __volatile__("pusha\n\
+ xorl %%eax, %%eax\n\
+ movl $896, %%ebx \n\
+ emms\n\
+ sum3:\n\
+ movq (%0, %%eax, 1), %%mm0\n\
+ movq %%mm0, %%mm1\n\
+ punpcklwd %%mm0, %%mm0\n\
+ addl $8, %%eax\n\
+ punpckhwd %%mm1,%%mm1\n\
+ movq %%mm0, -16(%1, %%eax, 2)\n\
+ cmpl %%ebx, %%eax\n\
+ \n\
+ movq %%mm1, -8(%1, %%eax, 2)\n\
+ jnz sum3\n\
+ xorl %%eax, %%eax\n\
+ \n\
+ addl %2, %0\n\
+ decl %%edx\n\
+ \n\
+ leal (%1, %2, 4), %1\n\
+ jnz sum3\n\
+ emms\n\
popa"
:
: "S"(dx_buffer), "D"(g_pDDSPrimary->pixels), "c"(g_pDDSPrimary->pitch>>1), "d"(144));
+#else
+ /* If you put real code here, enable the corresponding option in main() */
+ assert(0);
+#endif
break;
}
//Niels(adjust to suit) use the asm below, or use standard memcpy/fast_memcpy etc, updateframe_v is not implemented
@@ -418,68 +433,82 @@ void UpdateFrame_v()
{
switch(fBlitterMode) {
case 1:
- __asm__ __volatile__(".align 32
- cld
- rep
+#if defined(__i386__) || defined(__x86_64__)
+ __asm__ __volatile__(".align 32\n\
+ cld\n\
+ rep\n\
movsw"
:
:"S"(dx_buffer), "D"(g_pDDSPrimary->pixels), "c"((g_pDDSPrimary->h * g_pDDSPrimary->pitch)>>1));
+#else
+ memcpy(g_pDDSPrimary->pixels, dx_buffer, g_pDDSPrimary->h * g_pDDSPrimary->pitch);
+#endif
break;
case 2: // double scanlines
- __asm__ __volatile__("pusha
- xorl %%eax, %%eax
- movl $288, %%ebx
- emms
- sumb:
- movq (%0, %%eax, 1), %%mm0
- movq %%mm0, %%mm1
- punpcklwd %%mm0, %%mm0
- addl $8, %%eax
- punpckhwd %%mm1,%%mm1
- movq %%mm0, -16(%1, %%eax, 2)
- cmpl %%ebx, %%eax
-
- movq %%mm1, -8(%1, %%eax, 2)
- jnz sumb
- xorl %%eax, %%eax
-
- addl %2, %0
- decl %%edx
-
- leal (%1, %2, 4), %1
- jnz sumb
- emms
+#if defined(__i386__)
+ __asm__ __volatile__("pusha\n\
+ xorl %%eax, %%eax\n\
+ movl $288, %%ebx \n\
+ emms\n\
+ sumb:\n\
+ movq (%0, %%eax, 1), %%mm0\n\
+ movq %%mm0, %%mm1\n\
+ punpcklwd %%mm0, %%mm0\n\
+ addl $8, %%eax\n\
+ punpckhwd %%mm1,%%mm1\n\
+ movq %%mm0, -16(%1, %%eax, 2)\n\
+ cmpl %%ebx, %%eax\n\
+ \n\
+ movq %%mm1, -8(%1, %%eax, 2)\n\
+ jnz sumb\n\
+ xorl %%eax, %%eax\n\
+ \n\
+ addl %2, %0\n\
+ decl %%edx\n\
+ \n\
+ leal (%1, %2, 4), %1\n\
+ jnz sumb\n\
+ emms\n\
popa"
:
: "S"(dx_buffer), "D"(g_pDDSPrimary->pixels), "c"(g_pDDSPrimary->pitch>>1), "d"(224));
+#else
+ /* If you put real code here, enable the corresponding option in main() */
+ assert(0);
+#endif
break;
case 3: // double stretch mode
- __asm__ __volatile__("pusha
- xorl %%eax, %%eax
- movl $576, %%ebx
- emms
- sumc:
- movq (%0, %%eax, 1), %%mm0
- movq %%mm0, %%mm1
- punpcklwd %%mm0, %%mm0
- addl $8, %%eax
- punpckhwd %%mm1,%%mm1
- movq %%mm0, -16(%1, %%eax, 2)
- cmpl %%ebx, %%eax
-
- movq %%mm1, -8(%1, %%eax, 2)
- jnz sumc
- xorl %%eax, %%eax
-
- addl %2, %0
- decl %%edx
-
- leal (%1, %2, 4), %1
- jnz sumc
- emms
+#if defined(__i386__)
+ __asm__ __volatile__("pusha\n\
+ xorl %%eax, %%eax\n\
+ movl $576, %%ebx \n\
+ emms\n\
+ sumc:\n\
+ movq (%0, %%eax, 1), %%mm0\n\
+ movq %%mm0, %%mm1\n\
+ punpcklwd %%mm0, %%mm0\n\
+ addl $8, %%eax\n\
+ punpckhwd %%mm1,%%mm1\n\
+ movq %%mm0, -16(%1, %%eax, 2)\n\
+ cmpl %%ebx, %%eax\n\
+ \n\
+ movq %%mm1, -8(%1, %%eax, 2)\n\
+ jnz sumc\n\
+ xorl %%eax, %%eax\n\
+ \n\
+ addl %2, %0\n\
+ decl %%edx\n\
+ \n\
+ leal (%1, %2, 4), %1\n\
+ jnz sumc\n\
+ emms\n\
popa"
:
: "S"(dx_buffer), "D"(g_pDDSPrimary->pixels), "c"(g_pDDSPrimary->pitch>>1), "d"(224));
+#else
+ /* If you put real code here, enable the corresponding option in main() */
+ assert(0);
+#endif
break;
}
SDL_Flip(g_pDDSPrimary);
+17
View File
@@ -0,0 +1,17 @@
$NetBSD: patch-ad,v 1.3 2013/04/13 19:07:21 dholland Exp $
- Fix build.
--- src/zlib/unzip.h.orig 2002-03-21 19:42:46.000000000 +0100
+++ src/zlib/unzip.h
@@ -49,6 +49,10 @@ extern "C" {
#include "zlib.h"
#endif
+#ifndef OF
+#define OF(a) a
+#endif
+
#if defined(STRICTUNZIP) || defined(STRICTZIPUNZIP)
/* like the STRICT of WIN32, we define a pointer that cannot be converted
from (void*) without cast */
@@ -0,0 +1,31 @@
$NetBSD: patch-src_mainsdl.cpp,v 1.1 2013/04/13 19:08:27 dholland Exp $
Disable blitter modes 2 and 3 on non-i386 unless/until someone provides
non-asm code for them (see ddrawsdl.cpp / patch-ac)
--- src/mainsdl.cpp~ 2002-03-26 16:12:36.000000000 +0000
+++ src/mainsdl.cpp
@@ -322,13 +322,23 @@ int main(int argc, char *argv[])
for (i=0; (i < argc || argv[i] != NULL); i++) {
if(strcmp(argv[i], "-double") == 0) {
+#if defined(__i386__)
fScreenSize = 2;
fBlitterMode = 3;
+#else
+ fprintf(stderr, "-double is not supported on this platform\n");
+ exit(1);
+#endif
}
if(strcmp(argv[i], "-scanline") == 0) {
+#if defined(__i386__)
fScreenSize = 2;
fBlitterMode = 2;
+#else
+ fprintf(stderr, "-scanline is not supported on this platform\n");
+ exit(1);
+#endif
}
if (strncmp(argv[i], "-h", 2) == 0) {
+4
View File
@@ -0,0 +1,4 @@
DatLib is a library for emulation data file formats. It supports
a variety of data file formats and handles the standard loading,
cleansing, converting and saving operations that are required by
tools such as DatUtil, MAMEDiff, ROMBuild, ROMInfo and ZipIdent.
+37
View File
@@ -0,0 +1,37 @@
# $NetBSD: Makefile,v 1.24 2012/10/03 12:55:08 asau Exp $
#
DISTNAME= datlib221
PKGNAME= DatLib-2.21
CATEGORIES= emulators
MASTER_SITES= http://www.logiqx.com/Tools/DatLib/
EXTRACT_SUFX= .zip
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://www.logiqx.com/Tools/DatLib/DatLib.php
COMMENT= Data file library for some emulation tools
USE_TOOLS+= gmake
WRKSRC= ${WRKDIR}
MAKE_FILE= makefile
BUILD_TARGET= datlib
EXTRACT_OPTS_ZIP= -aaqo
MAKE_ENV+= RANLIB=${RANLIB:Q}
INSTALLATION_DIRS= lib
do-install:
${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/include/DatLib
${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/include/DatLib/hash
${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/include/DatLib/mame
${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/include/DatLib/misc
${INSTALL_DATA} ${WRKSRC}/src/*.h ${DESTDIR}${PREFIX}/include/DatLib
${INSTALL_DATA} ${WRKSRC}/src/hash/*.h ${DESTDIR}${PREFIX}/include/DatLib/hash
${INSTALL_DATA} ${WRKSRC}/src/mame/*.h ${DESTDIR}${PREFIX}/include/DatLib/mame
${INSTALL_DATA} ${WRKSRC}/src/misc/*.h ${DESTDIR}${PREFIX}/include/DatLib/misc
${INSTALL_LIB} ${WRKSRC}/obj/libdatlib.a ${DESTDIR}${PREFIX}/lib/libdatlib.a
${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/doc/DatLib
${INSTALL_DATA} ${WRKSRC}/*.txt ${DESTDIR}${PREFIX}/share/doc/DatLib
.include "../../devel/zlib/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
+15
View File
@@ -0,0 +1,15 @@
@comment $NetBSD: PLIST,v 1.3 2009/06/14 17:51:00 joerg Exp $
include/DatLib/datlib.h
include/DatLib/driver.h
include/DatLib/hash/md5.h
include/DatLib/hash/sha1.h
include/DatLib/macro.h
include/DatLib/mame/mame.h
include/DatLib/mame/osd_cpu.h
include/DatLib/mame/unzip.h
include/DatLib/misc/getopt.h
include/DatLib/token.h
include/DatLib/type.h
lib/libdatlib.a
share/doc/DatLib/readme.txt
share/doc/DatLib/whatsnew.txt
+12
View File
@@ -0,0 +1,12 @@
# $NetBSD: buildlink3.mk,v 1.9 2009/03/20 19:24:32 joerg Exp $
BUILDLINK_TREE+= DatLib
.if !defined(DATLIB_BUILDLINK3_MK)
DATLIB_BUILDLINK3_MK:=
BUILDLINK_API_DEPENDS.DatLib+= DatLib>=2.20
BUILDLINK_PKGSRCDIR.DatLib?= ../../emulators/DatLib
.endif # DATLIB_BUILDLINK3_MK
BUILDLINK_TREE+= -DatLib
+8
View File
@@ -0,0 +1,8 @@
$NetBSD: distinfo,v 1.13 2007/07/30 18:55:23 wiz Exp $
SHA1 (datlib221.zip) = a5076fb30d8c871473025ee2b1c913c379e2538b
RMD160 (datlib221.zip) = 61c239645d193a674002c9555de81ba525a8de58
Size (datlib221.zip) = 95554 bytes
SHA1 (patch-aa) = 58052a8c72989212d83081691f685574af6b40d4
SHA1 (patch-ab) = e01959114bafc63ae29fcde587b507f67e1c69b2
SHA1 (patch-ac) = 55d7c856fc86aa40e625bcbde401b2c66b1d5b0c
+48
View File
@@ -0,0 +1,48 @@
$NetBSD: patch-aa,v 1.3 2007/02/26 00:00:32 wiz Exp $
--- makefile.orig 2007-01-01 18:13:12.000000000 +0000
+++ makefile
@@ -5,20 +5,20 @@
MD=mkdir
CC=@gcc
-CFLAGS+=-Wall -O3 -I $(LOGIQX)/dev
+CFLAGS+=-Wall -O3 -I .
LD=@gcc
LIBS+=-lz -lm
UPX=@upx -9
-DLSRC=$(LOGIQX)/dev/datlib/src
+DLSRC=./src
DLINCS= $(DLSRC)/macro.h \
$(DLSRC)/type.h \
$(DLSRC)/token.h \
-DLOBJ=$(LOGIQX)/dev/datlib/obj
+DLOBJ=./obj
DLOBJDIRS=$(DLOBJ) \
$(DLOBJ)/drv \
@@ -42,7 +42,7 @@ DLOBJS= $(DLOBJ)/datlib.o \
# Build the obj tree then build the EXE
#
-datlib: dlmaketree $(DLOBJS)
+datlib: dlmaketree $(DLOBJS) $(DLOBJ)/libdatlib.a
#
# Creating obj directory tree
@@ -53,6 +53,10 @@ dlmaketree: $(sort $(DLOBJDIRS))
$(sort $(DLOBJDIRS)):
$(MD) $@
+$(DLOBJ)/libdatlib.a: $(DLOBJS)
+ @echo Creating $@...
+ $(AR) r $@ $(DLOBJS)
+ $(RANLIB) $@
#
# Compiling of separate modules
#
+14
View File
@@ -0,0 +1,14 @@
$NetBSD: patch-ab,v 1.1 2005/11/08 16:56:46 tv Exp $
--- src/token.h.orig 2005-03-08 22:22:26.000000000 -0500
+++ src/token.h
@@ -7,7 +7,9 @@
/* --- Standard includes --- */
#include <string.h>
+#ifndef __INTERIX
#include <stdint.h>
+#endif
/* --- Token structure (the description field is used by the directory scan and for debugging output) --- */
+14
View File
@@ -0,0 +1,14 @@
$NetBSD: patch-ac,v 1.1 2005/11/08 16:56:46 tv Exp $
--- src/type.h.orig 2005-02-21 21:57:16.000000000 -0500
+++ src/type.h
@@ -8,7 +8,9 @@
#include <stdio.h>
#include <stdlib.h>
+#ifndef __INTERIX
#include <stdint.h>
+#endif
/* --- DatLib Includes --- */
+5
View File
@@ -0,0 +1,5 @@
DatUtil was created to aid in the creation of dat files for Rom
Managers such as ClrMamePro and RomCenter (Roman Scherzer / Eric
Bole-Feysot). It can convert between formats, extract individual
games (and optionally their clones) and cleanse dats. It supports
a variety of formats.
+33
View File
@@ -0,0 +1,33 @@
# $NetBSD: Makefile,v 1.26 2012/10/03 12:55:08 asau Exp $
#
DISTNAME= dutil232
PKGNAME= DatUtil-2.32
CATEGORIES= emulators
MASTER_SITES= http://www.logiqx.com/Tools/DatUtil/
EXTRACT_SUFX= .zip
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://www.logiqx.com/Tools/DatUtil/DatUtil.php
COMMENT= Create and convert emulator rom checksum files
USE_TOOLS+= gmake
WRKSRC= ${WRKDIR}
MAKE_FILE= makefile
BUILD_TARGET= datutil
EXTRACT_OPTS_ZIP= -aaqo
INSTALLATION_DIRS= bin
post-extract:
${MKDIR} ${WRKSRC}/obj
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/datutil ${DESTDIR}${PREFIX}/bin
${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/doc/DatUtil
${INSTALL_DATA} ${WRKSRC}/*.txt ${DESTDIR}${PREFIX}/share/doc/DatUtil
.include "../../devel/zlib/buildlink3.mk"
BUILDLINK_API_DEPENDS.DatLib+= DatLib>=2.21
.include "../../emulators/DatLib/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
+4
View File
@@ -0,0 +1,4 @@
@comment $NetBSD: PLIST,v 1.3 2009/06/14 17:51:00 joerg Exp $
bin/datutil
share/doc/DatUtil/readme.txt
share/doc/DatUtil/whatsnew.txt
+7
View File
@@ -0,0 +1,7 @@
$NetBSD: distinfo,v 1.14 2011/11/29 06:14:03 sbd Exp $
SHA1 (dutil232.zip) = 2dc7e8b18b52635ce1ca0e5a03a9c0506f283747
RMD160 (dutil232.zip) = fa5b8a6cb826de0e236fe8c4a13a1fd4fa7156a9
Size (dutil232.zip) = 182386 bytes
SHA1 (patch-aa) = 1bdee3a21449038db09c381a1302585241c59acd
SHA1 (patch-ab) = 2926b8e6dda83ca30e20de6f27933a318a2db404
+36
View File
@@ -0,0 +1,36 @@
$NetBSD: patch-aa,v 1.3 2011/11/29 06:14:03 sbd Exp $
--- makefile.orig 2005-02-24 09:39:16.000000000 +0000
+++ makefile
@@ -3,7 +3,7 @@
#
NAME=datutil
-EXT=.exe
+EXT=
EXE=$(NAME)$(EXT)
SRC=src
@@ -18,9 +18,10 @@ OBJS= $(DLOBJS) \
# Build the obj tree then build the EXE
#
-all: dlmaketree maketree $(EXE)
+all: maketree $(EXE)
-include $(LOGIQX)/dev/datlib/makefile
+DLSRC= $(PREFIX)/include/DatLib
+CFLAGS+= -I src -I $(PREFIX)/include
#
# Creating obj directory tree
@@ -45,8 +46,7 @@ $(OBJ)/%.o: $(SRC)/%.c $(SRC)/%.h $(DLSR
$(EXE): $(OBJS)
@echo Linking $@...
- $(LD) $(OBJS) $(LIBS) -o $@
- $(UPX) $@
+ $(CC) $(LDFLAGS) $(OBJS) $(LIBS) -o $@ -ldatlib -lm -lz
#
# Complete removal of built objects
+21
View File
@@ -0,0 +1,21 @@
$NetBSD: patch-ab,v 1.2 2005/03/14 16:20:58 wiz Exp $
--- src/datutil.c.orig 2005-02-22 21:04:44.000000000 +0100
+++ src/datutil.c
@@ -21,13 +21,13 @@
/* --- Dat library includes --- */
-#include "datlib/src/datlib.h"
-#include "datlib/src/macro.h"
+#include <DatLib/datlib.h>
+#include <DatLib/macro.h>
/* --- Misc library includes --- */
-#include "datlib/src/misc/getopt.h"
+#include <DatLib/misc/getopt.h>
/* --- DatUtil definitions and macros --- */
+9
View File
@@ -0,0 +1,9 @@
MAMEDiff makes it easy to identify ROM related changes in a new
release of MAME (it can even find game additions that aren't
mentioned in whatsnew.txt). It can spot game renames and will not
regard them as one game deleted and another added. When ROMs or
games are renamed (or if there is a change in the way that sets
are merged), MAMEDiff will just tell you how to rebuild the affected
sets (i.e. no downloading required). A must-have for any MAME
fanatic! It also works for new releases of MESS, RAINE, Final Burn
Alpha, Kawaks, etc.
+32
View File
@@ -0,0 +1,32 @@
# $NetBSD: Makefile,v 1.21 2012/10/03 12:55:09 asau Exp $
#
DISTNAME= mdiff226
PKGNAME= MAMEDiff-2.26
CATEGORIES= emulators
MASTER_SITES= http://www.logiqx.com/Tools/MAMEDiff/
EXTRACT_SUFX= .zip
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://www.logiqx.com/Tools/MAMEDiff/MAMEDiff.php
COMMENT= Compare MAME rom sets of different releases
USE_TOOLS+= gmake
WRKSRC= ${WRKDIR}
MAKE_FILE= makefile
BUILD_TARGET= mamediff
EXTRACT_OPTS_ZIP= -aaqo
INSTALLATION_DIRS= bin
post-extract:
${MKDIR} ${WRKSRC}/obj
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/mamediff ${DESTDIR}${PREFIX}/bin
${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/doc/MAMEDiff
${INSTALL_DATA} ${WRKSRC}/readme.txt \
${DESTDIR}${PREFIX}/share/doc/MAMEDiff
.include "../../devel/zlib/buildlink3.mk"
.include "../../emulators/DatLib/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
+3
View File
@@ -0,0 +1,3 @@
@comment $NetBSD: PLIST,v 1.3 2009/06/14 17:51:00 joerg Exp $
bin/mamediff
share/doc/MAMEDiff/readme.txt
+9
View File
@@ -0,0 +1,9 @@
$NetBSD: distinfo,v 1.9 2011/11/29 06:14:26 sbd Exp $
SHA1 (mdiff226.zip) = 498819c346210e8ff80b80ca0d777e115253540d
RMD160 (mdiff226.zip) = bc8b90c4ed7c3a56db753b6ffd437e0ee4d3c901
Size (mdiff226.zip) = 202186 bytes
SHA1 (patch-aa) = 430b8cc4afd5ff9a4fce64063ef7e28af27b5052
SHA1 (patch-ab) = 0558a1b50e869a40e5268ba567b0a6c23e354c07
SHA1 (patch-ac) = d5095a349590a9f2a96173b973a9bec78f9fdd4f
SHA1 (patch-ad) = 878633f71e1cab024801937307bd30e880a72eb0
+36
View File
@@ -0,0 +1,36 @@
$NetBSD: patch-aa,v 1.3 2011/11/29 06:14:27 sbd Exp $
--- makefile.orig 2006-12-29 20:19:26.000000000 +0000
+++ makefile
@@ -3,7 +3,7 @@
#
NAME=mamediff
-EXT=.exe
+EXT=
EXE=$(NAME)$(EXT)
SRC=src
@@ -20,9 +20,10 @@ OBJS= $(DLOBJS) \
# Build the obj tree then build the EXE
#
-all: dlmaketree maketree $(EXE)
+all: maketree $(EXE)
-include $(LOGIQX)/dev/datlib/makefile
+DLSRC= $(PREFIX)/include/DatLib
+CFLAGS+= -I src -I $(PREFIX)/include
#
# Creating obj directory tree
@@ -51,8 +52,7 @@ $(OBJ)/%.o: $(SRC)/%.c $(SRC)/%.h $(SRC)
$(EXE): $(OBJS)
@echo Linking $@...
- $(LD) $(OBJS) $(LIBS) -o $@
- $(UPX) $@
+ $(CC) $(LDFLAGS) $(OBJS) $(LIBS) -o $@ -ldatlib -lm -lz
#
# Complete removal of built objects
+19
View File
@@ -0,0 +1,19 @@
$NetBSD: patch-ab,v 1.2 2005/03/14 16:20:58 wiz Exp $
--- src/mamediff.c.orig 2005-02-28 19:12:48.000000000 +0100
+++ src/mamediff.c
@@ -19,12 +19,12 @@
/* --- Dat library includes --- */
-#include "datlib/src/datlib.h"
+#include <DatLib/datlib.h>
/* --- Misc library includes --- */
-#include "datlib/src/misc/getopt.h"
+#include <DatLib/misc/getopt.h>
/* --- MAMEDiff definitions and macros --- */
+15
View File
@@ -0,0 +1,15 @@
$NetBSD: patch-ac,v 1.2 2005/03/14 16:20:58 wiz Exp $
--- src/compare.c.orig 2005-02-20 16:08:38.000000000 +0100
+++ src/compare.c
@@ -15,8 +15,8 @@
/* --- Dat library includes --- */
-#include "datlib/src/datlib.h"
-#include "datlib/src/macro.h"
+#include "DatLib/datlib.h"
+#include "DatLib/macro.h"
/* --- MAMEDiff definitions and macros --- */
+15
View File
@@ -0,0 +1,15 @@
$NetBSD: patch-ad,v 1.2 2005/03/14 16:20:58 wiz Exp $
--- src/generate.c.orig 2005-02-13 16:11:00.000000000 +0100
+++ src/generate.c
@@ -15,8 +15,8 @@
/* --- Dat library includes --- */
-#include "datlib/src/datlib.h"
-#include "datlib/src/macro.h"
+#include "DatLib/datlib.h"
+#include "DatLib/macro.h"
/* --- MAMEDiff definitions and macros --- */
+235
View File
@@ -0,0 +1,235 @@
# $NetBSD: Makefile,v 1.203 2013/03/24 17:18:25 wiz Exp $
#
COMMENT= Emulators for other operating systems
SUBDIR+= BasiliskII
SUBDIR+= Cygne-SDL
SUBDIR+= DatLib
SUBDIR+= DatUtil
SUBDIR+= MAMEDiff
SUBDIR+= NeoPop-SDL
SUBDIR+= ROMBuild
SUBDIR+= ROMInfo
SUBDIR+= ZIPIdent
SUBDIR+= aliados
SUBDIR+= applyppf
SUBDIR+= aranym
SUBDIR+= arcem
SUBDIR+= arnold
SUBDIR+= atari800
SUBDIR+= b-em
SUBDIR+= blinkensim
SUBDIR+= bochs
SUBDIR+= ckmame
SUBDIR+= cmdpack
SUBDIR+= compat12
SUBDIR+= compat13
SUBDIR+= compat14
SUBDIR+= compat15
SUBDIR+= compat15-extras
SUBDIR+= compat16
SUBDIR+= compat16-extras
SUBDIR+= compat20
SUBDIR+= compat20-extras
SUBDIR+= compat30
SUBDIR+= compat30-extras
SUBDIR+= compat40
SUBDIR+= compat40-extras
SUBDIR+= compat50
SUBDIR+= compat50-x11
SUBDIR+= compat51
SUBDIR+= compat51-x11
SUBDIR+= compat60
#SUBDIR+= compat_netbsd # only contains Makefile fragments
SUBDIR+= cygwin_esound
SUBDIR+= cygwin_lib
SUBDIR+= darcnes
SUBDIR+= darwin_lib
SUBDIR+= dega
SUBDIR+= dgen
SUBDIR+= dosbox
SUBDIR+= dynagen
SUBDIR+= dynamips
SUBDIR+= e-uae
SUBDIR+= fceu
SUBDIR+= fmsx
SUBDIR+= freebsd_lib
SUBDIR+= fuse
SUBDIR+= fuse-utils
SUBDIR+= gambatte
SUBDIR+= gcube
SUBDIR+= generator
SUBDIR+= generator-cbiere
SUBDIR+= gens
SUBDIR+= gns3
SUBDIR+= gnuboy
SUBDIR+= gnuboy-sdl
SUBDIR+= gpsim
SUBDIR+= gpsim-devel
SUBDIR+= gpsim-oscilloscope
SUBDIR+= gpsim-ptyusart
SUBDIR+= gxemul
SUBDIR+= handy_sdl
SUBDIR+= hatari
SUBDIR+= hercules
SUBDIR+= hercules-images
SUBDIR+= ia64sim
SUBDIR+= kegs
SUBDIR+= kenigma
SUBDIR+= libspectrum
SUBDIR+= lrmi
SUBDIR+= m1
SUBDIR+= makeppf
SUBDIR+= mame
SUBDIR+= mednafen
SUBDIR+= mess
SUBDIR+= minivmac
SUBDIR+= mmix
SUBDIR+= nestopia
SUBDIR+= netbsd32_compat15
SUBDIR+= netbsd32_compat15-extras
SUBDIR+= netbsd32_compat16
SUBDIR+= netbsd32_compat16-extras
SUBDIR+= netbsd32_compat20
SUBDIR+= netbsd32_compat20-extras
SUBDIR+= netbsd32_compat30
SUBDIR+= netbsd32_compat30-extras
SUBDIR+= netbsd32_compat40
SUBDIR+= netbsd32_compat40-extras
SUBDIR+= openmsx
SUBDIR+= or1ksim
SUBDIR+= osf1_lib
SUBDIR+= p11
SUBDIR+= palmosemulator
SUBDIR+= pcemu
SUBDIR+= pearpc
SUBDIR+= qemu
SUBDIR+= qemu0
SUBDIR+= raine
SUBDIR+= simh
SUBDIR+= simulavr
SUBDIR+= ski
SUBDIR+= sms_sdl
SUBDIR+= snes9x
SUBDIR+= snes9x-gtk
SUBDIR+= spim
SUBDIR+= stella
SUBDIR+= suse100_32_alsa
SUBDIR+= suse100_32_aspell
SUBDIR+= suse100_32_base
SUBDIR+= suse100_32_compat
SUBDIR+= suse100_32_expat
SUBDIR+= suse100_32_fontconfig
SUBDIR+= suse100_32_freetype2
SUBDIR+= suse100_32_glx
SUBDIR+= suse100_32_gtk2
SUBDIR+= suse100_32_krb5
SUBDIR+= suse100_32_libcups
SUBDIR+= suse100_32_libjpeg
SUBDIR+= suse100_32_libpng
SUBDIR+= suse100_32_libsigc++2
SUBDIR+= suse100_32_libtiff
SUBDIR+= suse100_32_libxml2
SUBDIR+= suse100_32_locale
SUBDIR+= suse100_32_openmotif
SUBDIR+= suse100_32_openssl
SUBDIR+= suse100_32_resmgr
SUBDIR+= suse100_32_slang
SUBDIR+= suse100_32_x11
SUBDIR+= suse100_alsa
SUBDIR+= suse100_aspell
SUBDIR+= suse100_base
SUBDIR+= suse100_compat
SUBDIR+= suse100_expat
SUBDIR+= suse100_fontconfig
SUBDIR+= suse100_freetype2
SUBDIR+= suse100_glx
SUBDIR+= suse100_gtk2
SUBDIR+= suse100_krb5
SUBDIR+= suse100_libcups
SUBDIR+= suse100_libjpeg
SUBDIR+= suse100_libpng
SUBDIR+= suse100_libsigc++2
SUBDIR+= suse100_libtiff
SUBDIR+= suse100_libxml2
#SUBDIR+= suse100_linux # only contains Makefile fragments
SUBDIR+= suse100_locale
SUBDIR+= suse100_openmotif
SUBDIR+= suse100_openssl
SUBDIR+= suse100_resmgr
SUBDIR+= suse100_slang
SUBDIR+= suse100_x11
SUBDIR+= suse121_32_alsa
SUBDIR+= suse121_32_aspell
SUBDIR+= suse121_32_base
SUBDIR+= suse121_32_compat
SUBDIR+= suse121_32_expat
SUBDIR+= suse121_32_fontconfig
SUBDIR+= suse121_32_freetype2
SUBDIR+= suse121_32_glx
SUBDIR+= suse121_32_gtk2
SUBDIR+= suse121_32_krb5
SUBDIR+= suse121_32_libcups
SUBDIR+= suse121_32_libcurl
SUBDIR+= suse121_32_libdrm
SUBDIR+= suse121_32_libjpeg
SUBDIR+= suse121_32_libpng
SUBDIR+= suse121_32_libsigc++2
SUBDIR+= suse121_32_libtiff
SUBDIR+= suse121_32_libxml2
SUBDIR+= suse121_32_locale
SUBDIR+= suse121_32_openmotif
SUBDIR+= suse121_32_openssl
SUBDIR+= suse121_32_qt4
SUBDIR+= suse121_32_slang
SUBDIR+= suse121_32_x11
SUBDIR+= suse121_alsa
SUBDIR+= suse121_aspell
SUBDIR+= suse121_base
SUBDIR+= suse121_compat
SUBDIR+= suse121_expat
SUBDIR+= suse121_fontconfig
SUBDIR+= suse121_freetype2
SUBDIR+= suse121_glx
SUBDIR+= suse121_gtk2
SUBDIR+= suse121_krb5
SUBDIR+= suse121_libcups
SUBDIR+= suse121_libcurl
SUBDIR+= suse121_libdrm
SUBDIR+= suse121_libjpeg
SUBDIR+= suse121_libpng
SUBDIR+= suse121_libsigc++2
SUBDIR+= suse121_libtiff
SUBDIR+= suse121_libxml2
#SUBDIR+= suse121_linux # only contains Makefile fragments
SUBDIR+= suse121_locale
SUBDIR+= suse121_openmotif
SUBDIR+= suse121_openssl
SUBDIR+= suse121_qt4
SUBDIR+= suse121_slang
SUBDIR+= suse121_x11
SUBDIR+= swarm
SUBDIR+= tme
SUBDIR+= tuxnes
SUBDIR+= twin
SUBDIR+= uae
SUBDIR+= ucon64
SUBDIR+= vba
SUBDIR+= vice
SUBDIR+= vmips
SUBDIR+= wine
SUBDIR+= wine-devel
SUBDIR+= x48
SUBDIR+= xbeeb
SUBDIR+= xcopilot
SUBDIR+= xhomer
SUBDIR+= xm7
SUBDIR+= xnp2
SUBDIR+= xtrs
SUBDIR+= xyame
SUBDIR+= yabause
SUBDIR+= z26
SUBDIR+= zsnes
.include "../mk/misc/category.mk"
+6
View File
@@ -0,0 +1,6 @@
NeoPop-SDL is the SDL port of NeoPop, a portable NeoGeo Pocket
emulator. It supports black&white and color games, game state saving,
screenshots (BMP and PNG), sound and music, double- and
triple-size both in software and hardware scaling as well as
full-screen-modes, joysticks and keyboard input, and reading from
ZIP files.
+19
View File
@@ -0,0 +1,19 @@
# $NetBSD: Makefile,v 1.15 2013/02/16 11:21:03 wiz Exp $
#
DISTNAME= NeoPop-SDL-0.2
PKGREVISION= 9
CATEGORIES= emulators
MASTER_SITES= http://www.nih.at/NeoPop-SDL/
EXTRACT_SUFX= .tar.bz2
MAINTAINER= wiz@NetBSD.org
HOMEPAGE= http://www.nih.at/NeoPop-SDL/
COMMENT= SNK NeoGeo Pocket emulator
GNU_CONFIGURE= yes
CONFIGURE_ARGS+= --with-png=${BUILDLINK_PREFIX.png}
.include "../../devel/SDL/buildlink3.mk"
.include "../../graphics/png/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
+6
View File
@@ -0,0 +1,6 @@
@comment $NetBSD: PLIST,v 1.3 2009/06/14 17:51:00 joerg Exp $
bin/NeoPop-SDL
man/man5/neopoprc.5
man/man6/NeoPop-SDL.6
share/doc/NeoPop-SDL/TODO
share/doc/NeoPop-SDL/bugs-core.html
+5
View File
@@ -0,0 +1,5 @@
$NetBSD: distinfo,v 1.3 2005/02/23 18:49:17 agc Exp $
SHA1 (NeoPop-SDL-0.2.tar.bz2) = b062a9d9f031617ba14e13f265d2deb659a58240
RMD160 (NeoPop-SDL-0.2.tar.bz2) = 48494371b074b3a336a0090b470e5f3ee6815672
Size (NeoPop-SDL-0.2.tar.bz2) = 222287 bytes
+12
View File
@@ -0,0 +1,12 @@
ROMBuild is a ROM manipulation tool that is capable of creating
ROMs for the older arcade emus using MAME ones. An example of this
is by splitting ROMs in two or joining two together but ROMBuild
supports much more than this. It can can split, join, extract,
fill, patch, pad, interleave etc but to you the user that doesn't
really matter. The important thing is that MAME ROMs go in and ROMs
for another emulator come out. :)
When used in conjunction with the CMPro/ROMCenter dats that I have
produced you can generate ROM sets for practically any emulator
from MAME ROMs. In fact, the only ROMs you can't generate from MAME
sets are where MAME doesn't support the game.
+32
View File
@@ -0,0 +1,32 @@
# $NetBSD: Makefile,v 1.19 2012/10/03 12:55:09 asau Exp $
#
DISTNAME= rbuild29
PKGNAME= ROMBuild-2.9
CATEGORIES= emulators
MASTER_SITES= http://www.logiqx.com/Tools/ROMBuild/
EXTRACT_SUFX= .zip
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://www.logiqx.com/Tools/ROMBuild/ROMBuild.php
COMMENT= Arcade ROM manipulation tool
USE_TOOLS+= gmake
WRKSRC= ${WRKDIR}
MAKE_FILE= makefile
BUILD_TARGET= rombuild
EXTRACT_OPTS_ZIP= -aaqo
INSTALLATION_DIRS= bin
post-extract:
${MKDIR} ${WRKSRC}/obj
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/rombuild ${DESTDIR}${PREFIX}/bin
${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/doc/ROMBuild
${INSTALL_DATA} ${WRKSRC}/readme.txt \
${DESTDIR}${PREFIX}/share/doc/ROMBuild
.include "../../devel/zlib/buildlink3.mk"
.include "../../emulators/DatLib/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
+3
View File
@@ -0,0 +1,3 @@
@comment $NetBSD: PLIST,v 1.3 2009/06/14 17:51:01 joerg Exp $
bin/rombuild
share/doc/ROMBuild/readme.txt
+8
View File
@@ -0,0 +1,8 @@
$NetBSD: distinfo,v 1.7 2011/11/29 06:15:00 sbd Exp $
SHA1 (rbuild29.zip) = fa389315072c721b097116db91ca3c41d30028c8
RMD160 (rbuild29.zip) = 5a9640a3ec9d179df640e51ea71d4a00cf52142f
Size (rbuild29.zip) = 110641 bytes
SHA1 (patch-aa) = 9c129cdef08805166cc2bed0d5992d357d2f8523
SHA1 (patch-ab) = 1fbc4887a532d1f956875589baa8a2e0211070fc
SHA1 (patch-ac) = 484bd715983c109f41f1d01e7150266e7c2ca4d1
+47
View File
@@ -0,0 +1,47 @@
$NetBSD: patch-aa,v 1.3 2011/11/29 06:15:00 sbd Exp $
--- makefile.orig 2007-06-08 22:02:38.000000000 +0000
+++ makefile
@@ -3,7 +3,7 @@
#
NAME=rombuild
-EXT=.exe
+EXT=
EXE=$(NAME)$(EXT)
SRC=src
@@ -11,19 +11,17 @@ OBJ=obj
OBJDIRS=$(OBJ)
-OBJS= $(DLOBJ)/misc/getopt.o \
- $(DLOBJ)/mame/unzip.o \
- $(DLOBJ)/mame/msdos/msdos.o \
- $(OBJ)/$(NAME).o \
+OBJS= $(OBJ)/$(NAME).o \
$(OBJ)/rominfo.o
#
# Build the obj tree then build the EXE
#
-all: dlmaketree maketree $(EXE)
+all: maketree $(EXE)
-include $(LOGIQX)/dev/datlib/makefile
+DLSRC= $(PREFIX)/include/DatLib
+CFLAGS+= -I src -I $(PREFIX)/include
#
# Creating obj directory tree
@@ -52,8 +50,7 @@ $(OBJ)/rominfo.o: $(SRC)/rominfo.c $(SRC
$(EXE): $(OBJS)
@echo Linking $@...
- $(LD) $(OBJS) $(LIBS) -o $@
- $(UPX) $@
+ $(CC) $(LDFLAGS) $(OBJS) $(LIBS) -o $@ -ldatlib -lm -lz
#
# Complete removal of built objects
+21
View File
@@ -0,0 +1,21 @@
$NetBSD: patch-ab,v 1.2 2005/03/14 16:20:58 wiz Exp $
--- src/rombuild.c.orig 2005-01-30 12:19:54.000000000 +0100
+++ src/rombuild.c
@@ -23,13 +23,13 @@
/* --- Dat library includes --- */
-#include "datlib/src/macro.h"
+#include "DatLib/macro.h"
/* --- Misc library includes --- */
-#include "datlib/src/misc/getopt.h"
-#include "datlib/src/mame/unzip.h"
+#include "DatLib/misc/getopt.h"
+#include "DatLib/mame/unzip.h"
/* --- ROMBuild definitions and macros --- */
+13
View File
@@ -0,0 +1,13 @@
$NetBSD: patch-ac,v 1.2 2005/03/14 16:20:58 wiz Exp $
--- src/rombuild.h.orig 2005-01-02 22:50:32.000000000 +0100
+++ src/rombuild.h
@@ -6,7 +6,7 @@
/* --- Dat library includes --- */
-#include "datlib/src/macro.h"
+#include "DatLib/macro.h"
/* --- Types of ROMBuild operation --- */
+3
View File
@@ -0,0 +1,3 @@
ROMInfo is for identifying arcade ROMs and checking if they are
emulated yet. It does this using the CMPro dats from the CAESAR
database and should cover every arcade game emulated so far.
+32
View File
@@ -0,0 +1,32 @@
# $NetBSD: Makefile,v 1.18 2012/10/03 12:55:09 asau Exp $
#
DISTNAME= rinfo27
PKGNAME= ROMInfo-2.7
CATEGORIES= emulators
MASTER_SITES= http://www.logiqx.com/Tools/ROMInfo/
EXTRACT_SUFX= .zip
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://www.logiqx.com/Tools/ROMInfo/ROMInfo.php
COMMENT= Identify arcade ROM sets
USE_TOOLS+= gmake
WRKSRC= ${WRKDIR}
MAKE_FILE= makefile
BUILD_TARGET= rominfo
EXTRACT_OPTS_ZIP= -aaqo
INSTALLATION_DIRS= bin
post-extract:
${MKDIR} ${WRKSRC}/obj
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/rominfo ${DESTDIR}${PREFIX}/bin
${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/doc/ROMInfo
${INSTALL_DATA} ${WRKSRC}/readme.txt \
${DESTDIR}${PREFIX}/share/doc/ROMInfo
.include "../../devel/zlib/buildlink3.mk"
.include "../../emulators/DatLib/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
+3
View File
@@ -0,0 +1,3 @@
@comment $NetBSD: PLIST,v 1.3 2009/06/14 17:51:01 joerg Exp $
bin/rominfo
share/doc/ROMInfo/readme.txt
+7
View File
@@ -0,0 +1,7 @@
$NetBSD: distinfo,v 1.6 2011/11/29 06:24:02 sbd Exp $
SHA1 (rinfo27.zip) = f6ef7ac9ce30d92e646f040ee82f264ef71f59c0
RMD160 (rinfo27.zip) = c61b42578d35e815be50e7c9077e1e728d2d72f5
Size (rinfo27.zip) = 140306 bytes
SHA1 (patch-aa) = e2a586daa96d03fcad4bec08e76b9e01c30fdb61
SHA1 (patch-ab) = c8667dc5c0ba3085e14b56b88d1693a5a8abf329
+36
View File
@@ -0,0 +1,36 @@
$NetBSD: patch-aa,v 1.3 2011/11/29 06:24:03 sbd Exp $
--- makefile.orig 2005-02-24 09:39:06.000000000 +0000
+++ makefile
@@ -3,7 +3,7 @@
#
NAME=rominfo
-EXT=.exe
+EXT=
EXE=$(NAME)$(EXT)
SRC=src
@@ -18,9 +18,10 @@ OBJS= $(DLOBJS) \
# Build the obj tree then build the EXE
#
-all: dlmaketree maketree $(EXE)
+all: maketree $(EXE)
-include $(LOGIQX)/dev/datlib/makefile
+DLSRC= $(PREFIX)/include/DatLib
+CFLAGS+= -I src -I $(PREFIX)/include
#
# Creating obj directory tree
@@ -45,8 +46,7 @@ $(OBJ)/%.o: $(SRC)/%.c $(SRC)/%.h $(DLSR
$(EXE): $(OBJS)
@echo Linking $@...
- $(LD) $(OBJS) $(LIBS) -o $@
- $(UPX) $@
+ $(CC) $(LDFLAGS) $(OBJS) $(LIBS) -o $@ -ldatlib -lm -lz
#
# Complete removal of built objects
+23
View File
@@ -0,0 +1,23 @@
$NetBSD: patch-ab,v 1.2 2005/03/14 16:20:58 wiz Exp $
--- src/rominfo.c.orig 2005-02-28 19:17:24.000000000 +0100
+++ src/rominfo.c
@@ -22,14 +22,14 @@
/* --- Dat library includes --- */
-#include "datlib/src/datlib.h"
-#include "datlib/src/macro.h"
+#include "DatLib/datlib.h"
+#include "DatLib/macro.h"
/* --- Misc library includes --- */
-#include "datlib/src/misc/getopt.h"
-#include "datlib/src/mame/unzip.h"
+#include "DatLib/misc/getopt.h"
+#include "DatLib/mame/unzip.h"
/* --- ROMInfo definitions and macros --- */
+12
View File
@@ -0,0 +1,12 @@
ZIPIdent has been created to assist in the management of unemulated
or 'needed soon' ROM collections. Anyone who possesses such a
collection (emu developers for example) may find it difficult to
spot games that become emulated and then remove them from the
unemulated collection. ZIPIdent will identify ZIPs that should not
be classified unemulated and if desired will even move them out of
the 'unemulated' collection and into a separate directory.
It is quite similar to MAME's '-romident' function except for the
fact that it processes entire ROM collections, not just an individual
ZIP. ZIPIdent probably has some additional logic that '-romident'
doesn't contain too (not checked).
+32
View File
@@ -0,0 +1,32 @@
# $NetBSD: Makefile,v 1.17 2012/10/03 12:55:09 asau Exp $
#
DISTNAME= zident28
PKGNAME= ZIPIdent-2.8
CATEGORIES= emulators
MASTER_SITES= http://www.logiqx.com/Tools/ZIPIdent/
EXTRACT_SUFX= .zip
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://www.logiqx.com/Tools/ZIPIdent/ZIPIdent.php
COMMENT= Identify arcade ROM sets
USE_TOOLS+= gmake
WRKSRC= ${WRKDIR}
MAKE_FILE= makefile
BUILD_TARGET= zipident
EXTRACT_OPTS_ZIP= -Laaqo
INSTALLATION_DIRS= bin
post-extract:
${MKDIR} ${WRKSRC}/obj
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/zipident ${DESTDIR}${PREFIX}/bin
${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/doc/ZIPIdent
${INSTALL_DATA} ${WRKSRC}/readme.txt \
${DESTDIR}${PREFIX}/share/doc/ZIPIdent
.include "../../devel/zlib/buildlink3.mk"
.include "../../emulators/DatLib/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
+3
View File
@@ -0,0 +1,3 @@
@comment $NetBSD: PLIST,v 1.3 2009/06/14 17:51:01 joerg Exp $
bin/zipident
share/doc/ZIPIdent/readme.txt
+7
View File
@@ -0,0 +1,7 @@
$NetBSD: distinfo,v 1.6 2011/11/29 06:15:50 sbd Exp $
SHA1 (zident28.zip) = a530170234564665a179b31da2c634387f03d114
RMD160 (zident28.zip) = f712115c1fc9001d2819f450c788e8e99be5bbdb
Size (zident28.zip) = 148166 bytes
SHA1 (patch-aa) = 284252031c5def43e58d7ae3a9f43d1fc72c9f7d
SHA1 (patch-ab) = 67ad17076bff44fc854a7f0b076283b4f3c135de
+36
View File
@@ -0,0 +1,36 @@
$NetBSD: patch-aa,v 1.3 2011/11/29 06:15:50 sbd Exp $
--- makefile.orig 2005-02-24 09:40:06.000000000 +0000
+++ makefile
@@ -3,7 +3,7 @@
#
NAME=zipident
-EXT=.exe
+EXT=
EXE=$(NAME)$(EXT)
SRC=src
@@ -18,9 +18,10 @@ OBJS= $(DLOBJS) \
# Build the obj tree then build the EXE
#
-all: dlmaketree maketree $(EXE)
+all: maketree $(EXE)
-include $(LOGIQX)/dev/datlib/makefile
+DLSRC= $(PREFIX)/include/DatLib
+CFLAGS+= -I src -I $(PREFIX)/include
#
# Creating obj directory tree
@@ -45,8 +46,7 @@ $(OBJ)/%.o: $(SRC)/%.c $(SRC)/%.h $(DLSR
$(EXE): $(OBJS)
@echo Linking $@...
- $(LD) $(OBJS) $(LIBS) -o $@
- $(UPX) $@
+ $(CC) $(LDFLAGS) $(OBJS) $(LIBS) -o $@ -ldatlib -lm -lz
#
# Complete removal of built objects
+23
View File
@@ -0,0 +1,23 @@
$NetBSD: patch-ab,v 1.2 2005/03/14 16:20:58 wiz Exp $
--- src/zipident.c.orig 2005-02-13 14:07:40.000000000 +0100
+++ src/zipident.c
@@ -21,14 +21,14 @@
/* --- Dat library includes --- */
-#include "datlib/src/datlib.h"
-#include "datlib/src/macro.h"
+#include "DatLib/datlib.h"
+#include "DatLib/macro.h"
/* --- Misc library includes --- */
-#include "datlib/src/misc/getopt.h"
-#include "datlib/src/mame/unzip.h"
+#include "DatLib/misc/getopt.h"
+#include "DatLib/mame/unzip.h"
/* --- ZipIdent definitions and macros --- */
+8
View File
@@ -0,0 +1,8 @@
Aliados is a CP/M 80 emulator that instead of emulate a machine and
run some variant of CP/M on it, emulates only the microprocessor and
captures all CP/M system calls to execute it natively. Actually only
emulates a small part of CP/M, but with that already can execute many
programs, such as WordStar, Microsoft Basic, Mallard Basic, Hi-Tech C,
Turbo Pascal and many others. Aliados does not need to create disk
images, it reads and writes in the native filesystem all files that
match the CP/M name conventions.
+28
View File
@@ -0,0 +1,28 @@
# $NetBSD: Makefile,v 1.6 2012/10/03 12:55:09 asau Exp $
#
DISTNAME= aliados-0.1.1
PKGREVISION= 1
CATEGORIES= emulators
MASTER_SITES= http://www.arrakis.es/~ninsesabe/aliados/
EXTRACT_SUFX= .tgz
MAINTAINER= ivaniclixx@gmail.com
HOMEPAGE= http://www.arrakis.es/~ninsesabe/aliados/
COMMENT= CP/M 80 emulator
PKG_INSTALLATION_TYPES= overwrite pkgviews
NO_CONFIGURE= YES
USE_LANGUAGES= c++
USE_NCURSES= yes # tigetstr tparm setupterm
INSTALLATION_DIRS= bin share/doc/aliados
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/aliados ${DESTDIR}${PREFIX}/bin
${INSTALL_DATA} ${WRKSRC}/README ${DESTDIR}${PREFIX}/share/doc/aliados
${INSTALL_DATA} ${WRKSRC}/aliados.doc ${DESTDIR}${PREFIX}/share/doc/aliados
.include "../../devel/ncurses/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
+4
View File
@@ -0,0 +1,4 @@
@comment $NetBSD: PLIST,v 1.2 2012/05/15 11:34:52 shattered Exp $
bin/aliados
share/doc/aliados/README
share/doc/aliados/aliados.doc
+8
View File
@@ -0,0 +1,8 @@
$NetBSD: distinfo,v 1.3 2011/11/23 23:27:07 joerg Exp $
SHA1 (aliados-0.1.1.tgz) = adcc43f7bafc2ee11222002d03f306e8f561e3f6
RMD160 (aliados-0.1.1.tgz) = a4a37f349937d32c1449553816de5f3d87836545
Size (aliados-0.1.1.tgz) = 50210 bytes
SHA1 (patch-aa) = 3098fd2b27832cc52ba242204c0c6d625c6deb0e
SHA1 (patch-aliados.cpp) = 28e891997d38953eb0544848760cbc8da82165ba
SHA1 (patch-cpm.cpp) = 1dc8e6be75b605cb22522aa13927dd16b2b036d9
+115
View File
@@ -0,0 +1,115 @@
$NetBSD: patch-aa,v 1.2 2011/11/23 23:27:07 joerg Exp $
--- Makefile.orig 2004-03-20 19:31:28.000000000 +0000
+++ Makefile
@@ -1,16 +1,17 @@
# Makefile para aliados
# Path to ncurses required in hp-ux.
-CPPFLAGS=-W -Wall -I/opt/ncurses/include
+#CPPFLAGS=-W -Wall -I/opt/ncurses/include
+CPPFLAGS+= ${CXXFLAGS}
# To compile with console emulation using curses.
-LDFLAGS=-lncurses -L/opt/ncurses/lib
+LDFLAGS+="-lncurses"
# To compile without console emulation.
#LDFLAGS=
#CURSESFLAGS=-DNO_CURSES
-all: aliados disassemble
+all: aliados
# If you want to build the versions with and without libz80 at the same time.
@@ -21,17 +22,17 @@ both: aliados aliadoslz disassemble
#------------------------------------------------
aliadoslz: aliadoslz.o cpmlz.o realconsole.o cpuz.o directory.o
- g++ $(CPPFLAGS) $(LDFLAGS) -o aliadoslz -lz80 \
+ $(CXX) $(CPPFLAGS) $(LDFLAGS) -o aliadoslz -lz80 \
aliadoslz.o cpmlz.o realconsole.o cpuz.o directory.o printer.o
aliadoslz.o: aliados.cpp cpm.h console.h realconsole.h printer.h
- g++ $(CPPFLAGS) -o aliadoslz.o -c aliados.cpp
+ $(CXX) $(CPPFLAGS) -o aliadoslz.o -c aliados.cpp
cpmlz.o: cpm.cpp cpm.h cpu.h console.h directory.h printer.h
- g++ $(CPPFLAGS) -o cpmlz.o -c cpm.cpp
+ $(CXX) $(CPPFLAGS) -o cpmlz.o -c cpm.cpp
cpuz.o: cpu.cpp cpu.h
- g++ $(CPPFLAGS) -o cpuz.o -c cpu.cpp
+ $(CXX) $(CPPFLAGS) -o cpuz.o -c cpu.cpp
#------------------------------------------------
# Version using ImcZ80.
@@ -41,7 +42,7 @@ cpuz.o: cpu.cpp cpu.h
# Uncomment this if you compile with ImcZ80 and with libz80.
#aliados: aliados.o cpm.o Z80.o realconsole.o cpu.o
-# g++ $(CPPFLAGS) $(LDFLAGS) -o aliados \
+# $(CXX) $(CPPFLAGS) $(LDFLAGS) -o aliados \
# aliados.o cpm.o realconsole.o Z80.o cpu.o \
# directory.o printer.o \
# -lz80
@@ -50,47 +51,47 @@ cpuz.o: cpu.cpp cpu.h
aliados: aliados.o cpm.o Z80.o realconsole.o cpu.o disasm.o \
directory.o printer.o
- g++ $(CPPFLAGS) -o aliados \
+ $(CXX) $(CPPFLAGS) -o aliados \
aliados.o cpm.o realconsole.o Z80.o cpu.o \
disasm.o directory.o printer.o \
$(LDFLAGS)
aliados.o: aliados.cpp cpm.h console.h realconsole.h printer.h
- g++ $(CPPFLAGS) -DUSE_ImcZ80 -c aliados.cpp
+ $(CXX) $(CPPFLAGS) -DUSE_ImcZ80 -c aliados.cpp
cpm.o: cpm.cpp cpm.h cpu.h console.h Z80.hxx directory.h printer.h
- g++ $(CPPFLAGS) -DUSE_ImcZ80 -c cpm.cpp
+ $(CXX) $(CPPFLAGS) -DUSE_ImcZ80 -c cpm.cpp
cpu.o: cpu.cpp cpu.h Z80.hxx disasm.h
- g++ $(CPPFLAGS) -DUSE_ImcZ80 -c cpu.cpp
+ $(CXX) $(CPPFLAGS) -DUSE_ImcZ80 -c cpu.cpp
Z80.o: Z80.cxx Z80.hxx z80ops.hxx cbops.hxx edops.hxx
- g++ -c Z80.cxx
+ $(CXX) -c Z80.cxx
#------------------------------------------------
# Common to all versions.
#------------------------------------------------
realconsole.o: realconsole.cpp realconsole.h console.h
- g++ $(CPPFLAGS) $(CURSESFLAGS) -c realconsole.cpp
+ $(CXX) $(CPPFLAGS) $(CURSESFLAGS) -c realconsole.cpp
disasm.o: disasm.cpp disasm.h cpu.h
- g++ $(CPPFLAGS) -c disasm.cpp
+ $(CXX) $(CPPFLAGS) -c disasm.cpp
directory.o: directory.cpp directory.h
- g++ $(CPPFLAGS) -c directory.cpp
+ $(CXX) $(CPPFLAGS) -c directory.cpp
printer.o: printer.cpp printer.h
- g++ $(CPPFLAGS) -c printer.cpp
+ $(CXX) $(CPPFLAGS) -c printer.cpp
# disassemble is a tiny disassembler that uses the disassemble code
# of the debugger. Works correctly only with .COM files.
disassemble.o: disassemble.cpp cpu.h disasm.h Z80.hxx
- g++ $(CPPFLAGS) -c disassemble.cpp
+ $(CXX) $(CPPFLAGS) -c disassemble.cpp
disassemble: disassemble.o cpu.o disasm.o Z80.o
- g++ $(CPPFLAGS) -o disassemble disassemble.o cpu.o disasm.o Z80.o
+ $(CXX) $(CPPFLAGS) -o disassemble disassemble.o cpu.o disasm.o Z80.o
tgz:
tar cf - Makefile *.cpp *.h *.cxx *.hxx \
@@ -0,0 +1,12 @@
$NetBSD: patch-aliados.cpp,v 1.1 2011/11/23 23:27:07 joerg Exp $
--- aliados.cpp.orig 2004-03-20 19:35:40.000000000 +0000
+++ aliados.cpp
@@ -14,6 +14,7 @@ using std::endl;
using std::flush;
#include <stdexcept>
#include <memory>
+#include <stdlib.h>
namespace {
+12
View File
@@ -0,0 +1,12 @@
$NetBSD: patch-cpm.cpp,v 1.1 2011/11/23 23:27:07 joerg Exp $
--- cpm.cpp.orig 2011-11-23 16:40:21.000000000 +0000
+++ cpm.cpp
@@ -14,6 +14,7 @@
#include <stdexcept>
#include <stdio.h>
+#include <string.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/stat.h>
+7
View File
@@ -0,0 +1,7 @@
PPF (PlayStation Patch File) is a tool dedicated to all PlayStation
coders and developers out there who are creating PAL/NTSC patches,
trainer options and even cracks for your favourite console system.
With the files in the PPF package you are in the position to make
patchfiles similar to IPS on SuperNES.
This package contains a tool to apply PPF patches.
+25
View File
@@ -0,0 +1,25 @@
# $NetBSD: Makefile,v 1.4 2012/10/03 12:55:09 asau Exp $
#
DISTNAME= applyppf3_src
PKGNAME= applyppf-3.0
CATEGORIES= emulators
MASTER_SITES= # http://www.paradogs.com/download/
EXTRACT_SUFX= .zip
MAINTAINER= pkgsrc-users@NetBSD.org
#HOMEPAGE= http://www.paradogs.com/pdx_ppf3.htm
COMMENT= PPF (Playstation Patch File) v3.0 apply tool
WRKSRC= ${WRKDIR}
INSTALLATION_DIRS= bin
do-build:
cd ${BUILD_DIRS} && ${CC} ${CPPFLAGS} ${CFLAGS} \
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 \
-D_LARGEFILE64_SOURCE -o applyppf applyppf3_linux.c
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/applyppf ${DESTDIR}${PREFIX}/bin
.include "../../mk/bsd.pkg.mk"
+2
View File
@@ -0,0 +1,2 @@
@comment $NetBSD: PLIST,v 1.1.1.1 2007/03/18 19:56:27 wiz Exp $
bin/applyppf
+6
View File
@@ -0,0 +1,6 @@
$NetBSD: distinfo,v 1.1.1.1 2007/03/18 19:56:27 wiz Exp $
SHA1 (applyppf3_src.zip) = d80dd39b322863defdea76a1703565a7ce569b23
RMD160 (applyppf3_src.zip) = ec06579d49ef81148233f51bbacbd3fd948bb403
Size (applyppf3_src.zip) = 5618 bytes
SHA1 (patch-aa) = 2e35e964870ae2843265496c6770e1d2d8733ece
+22
View File
@@ -0,0 +1,22 @@
$NetBSD: patch-aa,v 1.1.1.1 2007/03/18 19:56:27 wiz Exp $
--- applyppf3_linux.c.orig 2001-11-26 16:48:30.000000000 +0000
+++ applyppf3_linux.c
@@ -20,7 +20,7 @@
#include <sys/types.h>
#include <sys/stat.h>
-#if defined(__APPLE__) || defined (MACOSX)
+#if !defined(__linux__)
//////////////////////////////////////////////////////////////////////
// fseeko is already 64 bit for Darwin/MacOS X!
@@ -40,7 +40,7 @@
typedef off_t __off64_t;
-#endif /* __APPLE__ || MACOSX */
+#endif /* __linux__ */
//////////////////////////////////////////////////////////////////////
// Macros for little to big Endian conversion.
+5
View File
@@ -0,0 +1,5 @@
ARAnyM is an acronym: Atari Running on Any Machine. It is a virtual machine
software for running the Atari ST/TT/Falcon operating systems (TOS, FreeMiNT,
MagiC and others) and TOS/GEM applications on any kind of hardware - be it
an IBM clone (read it as "PC" :-), an Apple, an Unix server, a graphics
workstation or even a portable computer.
+11
View File
@@ -0,0 +1,11 @@
===========================================================================
$NetBSD: MESSAGE,v 1.1 2008/08/07 16:19:34 hauke Exp $
For a start, copy the ${PREFIX}/share/doc/aranym/config file
to ~/.aranym/config.
The aranym emulator can either use an image of your
Atari Falcon 4.0.4 ROMs, or the EmuTOS image installed
in ${PREFIX}/share/aranym/etos512k.img.
===========================================================================
+78
View File
@@ -0,0 +1,78 @@
# $NetBSD: Makefile,v 1.27 2012/10/06 12:46:12 ryoon Exp $
#
DISTNAME= aranym_0.9.14.orig
PKGNAME= ${DISTNAME:S/_/-/:S/.orig//}
CATEGORIES= emulators
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=aranym/}
SITES.emutos-512k-0.8.7.zip= ${MASTER_SITE_SOURCEFORGE:=emutos/}
DISTFILES= ${DEFAULT_DISTFILES} emutos-512k-0.8.7.zip
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://aranym.sourceforge.net/
COMMENT= Atari Running on Any Machine
LICENSE= gnu-gpl-v2
WRKSRC= ${WRKDIR}/${PKGNAME_NOREV}
AUTOCONF_REQD= 2..50
USE_TOOLS+= autoconf gmake gzip
USE_LANGUAGES= c c++
GNU_CONFIGURE= yes
MANCOMPRESSED= yes
CONFIGURE_ARGS+= --enable-fullmmu
CONFIGURE_ARGS+= --enable-atc=full
EMUTOS_WRKSRC= ${WRKDIR}/emutos-512k-0.8.7
EMUTOS_DOC_DIR= ${PREFIX}/share/doc/aranym/emutos
EMUTOS_ROM_DIR= ${PREFIX}/share/aranym
REQD_DIRS+= ${EMUTOS_ROM_DIR} ${EMUTOS_DOC_DIR}
SUBST_CLASSES+= paths
SUBST_STAGE.paths= post-build
SUBST_FILES.paths= doc/config
SUBST_FILES.paths+= doc/aranym.1
SUBST_SED.paths= -e "s|/usr/share/|${PREFIX}/share/|g"
SUBST_SED.paths+= -e "s|/usr/local/share/|${PREFIX}/share/|g"
SUBST_MESSAGE.paths= Fixing hardcoded paths.
.include "options.mk"
.include "../../mk/bsd.prefs.mk"
.if ${OPSYS} == "Linux"
CONFIGURE_ARGS+= --enable-nfpci
.endif
.if !empty(MACHINE_PLATFORM:MLinux-*-i386)
CONFIGURE_ARGS+= --enable-jit-compiler
CONFIGURE_ARGS+= --enable-jit-fpu
.endif
# This appears if it thinks it can use tun/tap interfaces.
# (While NetBSD has these, the configure test rejects it.)
PLIST_VARS+= aratapif
.if !empty(MACHINE_PLATFORM:MLinux-*-*) || \
!empty(MACHINE_PLATFORM:MDarwin-*-*)
PLIST.aratapif= yes
.endif
INSTALLATION_DIRS+= ${EMUTOS_DOC_DIR} ${EMUTOS_ROM_DIR}
pre-configure:
cd ${WRKSRC} && autoconf
post-install:
${INSTALL_DATA} ${EMUTOS_WRKSRC}/etos512k.img ${DESTDIR}${EMUTOS_ROM_DIR}
${INSTALL_DATA} ${EMUTOS_WRKSRC}/readme.txt ${DESTDIR}${EMUTOS_DOC_DIR}
${INSTALL_DATA} ${EMUTOS_WRKSRC}/doc/announce.txt ${DESTDIR}${EMUTOS_DOC_DIR}
${INSTALL_DATA} ${EMUTOS_WRKSRC}/doc/authors.txt ${DESTDIR}${EMUTOS_DOC_DIR}
${INSTALL_DATA} ${EMUTOS_WRKSRC}/doc/changelog.txt ${DESTDIR}${EMUTOS_DOC_DIR}
${INSTALL_DATA} ${EMUTOS_WRKSRC}/doc/license.txt ${DESTDIR}${EMUTOS_DOC_DIR}
${INSTALL_DATA} ${EMUTOS_WRKSRC}/doc/status.txt ${DESTDIR}${EMUTOS_DOC_DIR}
.include "../../devel/SDL/buildlink3.mk"
.include "../../math/mpfr/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
+40
View File
@@ -0,0 +1,40 @@
@comment $NetBSD: PLIST,v 1.6 2012/05/23 05:03:26 dholland Exp $
bin/aranym
${PLIST.aratapif}bin/aratapif
man/man1/aranym-jit.1
man/man1/aranym-mmu.1
man/man1/aranym.1
${PLIST.aratapif}man/man1/aratapif.1
share/aranym/arabridge
share/aranym/atari/hostfs/README
share/aranym/atari/hostfs/bdconfig.sys
share/aranym/atari/mmusetup.cnf
share/aranym/atari/network/README
share/aranym/atari/network/eth0-config.sh
share/aranym/atari/newdesk.inf
share/aranym/atari/sound/README
share/aranym/atari/tools/README
share/aranym/atari/tools/pc101us.kbd.bz2
share/aranym/etos512k.img
share/aranym/floppy.sh
share/aranym/logo.png
share/aranym/wm_icon.bmp
share/doc/aranym/AUTHORS
share/doc/aranym/BUGS
share/doc/aranym/COPYING
share/doc/aranym/FAQ
share/doc/aranym/INSTALL
share/doc/aranym/NEWS
share/doc/aranym/README
share/doc/aranym/TODO
share/doc/aranym/changelog
share/doc/aranym/config
share/doc/aranym/emutos/announce.txt
share/doc/aranym/emutos/authors.txt
share/doc/aranym/emutos/changelog.txt
share/doc/aranym/emutos/license.txt
share/doc/aranym/emutos/readme.txt
share/doc/aranym/emutos/status.txt
@pkgdir share/aranym/atari/nfosmesa
@pkgdir share/aranym/atari/nfjpeg
@pkgdir share/aranym/atari/nfcdrom
+14
View File
@@ -0,0 +1,14 @@
$NetBSD: distinfo,v 1.11 2012/10/06 12:46:12 ryoon Exp $
SHA1 (aranym_0.9.14.orig.tar.gz) = abeff6ba8f5f26e580e072ab42c8c1b76cbdc67d
RMD160 (aranym_0.9.14.orig.tar.gz) = c2a30a432b1c5938baa760cb6aa3a90be43ed4fb
Size (aranym_0.9.14.orig.tar.gz) = 1831715 bytes
SHA1 (emutos-512k-0.8.7.zip) = 940bd41f5ef2e34d39bb154633f3f1bbbfb088a9
RMD160 (emutos-512k-0.8.7.zip) = c8a1273eff9011bc5801d0f580379c59482946e7
Size (emutos-512k-0.8.7.zip) = 254887 bytes
SHA1 (patch-ab) = 8796751780cc559acd089298f3e8a0918d36db3a
SHA1 (patch-ac) = 8899894456b01c84efd9f96f553750c87df7c21a
SHA1 (patch-ad) = bb8d6b2ecd0c0066f3032a0ef196a1adb51d1786
SHA1 (patch-ae) = 6c7ab7cf17bb9da5944c9a09474079bcfe7e7f43
SHA1 (patch-configure.ac) = f04e65242c57b0efc7c300118341efa86994e37f
SHA1 (patch-src_uae__cpu_fpu_fpu__mpfr.cpp) = c492c198a746d62470112b7a7367692d47e16b61
+13
View File
@@ -0,0 +1,13 @@
# $NetBSD: options.mk,v 1.1 2008/07/30 14:08:59 hauke Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.aranym
PKG_SUPPORTED_OPTIONS= opengl
.include "../../mk/bsd.options.mk"
.if !empty(PKG_OPTIONS:Mopengl)
CONFIGURE_ARGS+= --enable-opengl
.include "../../graphics/Mesa/buildlink3.mk"
.else
CONFIGURE_ARGS+= --disable-opengl
.endif
+10
View File
@@ -0,0 +1,10 @@
$NetBSD: patch-ab,v 1.2 2008/07/30 14:08:59 hauke Exp $
--- tools/arabridge.orig 2006-02-11 10:46:41.000000000 +0100
+++ tools/arabridge
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
# ARAnyM - bridging network
# STanda (c) 2004
+15
View File
@@ -0,0 +1,15 @@
$NetBSD: patch-ac,v 1.3 2010/07/08 11:28:05 obache Exp $
--- Makefile.in.orig 2010-05-27 18:40:47.000000000 +0000
+++ Makefile.in
@@ -239,8 +239,8 @@ $(APP_BUNDLE): $(APP)
install: $(APP) $(TAPIF) doc/$(APP).1 doc/$(APP)-jit.1 doc/$(APP)-mmu.1 doc/$(APP_IFC).1 installdirs
$(INSTALL_PROGRAM) $(APP) $(DESTDIR)$(bindir)/$(APP)
if [ "x$(APP_IFC)" = "x$(TAPIF)" ]; then \
- $(INSTALL_PROGRAM) $(APP_IFC) $(DESTDIR)$(bindir)/$(APP_IFC);\
- $(INSTALL_DATA) doc/$(APP_IFC).1 $(DESTDIR)$(man1dir)/$(APP_IFC).1 ;\
+ $(INSTALL_PROGRAM) $(APP_IFC) $(DESTDIR)$(bindir)/$(APP_IFC); \
+ $(INSTALL_DATA) doc/$(APP_IFC).1 $(DESTDIR)$(man1dir)/$(APP_IFC).1; \
fi
$(INSTALL_DATA) doc/$(APP).1 $(DESTDIR)$(man1dir)/$(APP).1
$(INSTALL_DATA) doc/$(APP)-jit.1 $(DESTDIR)$(man1dir)/$(APP)-jit.1
+20
View File
@@ -0,0 +1,20 @@
$NetBSD: patch-ad,v 1.1 2008/08/07 16:19:34 hauke Exp $
--- doc/config.orig 2008-01-26 12:01:41.000000000 +0100
+++ doc/config
@@ -5,13 +5,13 @@
FastRAM = 0
# Atari floppy device (GEMDOS A:) is mapped to host floppy block device
-Floppy = /dev/fd0
+Floppy = /dev/fd0a
# location of TOS 4.04 ROM image (full path)
TOS = /usr/local/share/aranym/ROM
# location of EmuTOS (full path)
-EmuTOS =
+EmuTOS = /usr/local/share/aranym/etos512k.img
# location of FreeMiNT kernel (full path)
Bootstrap =
+22
View File
@@ -0,0 +1,22 @@
$NetBSD: patch-ae,v 1.1 2010/07/08 11:28:05 obache Exp $
--- src/Unix/darwin/aratapif.sh.orig 2008-02-05 21:37:06.000000000 +0000
+++ src/Unix/darwin/aratapif.sh
@@ -25,7 +25,7 @@ DNSFWNATD_PORT=8669
DNSFW_RULENUM=00100
IPFW_RULENUM=00200
-if [ "$FW_INTERFACE" == "" ]
+if [ "$FW_INTERFACE" = "" ]
then
ifconfig -u -a inet >/tmp/ifchk 2>/dev/null
@@ -51,7 +51,7 @@ then
echo $FW_INTERFACE - $ADDR
fi
-if [ "$NAMESERVER" == "" ]
+if [ "$NAMESERVER" = "" ]
then
while read -r line
do
@@ -0,0 +1,52 @@
$NetBSD: patch-configure.ac,v 1.2 2012/10/06 12:46:12 ryoon Exp $
--- configure.ac.orig 2012-07-27 18:51:58.000000000 +0000
+++ configure.ac
@@ -277,10 +277,13 @@ AC_CHECK_HEADERS(termios.h termio.h allo
AC_CHECK_HEADERS(sys/types.h sys/stat.h sys/vfs.h utime.h sys/param.h)
AC_CHECK_HEADERS(sys/mount.h types.h stat.h)
AC_CHECK_HEADERS(sys/socket.h)
-AC_CHECK_HEADERS(linux/if.h linux/if_tun.h net/if.h net/if_tun.h, [], [], [
+AC_CHECK_HEADERS(linux/if.h linux/if_tun.h net/if.h net/if_tun.h net/if_tap.h, [], [], [
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
+#ifdef HAVE_SYS_TYPES_H
+#include <sys/types.h>
+#endif
])
AC_CHECK_HEADERS(net/bpf.h)
@@ -437,8 +440,14 @@ AC_CACHE_CHECK([whether TUN/TAP is suppo
#include <linux/if_tun.h>
#endif
#if defined(HAVE_NET_IF_H) && defined(HAVE_NET_IF_TUN_H)
+ #ifdef HAVE_SYS_TYPES_H
+ #include <sys/types.h>
+ #endif
#include <net/if.h>
#include <net/if_tun.h>
+ #if defined(HAVE_NET_IF_TAP_H)
+ #include <net/if_tap.h>
+ #endif
#endif
], [
struct ifreq ifr;
@@ -1032,7 +1041,7 @@ if [[ "x$WANT_EXSIGSEGV" = "xyes" ]]; th
AC_MSG_ERROR([Sorry, extended segfault handler not supported on your platform])
fi
;;
- freebsd*|kfreebsd*-gnu)
+ freebsd*|dragonfly*|kfreebsd*-gnu)
if [[ "x$HAVE_I386" = "xyes" ]]; then
SYSSRCS="$SYSSRCS Unix/xbsd/sigsegv_xbsd.cpp"
else
@@ -1437,7 +1446,7 @@ fi
dnl Check for SDL
SDL_CFLAGS=
SDL_LIBS=
-if test "x$OS_TYPE" == "xdarwin" -a "x$WITH_FINK" = "xno"; then
+if test "x$OS_TYPE" = "xdarwin" -a "x$WITH_FINK" = "xno"; then
ARANYM_CHECK_FRAMEWORK(SDL, [])
fi
if test "x$have_framework_SDL" = "xyes" ; then
@@ -0,0 +1,17 @@
$NetBSD: patch-src_uae__cpu_fpu_fpu__mpfr.cpp,v 1.1 2012/09/28 16:30:16 ryoon Exp $
On NetBSD, MPFR_USE_INTMAX_T is not defined in mpfr.h.
On ather platform (Gentoo Linux and DragonFly at least),
MPFR_USE_INTMAX_T is defined.
--- src/uae_cpu/fpu/fpu_mpfr.cpp.orig 2012-03-20 16:48:10.000000000 +0000
+++ src/uae_cpu/fpu/fpu_mpfr.cpp
@@ -18,6 +18,8 @@
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
+#define MPFR_USE_INTMAX_T 1
+
#include "sysdeps.h"
#include <cstdio>
#include "memory.h"
+2
View File
@@ -0,0 +1,2 @@
This package is Dave Gilbert's Acorn Archimedes emulator. Included
is a Linux Boot ROM image and a Linux Hard Drive image.
+16
View File
@@ -0,0 +1,16 @@
===========================================================================
$NetBSD: MESSAGE,v 1.4 2004/12/03 15:15:23 skrll Exp $
When you run arcem, you need to be in a directory containing the
arcem files and the ROM file. The distribution is supplied with the
Linux ROM and Hard Drive files from Dave Gilbert's site. The hard drive
file needs to be writable by you. For example:
$ mkdir ~/Archimedes
$ cp ${PREFIX}/share/arcem/* ~/Archimedes
$ cp ~/Archimedes/dot.arcemrc ~/.arcemrc
$ cd ~/Archimedes
$ chmod +w HardImage1
$ arcem
===========================================================================
+49
View File
@@ -0,0 +1,49 @@
# $NetBSD: Makefile,v 1.22 2012/10/23 10:24:03 wiz Exp $
#
DISTNAME= arcem-1.00-src
PKGNAME= ${DISTNAME:S/-src//}
PKGREVISION= 2
CATEGORIES= emulators
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=arcem/}
NOT_FOR_PLATFORM+= ${LP64PLATFORMS}
EXTRACT_SUFX= .tgz
LINUX_FILES= \
linux.rom.gz \
HardImage1.gz
.for f in ${LINUX_FILES}
SITES.${f}+= \
ftp://ftp.arm.uk.linux.org/pub/linux/arcem/
.endfor
DISTFILES= ${DISTNAME}${EXTRACT_SUFX} ${LINUX_FILES}
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://arcem.sourceforge.net/
COMMENT= Dave Gilbert's Acorn Archimedes emulator
WRKSRC= ${WRKDIR}/arcem
USE_TOOLS+= gmake
MAKE_ENV+= SYSTEM=X
INSTALLATION_DIRS+= bin share/arcem
BUILDLINK_TRANSFORM+= rm:-Werror
post-install:
${INSTALL_DATA} ${WRKDIR}/linux.rom \
${DESTDIR}${PREFIX}/share/arcem/ROM
${INSTALL_DATA} ${WRKDIR}/HardImage1 \
${DESTDIR}${PREFIX}/share/arcem/HardImage1
${INSTALL_DATA} ${FILESDIR}/dot.arcemrc \
${DESTDIR}${PREFIX}/share/arcem/dot.arcemrc
${INSTALL_DATA} ${WRKSRC}/hexcmos \
${DESTDIR}${PREFIX}/share/arcem/hexcmos
.include "../../x11/libXext/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"

Some files were not shown because too many files have changed in this diff Show More