diff options
author | cvs <cvs@pkgsrc.org> | 2007-03-23 19:00:19 +0000 |
---|---|---|
committer | cvs <cvs@pkgsrc.org> | 2007-03-23 19:00:19 +0000 |
commit | da1b24d6fdfe442753c8272da5432c8fcaa1f43c (patch) | |
tree | 8c7c348db30abadfdc6b77822405d9ffe7b79103 /emulators/gnuboy-sdl | |
parent | da5bb3f20f33565c1db65018aabd8cf59023cfef (diff) | |
download | pkgsrc-jlam-pkgviews.tar.gz |
Creating branch jlam-pkgviewsjlam-pkgviews
Diffstat (limited to 'emulators/gnuboy-sdl')
-rw-r--r-- | emulators/gnuboy-sdl/DESCR | 2 | ||||
-rw-r--r-- | emulators/gnuboy-sdl/Makefile | 27 | ||||
-rw-r--r-- | emulators/gnuboy-sdl/PLIST | 14 | ||||
-rw-r--r-- | emulators/gnuboy-sdl/distinfo | 6 | ||||
-rw-r--r-- | emulators/gnuboy-sdl/patches/patch-aa | 70 |
5 files changed, 0 insertions, 119 deletions
diff --git a/emulators/gnuboy-sdl/DESCR b/emulators/gnuboy-sdl/DESCR deleted file mode 100644 index 1da77948b17..00000000000 --- a/emulators/gnuboy-sdl/DESCR +++ /dev/null @@ -1,2 +0,0 @@ -Gnuboy is a portable program for emulating the Nintendo GameBoy Color -software platform. This is the SDL port, with joystick support. diff --git a/emulators/gnuboy-sdl/Makefile b/emulators/gnuboy-sdl/Makefile deleted file mode 100644 index 459c3a8f9a5..00000000000 --- a/emulators/gnuboy-sdl/Makefile +++ /dev/null @@ -1,27 +0,0 @@ -# $NetBSD: Makefile,v 1.8 2006/06/12 16:28:06 wiz Exp $ - -DISTNAME= gnuboy-1.0.3 -PKGNAME= ${DISTNAME:S/-/-sdl-/} -PKGREVISION= 5 -CATEGORIES= emulators -MASTER_SITES= http://gnuboy.unix-fu.org/src/ - -MAINTAINER= dillo@NetBSD.org -HOMEPAGE= http://gnuboy.unix-fu.org/ -COMMENT= SDL port of Gameboy emulator - -GNU_CONFIGURE= yes -CONFIGURE_ARGS+=--with-sdl - -.include "../../devel/SDL/buildlink3.mk" - -do-install: - ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/gnuboy-sdl - ${INSTALL_DATA_DIR} ${PREFIX}/share/examples/gnuboy-sdl - ${INSTALL_PROGRAM} ${WRKSRC}/sdlgnuboy ${PREFIX}/bin/gnuboy-sdl - ${INSTALL_DATA} ${WRKSRC}/etc/sample.rc \ - ${PREFIX}/share/examples/gnuboy-sdl/ - ${INSTALL_DATA} ${WRKSRC}/README ${WRKSRC}/docs/* \ - ${PREFIX}/share/doc/gnuboy-sdl/ - -.include "../../mk/bsd.pkg.mk" diff --git a/emulators/gnuboy-sdl/PLIST b/emulators/gnuboy-sdl/PLIST deleted file mode 100644 index 973160f1d24..00000000000 --- a/emulators/gnuboy-sdl/PLIST +++ /dev/null @@ -1,14 +0,0 @@ -@comment $NetBSD: PLIST,v 1.1.1.1 2004/07/26 17:05:05 dillo Exp $ -bin/gnuboy-sdl -share/doc/gnuboy-sdl/CHANGES -share/doc/gnuboy-sdl/CONFIG -share/doc/gnuboy-sdl/CREDITS -share/doc/gnuboy-sdl/FAQ -share/doc/gnuboy-sdl/HACKING -share/doc/gnuboy-sdl/LIBERTY -share/doc/gnuboy-sdl/README -share/doc/gnuboy-sdl/README.old -share/doc/gnuboy-sdl/WHATSNEW -share/examples/gnuboy-sdl/sample.rc -@dirrm share/examples/gnuboy-sdl -@dirrm share/doc/gnuboy-sdl diff --git a/emulators/gnuboy-sdl/distinfo b/emulators/gnuboy-sdl/distinfo deleted file mode 100644 index f198141b08d..00000000000 --- a/emulators/gnuboy-sdl/distinfo +++ /dev/null @@ -1,6 +0,0 @@ -$NetBSD: distinfo,v 1.2 2005/02/23 18:49:18 agc Exp $ - -SHA1 (gnuboy-1.0.3.tar.gz) = 4c371445b6599c6636d08ba9c5de7bb9fbf78437 -RMD160 (gnuboy-1.0.3.tar.gz) = dfaf927fe2d4e03f39d83079b7dd3aa02c8983b9 -Size (gnuboy-1.0.3.tar.gz) = 187627 bytes -SHA1 (patch-aa) = 266f39882e2aa3cc3350a6080ecc6e8738c92160 diff --git a/emulators/gnuboy-sdl/patches/patch-aa b/emulators/gnuboy-sdl/patches/patch-aa deleted file mode 100644 index dd114909e6b..00000000000 --- a/emulators/gnuboy-sdl/patches/patch-aa +++ /dev/null @@ -1,70 +0,0 @@ -$NetBSD: patch-aa,v 1.1.1.1 2004/07/26 17:05:05 dillo Exp $ - ---- sys/sdl/sdl.c.orig 2001-09-17 18:40:14.000000000 +0200 -+++ sys/sdl/sdl.c -@@ -441,6 +441,8 @@ static int sound = 1; - static int samplerate = 44100; - static int stereo = 1; - static volatile int audio_done; -+static SDL_sem *pcm_rsem, *pcm_wsem; -+static int atexit_done = 0; - - rcvar_t pcm_exports[] = - { -@@ -453,8 +455,16 @@ rcvar_t pcm_exports[] = - - static void audio_callback(void *blah, byte *stream, int len) - { -+ SDL_SemWait(pcm_rsem); - memcpy(stream, pcm.buf, len); -- audio_done = 1; -+ SDL_SemPost(pcm_wsem); -+} -+ -+ -+static void audio_atexit(void) -+{ -+ if (pcm_wsem) -+ SDL_SemPost(pcm_rsem); - } - - -@@ -466,6 +476,13 @@ void pcm_init() - if (!sound) return; - - SDL_InitSubSystem(SDL_INIT_AUDIO); -+ /* XXX: check for NULL */ -+ pcm_rsem = SDL_CreateSemaphore(0); -+ pcm_wsem = SDL_CreateSemaphore(0); -+ if (!atexit_done) { -+ atexit(audio_atexit); -+ atexit_done = 1; -+ } - as.freq = samplerate; - as.format = AUDIO_U8; - as.channels = 1 + stereo; -@@ -491,16 +508,20 @@ int pcm_submit() - { - if (!pcm.buf) return 0; - if (pcm.pos < pcm.len) return 1; -- while (!audio_done) -- SDL_Delay(4); -- audio_done = 0; -+ SDL_SemPost(pcm_rsem); -+ SDL_SemWait(pcm_wsem); - pcm.pos = 0; - return 1; - } - - void pcm_close() - { -- if (sound) SDL_CloseAudio(); -+ if (sound) { -+ SDL_CloseAudio(); -+ SDL_DestroySemaphore(pcm_rsem); -+ SDL_DestroySemaphore(pcm_wsem); -+ pcm_rsem = pcm_wsem = 0; -+ } - } - - |