Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 4 Nov 2016 07:40:08 +0000 (UTC)
From:      Jan Beich <jbeich@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-branches@freebsd.org
Subject:   svn commit: r425300 - branches/2016Q4/audio/libgroove
Message-ID:  <201611040740.uA47e8jR007301@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: jbeich
Date: Fri Nov  4 07:40:08 2016
New Revision: 425300
URL: https://svnweb.freebsd.org/changeset/ports/425300

Log:
  MFH: r425298
  
  audio/libgroove: unbreak build with ffmpeg 3.x
  
  groove/encoder.c:84:19: error:
        'avcodec_encode_audio2' is deprecated [-Werror,-Wdeprecated-declarations]
      int errcode = avcodec_encode_audio2(e->stream->codec, &e->pkt, frame, &got_packet);
                    ^
  /usr/local/include/libavcodec/avcodec.h:5283:5: note: 'avcodec_encode_audio2' has been explicitly
        marked deprecated here
  int avcodec_encode_audio2(AVCodecContext *avctx, AVPacket *avpkt,
      ^
  groove/encoder.c:84:52: error: 'codec'
        is deprecated [-Werror,-Wdeprecated-declarations]
      int errcode = avcodec_encode_audio2(e->stream->codec, &e->pkt, frame, &got_packet);
                                                     ^
  /usr/local/include/libavformat/avformat.h:893:21: note: 'codec' has been explicitly marked deprecated
        here
      AVCodecContext *codec;
                      ^
  groove/encoder.c:94:5: error:
        'av_free_packet' is deprecated [-Werror,-Wdeprecated-declarations]
      av_free_packet(&e->pkt);
      ^
  /usr/local/include/libavcodec/avcodec.h:4472:6: note: 'av_free_packet' has been explicitly marked
        deprecated here
  void av_free_packet(AVPacket *pkt);
       ^
  groove/encoder.c:101:34: error:
        'codec' is deprecated [-Werror,-Wdeprecated-declarations]
          avcodec_close(e->stream->codec);
                                   ^
  /usr/local/include/libavformat/avformat.h:893:21: note: 'codec' has been explicitly marked deprecated
        here
      AVCodecContext *codec;
                      ^
  groove/encoder.c:134:44: error:
        'codec' is deprecated [-Werror,-Wdeprecated-declarations]
      AVCodecContext *codec_ctx = e->stream->codec;
                                             ^
  /usr/local/include/libavformat/avformat.h:893:21: note: 'codec' has been explicitly marked deprecated
        here
      AVCodecContext *codec;
                      ^
  groove/encoder.c:148:16: error:
        'codec' is deprecated [-Werror,-Wdeprecated-declarations]
      e->stream->codec = codec_ctx;
                 ^
  /usr/local/include/libavformat/avformat.h:893:21: note: 'codec' has been explicitly marked deprecated
        here
      AVCodecContext *codec;
                      ^
  groove/encoder.c:620:24: error:
        'codec' is deprecated [-Werror,-Wdeprecated-declarations]
          0 : e->stream->codec->frame_size;
                         ^
  /usr/local/include/libavformat/avformat.h:893:21: note: 'codec' has been explicitly marked deprecated
        here
      AVCodecContext *codec;
                      ^
  7 errors generated.
  
  PR:		207547
  Approved by:	ports-secteam blanket

Modified:
  branches/2016Q4/audio/libgroove/Makefile
Directory Properties:
  branches/2016Q4/   (props changed)

Modified: branches/2016Q4/audio/libgroove/Makefile
==============================================================================
--- branches/2016Q4/audio/libgroove/Makefile	Fri Nov  4 07:38:09 2016	(r425299)
+++ branches/2016Q4/audio/libgroove/Makefile	Fri Nov  4 07:40:08 2016	(r425300)
@@ -23,6 +23,7 @@ GH_ACCOUNT=	andrewrk
 USES=		cmake:outsource
 USE_SDL=	sdl2
 USE_LDCONFIG=	yes
+CFLAGS+=	-Wno-error=deprecated-declarations # ffmpeg 3.1
 
 PLIST_SUB+=	VER1=${PORTVERSION:R:R} \
 		VER3=${PORTVERSION}



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