2015-07-22 16:06:15 +02:00
|
|
|
# Created by: gahr
|
2014-05-02 17:46:52 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= libgroove
|
2015-10-01 15:27:43 +02:00
|
|
|
PORTVERSION= 4.3.0
|
2017-01-06 15:24:00 +01:00
|
|
|
PORTREVISION= 3
|
2014-05-02 17:46:52 +02:00
|
|
|
CATEGORIES= audio
|
|
|
|
|
2014-12-10 23:29:14 +01:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2014-05-02 17:46:52 +02:00
|
|
|
COMMENT= Audio dispatching library
|
|
|
|
|
|
|
|
LICENSE= MIT
|
2015-07-22 08:52:30 +02:00
|
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE
|
2014-05-02 17:46:52 +02:00
|
|
|
|
2016-04-01 15:29:15 +02:00
|
|
|
LIB_DEPENDS= libavcodec.so:multimedia/ffmpeg \
|
|
|
|
libchromaprint.so:audio/chromaprint \
|
|
|
|
libebur128.so:audio/libebur128 \
|
|
|
|
libspeexdsp.so:audio/speexdsp
|
2014-05-02 17:46:52 +02:00
|
|
|
|
|
|
|
USE_GITHUB= yes
|
|
|
|
GH_ACCOUNT= andrewrk
|
|
|
|
|
2015-07-22 08:52:30 +02:00
|
|
|
USES= cmake:outsource
|
|
|
|
USE_SDL= sdl2
|
|
|
|
USE_LDCONFIG= yes
|
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
2016-11-04 08:37:48 +01:00
|
|
|
CFLAGS+= -Wno-error=deprecated-declarations # ffmpeg 3.1
|
2015-07-22 08:52:30 +02:00
|
|
|
|
2014-05-02 17:46:52 +02:00
|
|
|
PLIST_SUB+= VER1=${PORTVERSION:R:R} \
|
2015-07-22 08:52:30 +02:00
|
|
|
VER3=${PORTVERSION}
|
2014-05-02 17:46:52 +02:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|