diff options
author | reinoud <reinoud@pkgsrc.org> | 2008-10-13 17:15:44 +0000 |
---|---|---|
committer | reinoud <reinoud@pkgsrc.org> | 2008-10-13 17:15:44 +0000 |
commit | 1199482e9b682b9cb92850c6cd37996bf934a3b8 (patch) | |
tree | 5cc1cae0688b571565ac34d69360bec46ec5a969 /devel | |
parent | c8629a84a6520685d1284cf082a361ba80d8b9fd (diff) | |
download | pkgsrc-1199482e9b682b9cb92850c6cd37996bf934a3b8.tar.gz |
Apply patch to first unlock the CD before trying to eject it. Since SDL
doesn't seem to have lock/unlock primitives, this looks like the right thing
to do.
Fixes audio/tcd's eject function too.
Diffstat (limited to 'devel')
-rw-r--r-- | devel/SDL/Makefile | 4 | ||||
-rw-r--r-- | devel/SDL/distinfo | 3 | ||||
-rw-r--r-- | devel/SDL/patches/patch-ab | 12 |
3 files changed, 16 insertions, 3 deletions
diff --git a/devel/SDL/Makefile b/devel/SDL/Makefile index 07f49194a1b..a766283943b 100644 --- a/devel/SDL/Makefile +++ b/devel/SDL/Makefile @@ -1,7 +1,7 @@ -# $NetBSD: Makefile,v 1.82 2008/05/06 06:36:44 bjs Exp $ +# $NetBSD: Makefile,v 1.83 2008/10/13 17:15:44 reinoud Exp $ DISTNAME= SDL-1.2.13 -PKGREVISION= 1 +PKGREVISION= 2 CATEGORIES= devel games MASTER_SITES= http://www.libsdl.org/release/ diff --git a/devel/SDL/distinfo b/devel/SDL/distinfo index 7e8ce767d3d..f7bab25eb09 100644 --- a/devel/SDL/distinfo +++ b/devel/SDL/distinfo @@ -1,6 +1,7 @@ -$NetBSD: distinfo,v 1.50 2008/01/13 15:57:59 wiz Exp $ +$NetBSD: distinfo,v 1.51 2008/10/13 17:15:44 reinoud Exp $ SHA1 (SDL-1.2.13.tar.gz) = 51fcaa3e1d5c01fd813ea08688780f86b19cf539 RMD160 (SDL-1.2.13.tar.gz) = ed8825fc98f4b3759cf9e5cf8357d71c50df9925 Size (SDL-1.2.13.tar.gz) = 3373673 bytes SHA1 (patch-aa) = 5a3b922c1ad64837d2bc1461723e4f34622b481f +SHA1 (patch-ab) = 344c6b70ee062c576e20d7ff222a6283ba3cb4cb diff --git a/devel/SDL/patches/patch-ab b/devel/SDL/patches/patch-ab new file mode 100644 index 00000000000..d680da5288a --- /dev/null +++ b/devel/SDL/patches/patch-ab @@ -0,0 +1,12 @@ +$NetBSD: patch-ab,v 1.8 2008/10/13 17:15:44 reinoud Exp $ + +--- src/cdrom/openbsd/SDL_syscdrom.c.orig 2007-12-31 05:47:59.000000000 +0100 ++++ src/cdrom/openbsd/SDL_syscdrom.c +@@ -391,6 +391,7 @@ static int SDL_SYS_CDStop(SDL_CD *cdrom) + /* Eject the CD-ROM */ + static int SDL_SYS_CDEject(SDL_CD *cdrom) + { ++ SDL_SYS_CDioctl(cdrom->id, CDIOCALLOW, 0); + return(SDL_SYS_CDioctl(cdrom->id, CDIOCEJECT, 0)); + } + |