Bug 176366 - [patch] multimedia/ffmpeg1 Add an option for libopus
Summary: [patch] multimedia/ffmpeg1 Add an option for libopus
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Martin Matuska
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-02-23 05:30 UTC by Alexander Kojevnikov
Modified: 2013-02-23 22:39 UTC (History)
0 users

See Also:


Attachments
file.diff (1.16 KB, patch)
2013-02-23 05:30 UTC, Alexander Kojevnikov
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Kojevnikov 2013-02-23 05:30:00 UTC
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/

Fix: Patch attached with submission follows:
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2013-02-23 05:30:08 UTC
Responsible Changed
From-To: freebsd-ports-bugs->mm

Over to maintainer (via the GNATS Auto Assign Tool)
Comment 2 dfilter service freebsd_committer freebsd_triage 2013-02-23 21:44:17 UTC
Author: mm
Date: Sat Feb 23 21:44:09 2013
New Revision: 312853
URL: http://svnweb.freebsd.org/changeset/ports/312853

Log:
  Update multimedia/ffmpeg1 to 1.0.4
  Add optional support for libopus [1]
  
  PR:		ports/176366 [1]
  Submitted by:	Alexander Kojevnikov <alexander_at_kojevnikov_dot_com> [1]

Modified:
  head/multimedia/ffmpeg1/Makefile
  head/multimedia/ffmpeg1/distinfo
  head/multimedia/ffmpeg1/files/patch-configure

Modified: head/multimedia/ffmpeg1/Makefile
==============================================================================
--- head/multimedia/ffmpeg1/Makefile	Sat Feb 23 21:42:53 2013	(r312852)
+++ head/multimedia/ffmpeg1/Makefile	Sat Feb 23 21:44:09 2013	(r312853)
@@ -6,8 +6,7 @@
 #
 
 PORTNAME=	ffmpeg
-PORTVERSION=	1.0.1
-PORTREVISION=	1
+PORTVERSION=	1.0.4
 CATEGORIES=	multimedia audio ipv6 net
 MASTER_SITES=	http://ffmpeg.org/releases/
 PKGNAMESUFFIX=	1
@@ -38,7 +37,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 +51,7 @@ FFSERVER_DESC=	Build and install ffserve
 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 +329,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

Modified: head/multimedia/ffmpeg1/distinfo
==============================================================================
--- head/multimedia/ffmpeg1/distinfo	Sat Feb 23 21:42:53 2013	(r312852)
+++ head/multimedia/ffmpeg1/distinfo	Sat Feb 23 21:44:09 2013	(r312853)
@@ -1,2 +1,2 @@
-SHA256 (ffmpeg-1.0.1.tar.bz2) = 758840dcfc94eb7fd6263718d26408658a59422e5fb8ac4de8e7ecf0cbed6e76
-SIZE (ffmpeg-1.0.1.tar.bz2) = 6446587
+SHA256 (ffmpeg-1.0.4.tar.bz2) = 15f46524195b2c88973585ab29416badd86a92040e96ec38b7df0b4536ba3e53
+SIZE (ffmpeg-1.0.4.tar.bz2) = 6448411

Modified: head/multimedia/ffmpeg1/files/patch-configure
==============================================================================
--- head/multimedia/ffmpeg1/files/patch-configure	Sat Feb 23 21:42:53 2013	(r312852)
+++ head/multimedia/ffmpeg1/files/patch-configure	Sat Feb 23 21:44:09 2013	(r312853)
@@ -1,6 +1,6 @@
---- configure.orig	2012-09-28 03:37:35.000000000 +0200
-+++ configure	2012-10-12 21:36:17.611237650 +0200
-@@ -2029,7 +2029,7 @@
+--- configure.orig	2013-02-07 01:29:22.000000000 +0100
++++ configure	2013-02-23 22:38:06.946960545 +0100
+@@ -2030,7 +2030,7 @@
  nogas=":"
  
  # machine
@@ -9,22 +9,22 @@
  cpu="generic"
  
  # OS
-@@ -3728,10 +3728,10 @@
+@@ -3729,10 +3729,10 @@
  perl --version > /dev/null 2>&1 && enable perl || disable perl
  pod2man --help > /dev/null 2>&1 && enable pod2man || disable pod2man
  
 -check_header linux/fb.h
 -check_header linux/videodev.h
 -check_header linux/videodev2.h
--check_struct linux/videodev2.h "struct v4l2_frmivalenum" discrete
+-check_code cc linux/videodev2.h "struct v4l2_frmsizeenum vfse; vfse.discrete.width = 0;" && enable_safe struct_v4l2_frmivalenum_discrete
 +#check_header linux/fb.h
 +#check_header linux/videodev.h
 +#check_header linux/videodev2.h
-+#check_struct linux/videodev2.h "struct v4l2_frmivalenum" discrete
++#check_code cc linux/videodev2.h "struct v4l2_frmsizeenum vfse; vfse.discrete.width = 0;" && enable_safe struct_v4l2_frmivalenum_discrete
  
  check_header sys/videoio.h
  
-@@ -4121,7 +4121,7 @@
+@@ -4122,7 +4122,7 @@
  SRC_PATH:=\$(SRC_PATH:.%=..%)
  endif
  CC_IDENT=$cc_ident
@@ -33,7 +33,7 @@
  CC=$cc
  CXX=$cxx
  AS=$as
-@@ -4324,13 +4324,13 @@
+@@ -4325,13 +4325,13 @@
      requires=$5
      enabled ${name#lib} || return 0
      mkdir -p $name
@@ -49,7 +49,7 @@
  Description: $comment
  Version: $version
  Requires: $(enabled shared || echo $requires)
-@@ -4344,10 +4344,10 @@
+@@ -4345,10 +4345,10 @@
  mkdir -p doc/examples/pc-uninstalled
  includedir=${source_path}
  [ "$includedir" = . ] && includedir="\${pcfiledir}/../../.."
@@ -62,7 +62,7 @@
  includedir=${includedir}
  
  Name: $name
-@@ -4361,25 +4361,25 @@
+@@ -4362,25 +4362,25 @@
  }
  
  libavfilter_pc_deps=""
_______________________________________________
svn-ports-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-ports-all
To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"
Comment 3 Martin Matuska freebsd_committer freebsd_triage 2013-02-23 22:39:30 UTC
State Changed
From-To: open->closed

Committed. Thanks!