d05e0235d9
Changelog: version 3.1.1: - doc/APIchanges: document the lavu/lavf field moves - avformat/avformat: Move new field to the end of AVStream - avformat/utils: update deprecated AVStream->codec when the context is updated - avutil/frame: Move new field to the end of AVFrame - libavcodec/exr : fix decoding piz float file. - avformat/mov: Check sample size - lavfi: Move new field to the end of AVFilterContext - lavfi: Move new field to the end of AVFilterLink - ffplay: Fix usage of private lavfi API - lavc/mediacodecdec_h264: add missing NAL headers to SPS/PPS buffers - lavc/pnm_parser: disable parsing for text based PNMs version 3.1: - DXVA2-accelerated HEVC Main10 decoding - fieldhint filter - loop video filter and aloop audio filter - Bob Weaver deinterlacing filter - firequalizer filter - datascope filter - bench and abench filters - ciescope filter - protocol blacklisting API - MediaCodec H264 decoding - VC-2 HQ RTP payload format (draft v1) depacketizer and packetizer - VP9 RTP payload format (draft v2) packetizer - AudioToolbox audio decoders - AudioToolbox audio encoders - coreimage filter (GPU based image filtering on OSX) - libdcadec removed - bitstream filter for extracting DTS core - ADPCM IMA DAT4 decoder - musx demuxer - aix demuxer - remap filter - hash and framehash muxers - colorspace filter - hdcd filter - readvitc filter - VAAPI-accelerated format conversion and scaling - libnpp/CUDA-accelerated format conversion and scaling - Duck TrueMotion 2.0 Real Time decoder - Wideband Single-bit Data (WSD) demuxer - VAAPI-accelerated H.264/HEVC/MJPEG encoding - DTS Express (LBR) decoder - Generic OpenMAX IL encoder with support for Raspberry Pi - IFF ANIM demuxer & decoder - Direct Stream Transfer (DST) decoder - loudnorm filter - MTAF demuxer and decoder - MagicYUV decoder - OpenExr improvements (tile data and B44/B44A support) - BitJazz SheerVideo decoder - CUDA CUVID H264/HEVC decoder - 10-bit depth support in native utvideo decoder - libutvideo wrapper removed - YUY2 Lossless Codec decoder - VideoToolbox H.264 encoder
94 lines
2.6 KiB
Makefile
94 lines
2.6 KiB
Makefile
# $NetBSD: Makefile.common,v 1.7 2016/07/02 12:30:16 ryoon Exp $
|
|
# used by multimedia/ffmpeg3/Makefile
|
|
# used by multimedia/ffplay3/Makefile
|
|
|
|
DISTNAME= ffmpeg-3.1.1
|
|
CATEGORIES= multimedia
|
|
MASTER_SITES= http://www.ffmpeg.org/releases/
|
|
EXTRACT_SUFX= .tar.bz2
|
|
|
|
LICENSE= gnu-lgpl-v2.1 AND gnu-gpl-v2
|
|
|
|
PATCHDIR= ${.CURDIR}/../../multimedia/ffmpeg3/patches
|
|
|
|
USE_LANGUAGES= c99
|
|
USE_LIBTOOL= yes
|
|
USE_TOOLS+= gmake pod2man perl
|
|
HAS_CONFIGURE= yes
|
|
CONFIGURE_ARGS+= --cc=${CC:Q}
|
|
CONFIGURE_ARGS+= --disable-debug
|
|
CONFIGURE_ARGS+= --disable-optimizations
|
|
CONFIGURE_ARGS+= --disable-stripping
|
|
CONFIGURE_ARGS+= --enable-shared
|
|
CONFIGURE_ARGS+= --enable-pthreads
|
|
CONFIGURE_ARGS+= --enable-gpl
|
|
CONFIGURE_ARGS+= --mandir=${PREFIX}/${PKGMANDIR}
|
|
CONFIGURE_ARGS+= --prefix=${PREFIX}
|
|
|
|
CONFIGURE_ARGS+= --progs-suffix=3
|
|
CONFIGURE_ARGS+= --datadir=${PREFIX}/share/ffmpeg3
|
|
CONFIGURE_ARGS+= --docdir=${PREFIX}/share/doc/ffmpeg3
|
|
CONFIGURE_ARGS+= --incdir=${PREFIX}/include/ffmpeg3
|
|
CONFIGURE_ARGS+= --libdir=${PREFIX}/lib/ffmpeg3
|
|
CONFIGURE_ARGS+= --shlibdir=${PREFIX}/lib/ffmpeg3
|
|
LDFLAGS+= ${COMPILER_RPATH_FLAG}${PREFIX}/lib/ffmpeg3
|
|
|
|
PLIST_VARS+= opencl
|
|
|
|
.if !empty(MACHINE_PLATFORM:MDarwin-1[2-9].*-*)
|
|
CONFIGURE_ARGS+= --enable-opencl
|
|
PLIST.opencl= yes
|
|
.endif
|
|
|
|
.if ${OPSYS} == "SunOS"
|
|
USE_TOOLS+= bash:build
|
|
CONFIG_SHELL= ${TOOLS_PATH.bash}
|
|
.endif
|
|
|
|
CONFIGURE_ARGS+= --enable-runtime-cpudetect
|
|
|
|
# No posix_memalign() in NetBSD 4.0 and earlier
|
|
.if !empty(MACHINE_PLATFORM:MNetBSD-[1-4].*-*)
|
|
CONFIGURE_ARGS+= --enable-memalign-hack
|
|
.endif
|
|
|
|
# Let's not put garbage into /tmp
|
|
CONFIGURE_ENV+= TMPDIR=${WRKSRC}/tmp
|
|
|
|
.include "../../mk/compiler.mk"
|
|
|
|
.if ${OPSYS} == "SunOS" && empty(CC_VERSION:Mgcc*)
|
|
SUBST_CLASSES+= sunwspro
|
|
SUBST_MESSAGE.sunwspro= Fixing compiler options for SunStudio C compiler.
|
|
SUBST_STAGE.sunwspro= post-configure
|
|
SUBST_FILES.sunwspro= config.mak
|
|
SUBST_SED.sunwspro= -e "s/-O /-KPIC -DPIC /"
|
|
SUBST_SED.sunwspro+= -e "s/-O3/-xO2/g"
|
|
SUBST_SED.sunwspro+= -e "s/-std=c99/-xc99=all/"
|
|
SUBST_SED.sunwspro+= -e "s/-Wl,-rpath-link,/-L /g"
|
|
.endif
|
|
|
|
BUILD_DEPENDS+= yasm>=0.7.2:../../devel/yasm
|
|
|
|
REPLACE_PERL+= doc/texi2pod.pl
|
|
REPLACE_SH+= configure version.sh
|
|
|
|
SUBST_CLASSES+= conf
|
|
SUBST_STAGE.conf= post-patch
|
|
SUBST_FILES.conf= ffserver.c
|
|
SUBST_SED.conf= -e 's,/etc/ffserver.conf,${PKG_SYSCONFDIR}/ffserver.conf,g'
|
|
SUBST_MESSAGE.conf= Fixing configuration path.
|
|
|
|
PLIST_SRC+= ${PKGDIR}/PLIST
|
|
|
|
MAKE_ENV+= EXTRA_LIBS=${LIBGETOPT:Q}
|
|
|
|
pre-configure:
|
|
mkdir ${WRKSRC}/tmp
|
|
|
|
.include "../../archivers/bzip2/buildlink3.mk"
|
|
.include "../../archivers/xz/buildlink3.mk"
|
|
.include "../../devel/libgetopt/buildlink3.mk"
|
|
.include "../../devel/zlib/buildlink3.mk"
|
|
.include "../../mk/pthread.buildlink3.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|