head 1.13; access; symbols pkgsrc-2013Q2:1.13.0.8 pkgsrc-2013Q2-base:1.13 pkgsrc-2012Q4:1.13.0.6 pkgsrc-2012Q4-base:1.13 pkgsrc-2011Q4:1.13.0.4 pkgsrc-2011Q4-base:1.13 pkgsrc-2011Q2:1.13.0.2 pkgsrc-2011Q2-base:1.13 pkgsrc-2010Q4:1.12.0.46 pkgsrc-2010Q4-base:1.12 pkgsrc-2010Q3:1.12.0.44 pkgsrc-2010Q3-base:1.12 pkgsrc-2010Q2:1.12.0.42 pkgsrc-2010Q2-base:1.12 pkgsrc-2010Q1:1.12.0.40 pkgsrc-2010Q1-base:1.12 pkgsrc-2009Q4:1.12.0.38 pkgsrc-2009Q4-base:1.12 pkgsrc-2009Q3:1.12.0.36 pkgsrc-2009Q3-base:1.12 pkgsrc-2009Q2:1.12.0.34 pkgsrc-2009Q2-base:1.12 pkgsrc-2009Q1:1.12.0.32 pkgsrc-2009Q1-base:1.12 pkgsrc-2008Q4:1.12.0.30 pkgsrc-2008Q4-base:1.12 pkgsrc-2008Q3:1.12.0.28 pkgsrc-2008Q3-base:1.12 cube-native-xorg:1.12.0.26 cube-native-xorg-base:1.12 pkgsrc-2008Q2:1.12.0.24 pkgsrc-2008Q2-base:1.12 cwrapper:1.12.0.22 pkgsrc-2008Q1:1.12.0.20 pkgsrc-2008Q1-base:1.12 pkgsrc-2007Q4:1.12.0.18 pkgsrc-2007Q4-base:1.12 pkgsrc-2007Q3:1.12.0.16 pkgsrc-2007Q3-base:1.12 pkgsrc-2007Q2:1.12.0.14 pkgsrc-2007Q2-base:1.12 pkgsrc-2007Q1:1.12.0.12 pkgsrc-2007Q1-base:1.12 pkgsrc-2006Q4:1.12.0.10 pkgsrc-2006Q4-base:1.12 pkgsrc-2006Q3:1.12.0.8 pkgsrc-2006Q3-base:1.12 pkgsrc-2006Q2:1.12.0.6 pkgsrc-2006Q2-base:1.12 pkgsrc-2006Q1:1.12.0.4 pkgsrc-2006Q1-base:1.12 pkgsrc-2005Q4:1.12.0.2 pkgsrc-2005Q4-base:1.12 pkgsrc-2005Q3:1.11.0.12 pkgsrc-2005Q3-base:1.11 pkgsrc-2005Q2:1.11.0.10 pkgsrc-2005Q2-base:1.11 pkgsrc-2005Q1:1.11.0.8 pkgsrc-2005Q1-base:1.11 pkgsrc-2004Q4:1.11.0.6 pkgsrc-2004Q4-base:1.11 pkgsrc-2004Q3:1.11.0.4 pkgsrc-2004Q3-base:1.11 pkgsrc-2004Q2:1.11.0.2 pkgsrc-2004Q2-base:1.11 pkgsrc-2004Q1:1.9.0.4 pkgsrc-2004Q1-base:1.9 pkgsrc-2003Q4:1.9.0.2 pkgsrc-2003Q4-base:1.9 buildlink2-base:1.7 netbsd-1-3-PATCH002:1.2; locks; strict; comment @# @; 1.13 date 2011.02.06.05.00.57; author wiz; state dead; branches; next 1.12; 1.12 date 2005.11.17.19.55.55; author joerg; state Exp; branches; next 1.11; 1.11 date 2004.05.16.00.27.30; author kristerw; state dead; branches; next 1.10; 1.10 date 2004.04.16.20.44.54; author kristerw; state Exp; branches; next 1.9; 1.9 date 2002.12.14.14.59.39; author kristerw; state dead; branches; next 1.8; 1.8 date 2002.12.08.13.09.47; author kristerw; state Exp; branches; next 1.7; 1.7 date 2002.03.27.20.44.35; author kristerw; state dead; branches; next 1.6; 1.6 date 2002.01.06.22.09.32; author kristerw; state Exp; branches; next 1.5; 1.5 date 2001.12.04.05.52.23; author jlam; state dead; branches; next 1.4; 1.4 date 2001.11.01.14.45.39; author tron; state Exp; branches; next 1.3; 1.3 date 98.07.04.12.05.07; author mycroft; state dead; branches; next 1.2; 1.2 date 98.03.15.03.13.56; author mycroft; state Exp; branches; next 1.1; 1.1 date 98.02.14.22.06.12; author tron; state Exp; branches; next ; desc @@ 1.13 log @Remove xmame und xmess -- use mame/mess instead. Ok kristerw @ text @$NetBSD: patch-ac,v 1.12 2005/11/17 19:55:55 joerg Exp $ --- src/unix/video-drivers/xf86_dga1.c.orig 2005-11-17 15:56:02.000000000 +0000 +++ src/unix/video-drivers/xf86_dga1.c @@@@ -6,6 +6,7 @@@@ #include #include #include +#include #include #include #include @ 1.12 log @Add DragonFly support. For the DGA drivers, include sys/time.h before sys/resource.h on DragonFly, struct timeval is needed. @ text @d1 1 a1 1 $NetBSD$ @ 1.11 log @Update xmame to 0.82.1. Changes since 0.81.1 include: - Everything from MAME 0.82 (http://x.mame.net/changes-mame.html) and MESS 0.82 (http://x.mame.net/changes-mess.html). - Improved the message that is displayed when a suitable X11 visual cannot be found. Fixes Bugzilla bug 219. (Christopher Stone) - Fixed the most egregious formatting errors in the xmame.6 manpage. (Andre Majorel) @ text @d1 1 a1 1 $NetBSD: patch-ac,v 1.10 2004/04/16 20:44:54 kristerw Exp $ d3 3 a5 4 --- src/romcmp.c.orig Fri Apr 16 22:05:33 2004 +++ src/romcmp.c Fri Apr 16 22:05:49 2004 @@@@ -1,6 +1,7 @@@@ #include d8 5 a12 4 +#include #include "unzip.h" #include "osdepend.h" /* for CLIB_DECL */ #include "fileio.h" @ 1.10 log @Update xmame to 0.81.1. Changes since 0.80.1nb1: - Everything from MAME 0.81 (http://x.mame.net/changes-mame.html) and MESS 0.81 (http://x.mame.net/changes-mess.html). - Fixed a problem with the lightgun offscreen reloading that caused a random shot every fourth or fifth shot. (Joe Inkenbrandt) @ text @d1 1 a1 1 $NetBSD$ @ 1.9 log @Update xmame to 0.62.1 rc3 and bump PKGREVISION to 3. Changes since PKGREVISION 2 include: - All path and directory options in fileio.c now support expansion of environment variables such as $HOME. @ text @d1 12 a12 22 $NetBSD: patch-ac,v 1.8 2002/12/08 13:09:47 kristerw Exp $ --- src/unix/video-drivers/x11.c.orig 2002-12-01 15:12:12.000000000 -0700 +++ src/unix/video-drivers/x11.c 2002-12-07 15:08:56.000000000 -0700 @@@@ -16,9 +16,6 @@@@ #include "input.h" #include "keyboard.h" -#ifdef USE_XV -int use_xv = 0; /* use xv extension if available */ -#endif #ifdef USE_HWSCALE long hwscale_redmask; long hwscale_greenmask; @@@@ -175,7 +172,7 @@@@ return OSD_NOT_OK; } #ifdef USE_HWSCALE - if(use_xv) + if(use_hwscale) { display_palette_info.red_mask = hwscale_redmask; display_palette_info.green_mask = hwscale_greenmask; @ 1.8 log @Fix a bug that caused the display to be truncated for some games. PKGREVISION++ @ text @d1 1 a1 1 $NetBSD$ @ 1.7 log @Update xmame to version 0.59.1. Changes since xmame-0.58.3 include: - Everything from MAME 0.59. - Set some more sensible defaults for the various path settings in fileio.c (e.g., XMAMEROOT/samples for samplepath). - Fixed a segfault in psikyosh games. (David Haywood) @ text @d1 22 a22 60 $NetBSD: patch-ac,v 1.6 2002/01/06 22:09:32 kristerw Exp $ --- src/unix/joystick-drivers/joy_usb.c.orig Wed Jan 2 03:45:55 2002 +++ src/unix/joystick-drivers/joy_usb.c Sun Jan 6 22:17:55 2002 @@@@ -21,7 +21,11 @@@@ #endif #if defined(__ARCH_netbsd) +#ifdef HAVE_USBHID_H +#include +#else #include +#endif #elif defined(__ARCH_freebsd) #include #endif @@@@ -69,7 +73,7 @@@@ static int joy_initialize_hid(int i) { - int size, is_joystick, report_id; + int size, is_joystick, report_id = 0; struct hid_data *d; struct hid_item h; report_desc_t rd; @@@@ -82,7 +86,19 @@@@ priv_joy_data[i].hids = NULL; +#ifdef HAVE_USBHID_H + if (ioctl(joy_data[i].fd, USB_GET_REPORT_ID, &report_id) < 0) + { + fprintf(stderr_file, "error: /dev/uhid%d: %s", i, strerror(errno)); + return FALSE; + } + + size = hid_report_size(rd, hid_input, report_id); + priv_joy_data[i].offset = 0; +#else size = hid_report_size(rd, hid_input, &report_id); + priv_joy_data[i].offset = (report_id != 0); +#endif if ((priv_joy_data[i].data_buf = malloc(size)) == NULL) { fprintf(stderr_file, "error: couldn't malloc %d bytes\n", size); @@@@ -90,10 +106,14 @@@@ return FALSE; } priv_joy_data[i].dlen = size; - priv_joy_data[i].offset = (report_id != 0); is_joystick = 0; +#ifdef HAVE_USBHID_H + for (d = hid_start_parse(rd, 1 << hid_input, report_id); + hid_get_item(d, &h); ) +#else for (d = hid_start_parse(rd, 1 << hid_input); hid_get_item(d, &h); ) +#endif { int axis, usage, page, interesting_hid; @ 1.6 log @Make xmame compile for new systems that have libusbhid.so instead of libusb.so. Noted by Rui-Xiang Guo in a mail to tech-pkg. @ text @d1 1 a1 1 $NetBSD$ @ 1.5 log @* Strongly buildlink'ify. * Reduce the number of patches needed by passing flags down to the make(1) process instead of patching the Makefiles and sources in unnecessary ways. * Remove unnecessary endian.sh script as the computation is down directly in the package Makefile. * Preliminary support for platforms other than NetBSD. * Generalize the package Makefile enough to make it usable if/when xmess compiles again on UNIX platforms * Use the general INSTALL scripts to manage the spool directory during installation/deinstallation. Approved by kristerw@@netbsd.org. @ text @d1 59 a59 11 $NetBSD: patch-ac,v 1.4 2001/11/01 14:45:39 tron Exp $ --- src/unix/unix.mak.orig Thu Nov 1 15:12:47 2001 +++ src/unix/unix.mak Thu Nov 1 15:12:15 2001 @@@@ -202,7 +202,7 @@@@ endif ifdef JOY_USB CONFIG += -DUSB_JOYSTICK -MY_LIBS += -lusb +MY_LIBS += /usr/lib/libusb.so endif a60 1 ifdef EFENCE @ 1.4 log @Fix build problems if the "libusb" package is installed. @ text @d1 1 a1 1 $NetBSD$ @ 1.3 log @Update to 0.33b6.1. @ text @d1 11 a11 26 --- src/unix/netbsd_i386.c.orig Thu Jan 1 20:32:36 1998 +++ src/unix/netbsd_i386.c Wed Mar 11 15:38:04 1998 @@@@ -66,7 +66,6 @@@@ play_sound = FALSE; } else { /* empty buffers before change config */ - ioctl(audio_fd, AUDIO_DRAIN, 0); /* drain everything out */ ioctl(audio_fd, AUDIO_FLUSH, 0); /* flush everything */ /* identify audio device. */ @@@@ -82,15 +81,12 @@@@ AUDIO_INITINFO(&a_info); a_info.play.sample_rate = (uint) audio_sample_freq = AUDIO_SAMPLE_FREQ; - a_info.play.encoding = (uint) AUDIO_ENCODING_LINEAR; + a_info.play.encoding = (uint) AUDIO_ENCODING_ULINEAR; a_info.play.precision = (uint) AUDIO_SAMPLE_BITS; a_info.play.channels = (uint) 1; - a_info.play.port = (uint) 1; - a_info.play.pause = (uint) 0; - a_info.play.gain = (uint) 130; a_info.blocksize = AUDIO_SAMPLE_FREQ / AUDIO_TIMER_FREQ; - a_info.buffersize = AUDIO_BUFF_SIZE; - a_info.mode = AUMODE_PLAY; + a_info.play.buffer_size = AUDIO_BUFF_SIZE; + a_info.mode = AUMODE_PLAY | AUMODE_PLAY_ALL; d13 1 a13 2 if (ioctl(audio_fd, AUDIO_SETINFO, &a_info) < 0) { perror("cannot set audio device parameters"); @ 1.2 log @Clean up the audio setup a bit. @ text @@ 1.1 log @Initial import of "xmame-0.30.1" package based on work by Tim Rightnour. @ text @d1 21 a21 3 --- src/unix/netbsd_i386.c.orig Fri Feb 13 05:40:16 1998 +++ src/unix/netbsd_i386.c Fri Feb 13 05:46:49 1998 @@@@ -96,3 +90,3 @@@@ d24 1 d26 4 a29 1 a_info.mode = AUMODE_PLAY; @