ports/174098: [audio/sdl_sound] fix midi support
Green Dog
fiziologus at gmail.com
Mon Dec 3 22:10:01 UTC 2012
>Number: 174098
>Category: ports
>Synopsis: [audio/sdl_sound] fix midi support
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Mon Dec 03 22:10:00 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator: Green Dog
>Release: FreeBSD-9.0
>Organization:
>Environment:
>Description:
[audio/sdl_sound] fix midi support (location timidity.cfg)
>How-To-Repeat:
>Fix:
Patch attached with submission follows:
diff -ruN sdl_sound.orig/Makefile sdl_sound/Makefile
--- sdl_sound.orig/Makefile 2012-11-30 23:40:07.000000000 +0400
+++ sdl_sound/Makefile 2012-12-04 01:58:41.000000000 +0400
@@ -7,7 +7,7 @@
PORTNAME= sdl_sound
PORTVERSION= 1.0.3
-PORTREVISION= 6
+PORTREVISION= 7
CATEGORIES= audio
MASTER_SITES= http://offload1.icculus.org:9090/SDL_sound/downloads/ \
http://offload2.icculus.org:9090/SDL_sound/downloads/
@@ -83,6 +83,9 @@
CONFIGURE_ARGS+=--disable-ogg
.endif
+post-patch:
+ @${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|' ${WRKSRC}/decoders/timidity/options.h
+
pre-everything::
.if !${PORT_OPTIONS:MSMPEG}
@${ECHO_CMD}
diff -ruN sdl_sound.orig/files/patch-decoders-timidity-options.h sdl_sound/files/patch-decoders-timidity-options.h
--- sdl_sound.orig/files/patch-decoders-timidity-options.h 1970-01-01 03:00:00.000000000 +0300
+++ sdl_sound/files/patch-decoders-timidity-options.h 2012-12-04 01:40:29.000000000 +0400
@@ -0,0 +1,11 @@
+--- decoders/timidity/options.h.orig 2008-04-17 21:56:20.000000000 +0400
++++ decoders/timidity/options.h 2012-12-04 01:38:58.000000000 +0400
+@@ -80,7 +80,7 @@
+ #define MAX_AMPLIFICATION 800
+
+ /* The TiMidity configuration file */
+-#define CONFIG_FILE "timidity.cfg"
++#define CONFIG_FILE "%%PREFIX%%/share/timidity/timidity.cfg"
+
+ /* These affect general volume */
+ #define GUARD_BITS 3
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list