Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 29 Dec 2013 09:31:53 GMT
From:      Yamagi Burmeister <yamagi@yamagi.org>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/185264: [PATCH] Add support for the opus codec to audio/musicpd
Message-ID:  <201312290931.rBT9VrMZ037267@oldred.freebsd.org>
Resent-Message-ID: <201312290940.rBT9e0Qh018672@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         185264
>Category:       ports
>Synopsis:       [PATCH] Add support for the opus codec to audio/musicpd
>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:   Sun Dec 29 09:40:00 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator:     Yamagi Burmeister
>Release:        FreeBSD 10.0-RC3
>Organization:
>Environment:
FreeBSD happy.home.yamagi.org 10.0-RC3 FreeBSD 10.0-RC3 #0 r259944M: Sun Dec 29 00:58:05 CET 2013     root@happy.home.yamagi.org:/usr/obj/usr/src/sys/HAPPY  amd64
>Description:
With version 0.18 musicpd gained support for the Opus / RFC 6716 [1] audio codec. The attached patch adds an new option to enable opus support (enabled by default) to the port and registers a dependency to audio/opus when opus support is enabled. Please note that I didn't bump the port version.

1: http://www.opus-codec.org/
>How-To-Repeat:

>Fix:
Index: Makefile
===================================================================
--- Makefile	(Revision 337843)
+++ Makefile	(Arbeitskopie)
@@ -31,7 +31,7 @@
 SUB_FILES=	pkg-message
 
 OPTIONS_DEFINE=	ID3TAG IPV6 FLAC VORBIS WAV FFMPEG TREMOR AAC \
-		MUSEPACK MIKMOD MODPLUG ARCHIVE MMS AO PULSEAUDIO \
+		MUSEPACK MIKMOD MODPLUG OPUS ARCHIVE MMS AO PULSEAUDIO \
 		JACK SHOUTCAST SNDFILE LAME HTTPD SAMPLERATE SQLITE3
 OPTIONS_RADIO=	ZEROCONF
 OPTIONS_RADIO_ZEROCONF=	AVAHI MDNSRESPONDER
@@ -38,7 +38,7 @@
 
 TREMOR_DESC=	Tremor decoder (not with SHOUTCAST; use VORBIS)
 
-OPTIONS_DEFAULT=ID3TAG IPV6 FLAC VORBIS WAV FFMPEG SNDFILE
+OPTIONS_DEFAULT=ID3TAG IPV6 FLAC VORBIS WAV OPUS FFMPEG SNDFILE
 LAME_DESC=	Support for MP3 Icecast Streams
 
 MPDDIR?=	/var/mpd
@@ -132,6 +132,13 @@
 CONFIGURE_ARGS+=--disable-modplug
 .endif
 
+.if ${PORT_OPTIONS:MOPUS}
+LIB_DEPENDS+=	libopus.so:${PORTSDIR}/audio/opus
+CONFIGURE_ARGS+=--enable-opus
+.else
+CONFIGURE_ARGS+=--disable-opus
+.endif
+
 .if ${PORT_OPTIONS:MARCHIVE}
 CONFIGURE_ARGS+=--enable-bzip2 \
 		--enable-zip \

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201312290931.rBT9VrMZ037267>