freebsd-ports/multimedia/vdr-plugin-markad/Makefile
Jan Beich 47f3eeeb85 multimedia/vdr-plugin-markad: unbreak with ffmpeg 4.0
decoder.cpp:175:23: error: use of undeclared identifier 'AV_CODEC_ID_MPEG2VIDEO_XVMC'; did you mean 'AV_CODEC_ID_MPEG2VIDEO'?
        video_codecid=AV_CODEC_ID_MPEG2VIDEO_XVMC;
                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~
                      AV_CODEC_ID_MPEG2VIDEO
/usr/local/include/libavcodec/avcodec.h:220:5: note: 'AV_CODEC_ID_MPEG2VIDEO' declared here
    AV_CODEC_ID_MPEG2VIDEO, ///< preferred ID for MPEG-1/2 video decoding
    ^
decoder.cpp:179:43: error: use of undeclared identifier 'AV_CODEC_ID_MPEG2VIDEO_XVMC'; did you mean 'AV_CODEC_ID_MPEG2VIDEO'?
    if ((!video_codec) && (video_codecid==AV_CODEC_ID_MPEG2VIDEO_XVMC))
                                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~
                                          AV_CODEC_ID_MPEG2VIDEO
/usr/local/include/libavcodec/avcodec.h:220:5: note: 'AV_CODEC_ID_MPEG2VIDEO' declared here
    AV_CODEC_ID_MPEG2VIDEO, ///< preferred ID for MPEG-1/2 video decoding
    ^
decoder.cpp:191:45: error: use of undeclared identifier 'CODEC_CAP_TRUNCATED'
            if (video_codec->capabilities & CODEC_CAP_TRUNCATED)
                                            ^
decoder.cpp:192:39: error: use of undeclared identifier 'CODEC_FLAG_TRUNCATED'
                video_context->flags|=CODEC_FLAG_TRUNCATED; // we do not send complete frames
                                      ^
decoder.cpp:194:36: error: use of undeclared identifier 'CODEC_FLAG2_FAST'
            video_context->flags2|=CODEC_FLAG2_FAST; // really?
                                   ^
decoder.cpp:201:40: error: use of undeclared identifier 'CODEC_FLAG2_CHUNKS'
                video_context->flags2|=CODEC_FLAG2_CHUNKS; // needed for H264!
                                       ^
decoder.cpp:214:46: error: use of undeclared identifier 'AV_CODEC_ID_MPEG2VIDEO_XVMC'; did you mean 'AV_CODEC_ID_MPEG2VIDEO'?
            if ((ret < 0) && (video_codecid==AV_CODEC_ID_MPEG2VIDEO_XVMC))
                                             ^~~~~~~~~~~~~~~~~~~~~~~~~~~
                                             AV_CODEC_ID_MPEG2VIDEO
/usr/local/include/libavcodec/avcodec.h:220:5: note: 'AV_CODEC_ID_MPEG2VIDEO' declared here
    AV_CODEC_ID_MPEG2VIDEO, ///< preferred ID for MPEG-1/2 video decoding
    ^
decoder.cpp:224:43: error: no member named 'codec_name' in 'AVCodecContext'; did you mean 'coded_frame'?
                    memset(video_context->codec_name,0,sizeof(video_context->codec_name));
                                          ^~~~~~~~~~
                                          coded_frame
/usr/local/include/libavcodec/avcodec.h:2760:35: note: 'coded_frame' declared here
    attribute_deprecated AVFrame *coded_frame;
                                  ^
decoder.cpp:224:78: error: no member named 'codec_name' in 'AVCodecContext'
                    memset(video_context->codec_name,0,sizeof(video_context->codec_name));
                                                              ~~~~~~~~~~~~~  ^
decoder.cpp:244:22: error: use of undeclared identifier 'AV_CODEC_ID_MPEG2VIDEO_XVMC'; did you mean 'AV_CODEC_ID_MPEG2VIDEO'?
                case AV_CODEC_ID_MPEG2VIDEO_XVMC:
                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~
                     AV_CODEC_ID_MPEG2VIDEO
