Date: Mon, 3 Dec 2012 22:00:05 GMT From: Green Dog <fiziologus@gmail.com> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/174098: [audio/sdl_sound] fix midi support Message-ID: <201212032200.qB3M056s020223@red.freebsd.org> Resent-Message-ID: <201212032210.qB3MA04J081832@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201212032200.qB3M056s020223>