diff options
author | mva <mva@FreeBSD.org> | 2012-03-15 04:02:08 +0800 |
---|---|---|
committer | mva <mva@FreeBSD.org> | 2012-03-15 04:02:08 +0800 |
commit | a47a470e7469a296dfb8b06465b401d651734eb0 (patch) | |
tree | 95276ee64f647538ec479e914e3e2096c43c78e6 /devel | |
parent | c34a28c2bd85402a078b5fd53a32cf03f038d106 (diff) | |
download | freebsd-ports-gnome-a47a470e7469a296dfb8b06465b401d651734eb0.tar.gz freebsd-ports-gnome-a47a470e7469a296dfb8b06465b401d651734eb0.tar.zst freebsd-ports-gnome-a47a470e7469a296dfb8b06465b401d651734eb0.zip |
Fix CDROM device names on the current FreeBSD releases
PR: ports/165853
Submitted by: gahr@
Feature safe: yes
Diffstat (limited to 'devel')
-rw-r--r-- | devel/sdl12/Makefile | 1 | ||||
-rw-r--r-- | devel/sdl12/files/patch-src_cdrom_freebsd_SDL_syscdrom.c | 11 |
2 files changed, 12 insertions, 0 deletions
diff --git a/devel/sdl12/Makefile b/devel/sdl12/Makefile index 6c5115669dd7..922dc93c0aaa 100644 --- a/devel/sdl12/Makefile +++ b/devel/sdl12/Makefile @@ -8,6 +8,7 @@ PORTNAME= sdl PORTVERSION= 1.2.15 PORTEPOCH= 2 +PORTREVISION= 1 CATEGORIES= devel MASTER_SITES= http://www.libsdl.org/release/ DISTNAME= SDL-${PORTVERSION} diff --git a/devel/sdl12/files/patch-src_cdrom_freebsd_SDL_syscdrom.c b/devel/sdl12/files/patch-src_cdrom_freebsd_SDL_syscdrom.c new file mode 100644 index 000000000000..79a1074f1634 --- /dev/null +++ b/devel/sdl12/files/patch-src_cdrom_freebsd_SDL_syscdrom.c @@ -0,0 +1,11 @@ +--- src/cdrom/freebsd/SDL_syscdrom.c.orig 2012-03-14 08:36:58.000000000 +0100 ++++ src/cdrom/freebsd/SDL_syscdrom.c 2012-03-14 08:36:11.000000000 +0100 +@@ -188,7 +188,7 @@ + char *insert; + exists = 1; + for ( j=checklist[i][1]; exists; ++j ) { +- SDL_snprintf(drive, SDL_arraysize(drive), "/dev/%sc", &checklist[i][3]); ++ SDL_snprintf(drive, SDL_arraysize(drive), "/dev/%s", &checklist[i][3]); + insert = SDL_strchr(drive, '?'); + if ( insert != NULL ) { + *insert = j; |