/usr/local/include/libavcodec/avcodec.h:220:5: note: 'AV_CODEC_ID_MPEG2VIDEO' declared here
    AV_CODEC_ID_MPEG2VIDEO, ///< preferred ID for MPEG-1/2 video decoding
    ^
decoder.cpp:247:22: error: duplicate case value 'AV_CODEC_ID_MPEG2VIDEO'
                case AV_CODEC_ID_MPEG2VIDEO:
                     ^
decoder.cpp:244:22: note: previous case defined here
                case AV_CODEC_ID_MPEG2VIDEO_XVMC:
                     ^
decoder.cpp:305:14: error: use of undeclared identifier 'AV_CODEC_ID_MPEG2VIDEO_XVMC'; did you mean 'AV_CODEC_ID_MPEG2VIDEO'?
        case AV_CODEC_ID_MPEG2VIDEO_XVMC:
             ^~~~~~~~~~~~~~~~~~~~~~~~~~~
             AV_CODEC_ID_MPEG2VIDEO
/usr/local/include/libavcodec/avcodec.h:220:5: note: 'AV_CODEC_ID_MPEG2VIDEO' declared here
    AV_CODEC_ID_MPEG2VIDEO, ///< preferred ID for MPEG-1/2 video decoding
    ^
decoder.cpp:308:14: error: duplicate case value 'AV_CODEC_ID_MPEG2VIDEO'
        case AV_CODEC_ID_MPEG2VIDEO:
             ^
decoder.cpp:305:14: note: previous case defined here
        case AV_CODEC_ID_MPEG2VIDEO_XVMC:
             ^

PR:		227726
Reported by:	antoine (via exp-run)
2018-05-03 19:50:40 +00:00

54 lines
1.4 KiB
Makefile

# Created by: Juergen Lock <nox@FreeBSD.org>
# $FreeBSD$
PORTNAME= vdr-plugin-markad
PORTVERSION= 0.1.4
PORTREVISION= 6
CATEGORIES= multimedia
MASTER_SITES= http://projects.vdr-developer.org/attachments/download/1041/
DISTNAME= ${PORTNAME:S/-plugin-/-/}-${DISTVERSIONPREFIX}${DISTVERSION}${DISTVERSIONSUFFIX}
MAINTAINER= ports@FreeBSD.org
COMMENT= Video Disk Recorder - MarkAd plugin
LICENSE= GPLv2+
LICENSE_FILE= ${WRKSRC}/COPYING
LIB_DEPENDS= libavcodec.so:multimedia/ffmpeg
RESTRICTED= Installs station logos
USES= pkgconfig tar:tgz
WRKSRC= ${WRKDIR}/${PLUGIN}-${DISTVERSION}
VDR_PLUGIN_MAKEFILES= ${WRKSRC}/command/Makefile ${WRKSRC}/plugin/Makefile
DEFINES= -DDATADIR=\\\"${DATADIR}\\\" -DPREFIX=\\\"${PREFIX}\\\"
MAKE_ARGS= DATADIR=${DATADIR} FREEBSD=1
MAKE_ENV= DEFINES="${DEFINES}"
PORTDOCS= README HISTORY
PORTDATA= logos
OPTIONS_DEFINE= DOCS NLS
.include "${.CURDIR}/../vdr/Makefile.plugins"
# for libexecinfo: (so that __builtin_frame_address() finds the top
# of the stack)
.if ${ARCH} == "amd64"
CFLAGS+= -fno-omit-frame-pointer
CPPFLAGS+= -fno-omit-frame-pointer
.endif
post-patch: post-patch-plugin
@${LN} -s ../lib ../locale ${WRKSRC}
pre-install:
@${MKDIR} ${STAGEDIR}${PREFIX}/lib/vdr
post-install: post-install-pluginlocales
post-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
(cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR})
.include <bsd.port.mk>