Bug 177296

Summary: enable opus plugin in multimedia/gstreamer-plugins-bad
Product: Ports & Packages Reporter: Eric Camachat <eric>
Component: Individual Port(s)Assignee: freebsd-multimedia (Nobody) <multimedia>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
file.diff none

Description Eric Camachat 2013-03-23 03:10:00 UTC
Enable opus plugin support in gstreamer-plugins-bad

Fix: Encode/Decode Opus audio with gstreamer

Patch attached with submission follows:
How-To-Repeat: $ gst-launch filesrc location=audio.mp3 ! mad ! audioconvert ! audioresample ! opusenc ! oggmux ! filesink location=audio.ogg

$ gst-launch filesrc location=audio.ogg ! oggdemux ! opusdec ! audioconvert ! audioresample ! autoaudiosink
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2013-03-23 03:10:07 UTC
Responsible Changed
From-To: freebsd-ports-bugs->freebsd-multimedia

Over to maintainer (via the GNATS Auto Assign Tool)
Comment 2 dfilter service freebsd_committer freebsd_triage 2013-03-23 09:58:16 UTC
Author: kwm
Date: Sat Mar 23 09:58:02 2013
New Revision: 315020
URL: http://svnweb.freebsd.org/changeset/ports/315020

Log:
  Add opus audio codec gstreamer plugin.
  
  PR:		ports/177296
  Submitted by:	"Eric L. Camachat" <eric@camachat.org>

Added:
  head/audio/gstreamer-plugins-opus/
  head/audio/gstreamer-plugins-opus/Makefile   (contents, props changed)
Modified:
  head/Mk/bsd.gstreamer.mk   (contents, props changed)
  head/audio/Makefile
  head/multimedia/gstreamer-plugins/Makefile.common   (contents, props changed)

Modified: head/Mk/bsd.gstreamer.mk
==============================================================================
--- head/Mk/bsd.gstreamer.mk	Sat Mar 23 09:20:25 2013	(r315019)
+++ head/Mk/bsd.gstreamer.mk	Sat Mar 23 09:58:02 2013	(r315020)
@@ -58,7 +58,7 @@ _USE_GSTREAMER10_ALL=	a52dec aalib amrnb
 			ffmpeg flac flite gconf gio gl gme gnomevfs gnonlin \
 			gsm hal jack jpeg ladspa lame libcaca libmms \
 			libpng libvisual mm mp3 mpeg2enc mpeg2dec musepack \
-			nas neon ogg opencv pango pulse python resindvd schroedinger \
+			nas neon ogg opencv opus pango pulse python resindvd schroedinger \
 			sdl shout2 sidplay sndfile spc soundtouch soup \
 			speex taglib theora twolame v4l2 vorbis vdpau \
 			vp8 wavpack x264 xvid
@@ -136,6 +136,8 @@ neon_DEPENDS=	www/gstreamer-plugins-neon
 
 ogg_DEPENDS=	audio/gstreamer-plugins-ogg
 
+opus_DEPENDS=	audio/gstreamer-plugins-opus
+
 polyp_DEPENDS=	audio/gstreamer-plugins-polyp
 
 pulse_DEPENDS=	audio/gstreamer-plugins-pulse

Modified: head/audio/Makefile
==============================================================================
--- head/audio/Makefile	Sat Mar 23 09:20:25 2013	(r315019)
+++ head/audio/Makefile	Sat Mar 23 09:58:02 2013	(r315020)
@@ -278,6 +278,7 @@
     SUBDIR += gstreamer-plugins-mp3
     SUBDIR += gstreamer-plugins-musepack
     SUBDIR += gstreamer-plugins-nas
+    SUBDIR += gstreamer-plugins-opus
     SUBDIR += gstreamer-plugins-ogg
     SUBDIR += gstreamer-plugins-pulse
     SUBDIR += gstreamer-plugins-shout2

Added: head/audio/gstreamer-plugins-opus/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/audio/gstreamer-plugins-opus/Makefile	Sat Mar 23 09:58:02 2013	(r315020)
@@ -0,0 +1,12 @@
+# $FreeBSD$
+
+PORTREVISION=	0
+CATEGORIES=	audio
+
+COMMENT=	Gstreamer Opus audio encoder/decoder plugin
+
+GST_PLUGIN=	opus
+
+MASTERDIR=	${.CURDIR}/../../multimedia/gstreamer-plugins
+
+.include "${MASTERDIR}/Makefile"

Modified: head/multimedia/gstreamer-plugins/Makefile.common
==============================================================================
--- head/multimedia/gstreamer-plugins/Makefile.common	Sat Mar 23 09:20:25 2013	(r315019)
+++ head/multimedia/gstreamer-plugins/Makefile.common	Sat Mar 23 09:58:02 2013	(r315020)
@@ -50,6 +50,7 @@ BAD_GST_ALL_PLUGINS+= \
 		neon \
 		ofa \
 		opencv \
+		opus \
 		resindvd \
 		rsvg \
 		schro \
@@ -432,6 +433,12 @@ gst_opencv_PLIST_FILES= ${GST_LIB_DIR}/l
 			${GST_LIB_DIR}/libgstopencv.so
 gst_opencv_DIST=	bad
 
+# opus
+gst_opus_LIB_DEPENDS+=	opus:${PORTSDIR}/audio/opus
+gst_opus_PLIST_FILES=	${GST_LIB_DIR}/libgstopus.la \
+			${GST_LIB_DIR}/libgstopus.so
+gst_opus_DIST=		bad
+
 # pango
 gst_pango_USE_GNOME+=	pango
 gst_pango_PLIST_FILES=	${GST_LIB_DIR}/libgstpango.la \
_______________________________________________
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 Koop Mast freebsd_committer freebsd_triage 2013-03-23 09:58:20 UTC
State Changed
From-To: open->closed

Committed thanks!  
I added support so USE_GSTREAMER=opus works