aboutsummaryrefslogtreecommitdiffstats
path: root/audio
diff options
context:
space:
mode:
authormva <mva@FreeBSD.org>2012-12-28 19:22:48 +0800
committermva <mva@FreeBSD.org>2012-12-28 19:22:48 +0800
commit9f9c66f8962f59fd45e82ec2a0956018c5d0c21a (patch)
tree2dc9160ffad49c454f8a40b60902408d473302e5 /audio
parentf29cd52be68ff281513b36d57faf2f2b55b38f07 (diff)
downloadfreebsd-ports-gnome-9f9c66f8962f59fd45e82ec2a0956018c5d0c21a.tar.gz
freebsd-ports-gnome-9f9c66f8962f59fd45e82ec2a0956018c5d0c21a.tar.zst
freebsd-ports-gnome-9f9c66f8962f59fd45e82ec2a0956018c5d0c21a.zip
- Fix MIDI support
- Trim Makefile headers PR: ports/174098 Submitted by: Green Dog <fiziologus@gmail.com>
Diffstat (limited to 'audio')
-rw-r--r--audio/sdl_sound/Makefile11
-rw-r--r--audio/sdl_sound/files/patch-decoders-timidity-options.h11
2 files changed, 16 insertions, 6 deletions
diff --git a/audio/sdl_sound/Makefile b/audio/sdl_sound/Makefile
index 69a11f5a0492..493e5e69b5f3 100644
--- a/audio/sdl_sound/Makefile
+++ b/audio/sdl_sound/Makefile
@@ -1,13 +1,9 @@
-# New ports collection makefile for: sdl_sound
-# Date created: 6 Feb 2003
-# Whom: David Yeske <dyeske@gmail.com>
-#
+# Created by: David Yeske <dyeske@gmail.com>
# $FreeBSD$
-#
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/
@@ -88,4 +84,7 @@ pre-everything::
@${ECHO_CMD}
.endif
+post-patch:
+ @${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|' ${WRKSRC}/decoders/timidity/options.h
+
.include <bsd.port.post.mk>
diff --git a/audio/sdl_sound/files/patch-decoders-timidity-options.h b/audio/sdl_sound/files/patch-decoders-timidity-options.h
new file mode 100644
index 000000000000..a803cf2e21e9
--- /dev/null
+++ b/audio/sdl_sound/files/patch-decoders-timidity-options.h
@@ -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