Subject: pkg/20872: SDL-mixer's MIDI support doesn't work
To: None <gnats-bugs@gnats.netbsd.org>
From: None <soren@blef.org>
List: netbsd-bugs
Date: 03/24/2003 01:06:12
>Number: 20872
>Category: pkg
>Synopsis: SDL-mixer's MIDI support doesn't work
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: pkg-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Mon Mar 24 01:07:00 PST 2003
>Closed-Date:
>Last-Modified:
>Originator: Soren Jacobsen
>Release: NetBSD 1.6_STABLE
>Organization:
>Environment:
System: NetBSD bob 1.6_STABLE NetBSD 1.6_STABLE (BLEF) #0: Tue Dec 17 14:28:31 PST 2002 soren@bob:/usr/src/sys/arch/i386/compile/BLEF i386
Architecture: i386
Machine: i386
>Description:
SDL-mixer builds a stripped down version of timidity to play MIDI files. The
build won't set the path to timidity.cfg properly, so MIDI playback will be
non-functional.
I am aware that there is a new version of SDL-mixer available, but I ran
into crtend.o problems, so for the time being, this will have to do. That
is, unless, someone else wants to make SDL_mixer-1.2.5 work ;)
>How-To-Repeat:
Try playing prboom, and notice the timidity.cfg error messages.
>Fix:
Apply this patch:
Index: Makefile
===================================================================
RCS file: /cvsroot/pkgsrc/audio/SDL-mixer/Makefile,v
retrieving revision 1.4
diff -b -u -r1.4 Makefile
--- Makefile 2002/10/13 20:04:43 1.4
+++ Makefile 2003/03/24 08:53:40
@@ -3,6 +3,7 @@
DISTNAME= SDL_mixer-1.2.4
PKGNAME= ${DISTNAME:S/_/-/}
+PKGREVISION= 1
CATEGORIES= audio
MASTER_SITES= http://www.libsdl.org/projects/SDL_mixer/release/
@@ -19,6 +20,11 @@
BUILDLINK_DEPENDS.SDL= SDL>=1.2.2
CPPFLAGS+= -Dunix=1
+
+post-configure:
+ ${SED} -e "s|@PREFIX@|${PREFIX}|" ${WRKSRC}/timidity/config.h \
+ > ${WRKSRC}/timidity/config.h.patched
+ ${MV} ${WRKSRC}/timidity/config.h.patched ${WRKSRC}/timidity/config.h
.include "../../audio/libogg/buildlink2.mk"
.include "../../devel/gettext-lib/buildlink2.mk"
Index: distinfo
===================================================================
RCS file: /cvsroot/pkgsrc/audio/SDL-mixer/distinfo,v
retrieving revision 1.2
diff -b -u -r1.2 distinfo
--- distinfo 2002/10/13 20:04:43 1.2
+++ distinfo 2003/03/24 08:53:40
@@ -2,3 +2,4 @@
SHA1 (SDL_mixer-1.2.4.tar.gz) = 96c4d173382d3eaefa3a837c388d5f50f34a7d11
Size (SDL_mixer-1.2.4.tar.gz) = 955542 bytes
+SHA1 (patch-aa) = dc8f4f72e347caaa3c470b3757dd124850ff3059
Make a patches directory, and add patch-aa:
$NetBSD$
--- timidity/config.h.orig Mon Mar 24 00:04:57 2003
+++ timidity/config.h Mon Mar 24 00:06:06 2003
@@ -206,7 +206,7 @@
/* You could specify a complete path, e.g. "/etc/timidity.cfg", and
then specify the library directory in the configuration file. */
-#define CONFIG_FILE "timidity.cfg"
+#define CONFIG_FILE "@PREFIX@/share/timidity/timidity.cfg"
#ifdef __WIN32__
#define DEFAULT_PATH "\\TIMIDITY"
#else
>Release-Note:
>Audit-Trail:
>Unformatted: