ports/176366: [patch] multimedia/ffmpeg1 Add an option for libopus
Alexander Kojevnikov
alexander at kojevnikov.com
Sat Feb 23 05:30:01 UTC 2013
>Number: 176366
>Category: ports
>Synopsis: [patch] multimedia/ffmpeg1 Add an option for libopus
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: update
>Submitter-Id: current-users
>Arrival-Date: Sat Feb 23 05:30:00 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator: Alexander Kojevnikov
>Release: 9.1-RELEASE
>Organization:
>Environment:
FreeBSD alex-desktop 9.1-RELEASE FreeBSD 9.1-RELEASE #0 r243825: Tue Dec 4 09:23:10 UTC 2012 root at farrell.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC amd64
>Description:
Attached patch adds an option to multimedia/ffmpeg1 to compile with libopus decoding support.
Opus is a new audio codec from IETF and Xiph:
* http://en.wikipedia.org/wiki/Opus_(audio_format)
* http://opus-codec.org/
>How-To-Repeat:
>Fix:
Patch attached with submission follows:
diff --git a/Makefile b/Makefile
index b8b4251..a354f7a 100644
--- a/Makefile
+++ b/Makefile
@@ -38,7 +38,7 @@ USE_PKGCONFIG= build
OPTIONS_DEFINE= AACPLUS ALSA AMR_NB AMR_WB ASS CDIO CELT DEBUG FAAC \
FDK_AAC FFSERVER FONTCONFIG FREETYPE FREI0R GNUTLS GSM LAME \
LIBBLURAY LIBV4L MODPLUG OPENAL OPENCV OPENJPEG OPENSSL \
- OPTIMIZED_CFLAGS PULSEAUDIO RTMP SCHROEDINGER SDL SPEEX \
+ OPTIMIZED_CFLAGS OPUS PULSEAUDIO RTMP SCHROEDINGER SDL SPEEX \
THEORA VAAPI VDPAU VO_AACENC VO_AMRWBENC VORBIS VPX \
X11GRAB X264 XVID
@@ -52,6 +52,7 @@ FFSERVER_DESC= Build and install ffserver
LIBV4L_DESC= Video for Linux support
MODPLUG_DESC= Mod support via libmodplug
OPENAL_DESC= OpenAL 1.1 capture support
+OPUS_DESC= Opus decoding with libopus
X11GRAB_DESC= Enable x11 grabbing
FFPROGS= ffmpeg ffprobe
@@ -329,6 +330,14 @@ CONFIGURE_ARGS+= --enable-libopenjpeg
CONFIGURE_ARGS+= --disable-libopenjpeg
.endif
+# opus
+.if ${PORT_OPTIONS:MOPUS}
+LIB_DEPENDS+= opus:${PORTSDIR}/audio/opus
+CONFIGURE_ARGS+= --enable-libopus
+.else
+CONFIGURE_ARGS+= --disable-libopus
+.endif
+
# pulseaudio
.if ${PORT_OPTIONS:MPULSEAUDIO}
LIB_DEPENDS+= pulse:${PORTSDIR}/audio/pulseaudio
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list