ports/154680: [PATCH] games/odamex add support for midi

aldis@bsdroot.lv Aldis.Berjoza at FreeBSD.org
Fri Feb 11 12:10:10 UTC 2011


>Number:         154680
>Category:       ports
>Synopsis:       [PATCH] games/odamex add support for midi
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Fri Feb 11 12:10:09 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator:     aldis at bsdroot.lv
>Release:        
>Organization:
>Environment:
>Description:
games/odamex doesn't play music. I found out, that if you install audio/timidity it will play music.

I attached patch for port, that allows adding optional dependency on audio/timidity.


Right now I don't know why, but this doesn't work with timidity++
>How-To-Repeat:

>Fix:


Patch attached with submission follows:

diff -u odamex.bak/Makefile odamex/Makefile
--- odamex.bak/Makefile	2011-02-11 12:40:22.928345082 +0200
+++ odamex/Makefile	2011-02-11 13:54:51.901435237 +0200
@@ -7,7 +7,7 @@
 
 PORTNAME=	odamex
 PORTVERSION=	0.4.3
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	games
 MASTER_SITES=	SF/${PORTNAME}/Odamex/${PORTVERSION}
 DISTNAME=	odamex-src-${PORTVERSION}
@@ -19,7 +19,8 @@
 USE_GMAKE=	yes
 USE_SDL=	sdl mixer
 
-OPTIONS=	LAUNCHER "Enable GUI launcher program" off
+OPTIONS=	LAUNCHER "Enable GUI launcher program" off \
+		MIDI	 "Enable MIDI support (timidity)" off
 
 .include <bsd.port.pre.mk>
 
@@ -31,6 +32,10 @@
 PLIST_SUB+=	LAUNCHER="@comment "
 .endif
 
+.if defined(WITH_MIDI)
+RUN_DEPENDS+=	timidity:${PORTSDIR}/audio/timidity
+.endif
+
 post-patch:
 	@${REINPLACE_CMD} -e 's|%%DMDIR%%|${DMDIR}|; \
 		s|%%DATADIR%%|${DATADIR}|' \
Common subdirectories: odamex.bak/files and odamex/files


>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list