8d145a3fba
version 2.8.4 - rawdec: only exempt BIT0 with need_copy from buffer sanity check - mlvdec: check that index_entries exist - avcodec/mpeg4videodec: also for empty partitioned slices - avcodec/h264_refs: Fix long_idx check - avcodec/h264_mc_template: prefetch list1 only if it is used in the MB - avcodec/h264_slice: Simplify ref2frm indexing - avfilter/vf_mpdecimate: Add missing emms_c() - sonic: make sure num_taps * channels is not larger than frame_size - opus_silk: fix typo causing overflow in silk_stabilize_lsf - ffm: reject invalid codec_id and codec_type - golomb: always check for invalid UE golomb codes in get_ue_golomb - sbr_qmf_analysis: sanitize input for 32-bit imdct - sbrdsp_fixed: assert that input values are in the valid range - aacsbr: ensure strictly monotone time borders - aacenc: update max_sfb when num_swb changes - aaccoder: prevent crash of anmr coder - ffmdec: reject zero-sized chunks - swscale/x86/rgb2rgb_template: Fallback to mmx in interleaveBytes() if the alignment is insufficient for SSE* - swscale/x86/rgb2rgb_template: Do not crash on misaligend stride - avformat/mxfenc: Do not crash if there is no packet in the first stream - lavf/tee: fix side data double free. - avformat/hlsenc: Check the return code of avformat_write_header() - avformat/mov: Enable parser for mp3s by old HandBrake - avformat/mxfenc: Fix integer overflow in length computation - avformat/utils: estimate_timings_from_pts - increase retry counter, fixes invalid duration for ts files with hevc codec - avformat/matroskaenc: Check codecdelay before use - avutil/mathematics: Fix division by 0 - mjpegdec: consider chroma subsampling in size check - libvpxenc: remove some unused ctrl id mappings - avcodec/vp3: ensure header is parsed successfully before tables - avcodec/jpeg2000dec: Check bpno in decode_cblk() - avcodec/pgssubdec: Fix left shift of 255 by 24 places cannot be represented in type int - swscale/utils: Fix for runtime error: left shift of negative value -1 - avcodec/hevc: Fix integer overflow of entry_point_offset - avcodec/dirac_parser: Check that there is a previous PU before accessing it - avcodec/dirac_parser: Add basic validity checks for next_pu_offset and prev_pu_offset - avcodec/dirac_parser: Fix potential overflows in pointer checks - avcodec/wmaprodec: Check bits per sample to be within the range not causing integer overflows - avcodec/wmaprodec: Fix overflow of cutoff - avformat/smacker: fix integer overflow with pts_inc - avcodec/vp3: Fix "runtime error: left shift of negative value" - avformat/riffdec: Initialize bitrate - mpegencts: Fix overflow in cbr mode period calculations - avutil/timecode: Fix fps check - avutil/mathematics: return INT64_MIN (=AV_NOPTS_VALUE) from av_rescale_rnd() for overflows - avcodec/apedec: Check length in long_filter_high_3800() - avcodec/vp3: always set pix_fmt in theora_decode_header() - avcodec/mpeg4videodec: Check available data before reading custom matrix - avutil/mathematics: Do not treat INT64_MIN as positive in av_rescale_rnd - avutil/integer: Fix av_mod_i() with negative dividend - avformat/dump: Fix integer overflow in av_dump_format() - avcodec/h264_refs: Check that long references match before use - avcodec/utils: Clear dimensions in ff_get_buffer() on failure - avcodec/utils: Use 64bit for aspect ratio calculation in avcodec_string() - avcodec/hevc: Check max ctb addresses for WPP - avcodec/vp3: Clear context on reinitialization failure - avcodec/hevc: allocate entries unconditionally - avcodec/hevc_cabac: Fix multiple integer overflows - avcodec/jpeg2000dwt: Check ndeclevels before calling dwt_encode*() - avcodec/jpeg2000dwt: Check ndeclevels before calling dwt_decode*() - avcodec/hevc: Check entry_point_offsets - lavf/rtpenc_jpeg: Less strict check for standard Huffman tables. - avcodec/ffv1dec: Clear quant_table_count if its invalid - avcodec/ffv1dec: Print an error if the quant table count is invalid - doc/filters/drawtext: fix centering example
93 lines
2.6 KiB
Text
93 lines
2.6 KiB
Text
# $NetBSD: Makefile.common,v 1.41 2015/12/27 21:45:56 wiz Exp $
|
|
# used by multimedia/ffmpeg2/Makefile
|
|
# used by multimedia/ffplay2/Makefile
|
|
|
|
DISTNAME= ffmpeg-2.8.4
|
|
CATEGORIES= multimedia
|
|
MASTER_SITES= http://www.ffmpeg.org/releases/
|
|
EXTRACT_SUFX= .tar.bz2
|
|
|
|
LICENSE= gnu-lgpl-v2.1 AND gnu-gpl-v2
|
|
|
|
PREV_PKGPATH= multimedia/ffmpeg-devel
|
|
PATCHDIR= ${.CURDIR}/../../multimedia/ffmpeg2/patches
|
|
|
|
USE_LANGUAGES= c99
|
|
USE_LIBTOOL= yes
|
|
USE_TOOLS+= gmake texi2html pod2man
|
|
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=2
|
|
CONFIGURE_ARGS+= --datadir=${PREFIX}/share/ffmpeg2
|
|
CONFIGURE_ARGS+= --incdir=${PREFIX}/include/ffmpeg2
|
|
CONFIGURE_ARGS+= --libdir=${PREFIX}/lib/ffmpeg2
|
|
CONFIGURE_ARGS+= --shlibdir=${PREFIX}/lib/ffmpeg2
|
|
LDFLAGS+= ${COMPILER_RPATH_FLAG}${PREFIX}/lib/ffmpeg2
|
|
|
|
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 "../../devel/libgetopt/buildlink3.mk"
|
|
.include "../../devel/zlib/buildlink3.mk"
|
|
.include "../../mk/pthread.buildlink3.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|