ports/117306: [PATCH] games/scummvm: add FLAC and FluidSynth support

Dmitry Marakasov amdmi3 at amdmi3.ru
Thu Oct 18 17:30:02 UTC 2007


>Number:         117306
>Category:       ports
>Synopsis:       [PATCH] games/scummvm: add FLAC and FluidSynth 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:   Thu Oct 18 17:30:01 UTC 2007
>Closed-Date:
>Last-Modified:
>Originator:     Dmitry Marakasov
>Release:        FreeBSD 6.1-RELEASE-p12 i386
>Organization:
>Environment:
System: FreeBSD hades.panopticon 6.1-RELEASE-p12 FreeBSD 6.1-RELEASE-p12 #0: Tue Jan 16 23:12:21 MSK 2007 amdmi3 at hades.panopticon:/usr/obj/usr/src/sys/HADES i386


>Description:
- Add FluidSynth support (provides much better MIDI quality than default Adlib emulation)
- Also add FLAC support for consistence
- Add --disable-tremor (configure's tremor detection may potentially cause hidden dependency)
>How-To-Repeat:
>Fix:

--- scummvm.patch begins here ---
diff -ruN scummvm.orig/Makefile scummvm/Makefile
--- scummvm.orig/Makefile	Thu Oct 18 19:33:57 2007
+++ scummvm/Makefile	Thu Oct 18 21:19:41 2007
@@ -7,6 +7,7 @@
 
 PORTNAME=	scummvm
 PORTVERSION=	0.10.0a
+PORTREVISION=	1
 CATEGORIES=	games emulators
 MASTER_SITES=	SF
 
@@ -21,12 +22,15 @@
 CONFIGURE_ARGS=--with-sdl-prefix=${LOCALBASE} \
 		--disable-alsa \
 		--with-zlib-prefix=/usr \
-		--disable-debug
+		--disable-debug \
+		--disable-tremor
 CONFIGURE_ENV=	CXX="${CXX}"
 
 OPTIONS=	VORBIS "Enable Ogg Vorbis support" off \
 		MAD "Enable mad (MP3) support" on \
-		MPEG2 "Enable MPEG2 support (implies VORBIS)" off
+		MPEG2 "Enable MPEG2 support (implies VORBIS)" off \
+		FLAC "Enable FLAC support" off \
+		FLUIDSYNTH "Enable FluidSynth MIDI synthesizer" off
 
 MAN6=		scummvm.6
 
@@ -63,8 +67,23 @@
 CONFIGURE_ARGS+=--disable-mpeg2
 .endif
 
+.if defined(WITH_FLAC)
+LIB_DEPENDS+=	FLAC.7:${PORTSDIR}/audio/flac
+CONFIGURE_ARGS+=--with-flac-prefix=${LOCALBASE}
+.else
+CONFIGURE_ARGS+=--disable-flac
+.endif
+
+.if defined(WITH_FLUIDSYNTH)
+LIB_DEPENDS+=	fluidsynth.2:${PORTSDIR}/audio/fluidsynth
+CONFIGURE_ARGS+=--with-fluidsynth-prefix=${LOCALBASE}
+.else
+CONFIGURE_ARGS+=--disable-fluidsynth
+.endif
+
 post-patch:
 	@${REINPLACE_CMD} -e 's/-O//' ${WRKSRC}/Makefile
+	@${REINPLACE_CMD} -e 's/-lfluidsynth/& -pthread/' ${WRKSRC}/configure
 
 do-install:
 	@${INSTALL_PROGRAM} ${WRKSRC}/scummvm ${PREFIX}/bin
--- scummvm.patch ends here ---

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



More information about the freebsd-ports-bugs mailing list