- avcodec/jpeg2000dec: More completely check cdef - avutil/opt: check for and handle errors in av_opt_set_dict2() - avcodec/flacenc: fix calculation of bits required in case of custom sample rate - avformat: Document urls a bit - avformat/libquvi: Set default demuxer and protocol limitations - avformat/concat: Check protocol prefix - doc/demuxers: Document enable_drefs and use_absolute_path - avcodec/mjpegdec: Check for end for both bytes in unescaping - avcodec/mpegvideo_enc: Check for integer overflow in ff_mpv_reallocate_putbitbuffer() - avformat/avformat: Replace some references to filenames by urls - avcodec/wmaenc: Check ff_wma_init() for failure - avcodec/mpeg12enc: Move high resolution thread check to before initializing threads - avformat/img2dec: Use AVOpenCallback - avformat/avio: Limit url option parsing to the documented cases - avformat/img2dec: do not interpret the filename by default if a IO context has been opened - avcodec/ass_split: Fix null pointer dereference in ff_ass_style_get() - mov: Add an option to toggle dref opening - avcodec/gif: Fix lzw buffer size - avcodec/put_bits: Assert buf_ptr in flush_put_bits() - avcodec/tiff: Check subsample & rps values more completely - swscale/swscale: Add some sanity checks for srcSlice* parameters - swscale/x86/rgb2rgb_template: Fix planar2x() for short width - swscale/swscale_unscaled: Fix odd height inputs for bayer_to_yv12_wrapper() - swscale/swscale_unscaled: Fix odd height inputs for bayer_to_rgb24_wrapper() - avcodec/aacenc: Check both channels for finiteness - asfdec_o: check for too small size in asf_read_unknown - asfdec_o: break if EOF is reached after asf_read_packet_header - asfdec_o: make sure packet_size is non-zero before seeking - asfdec_o: prevent overflow causing seekback - asfdec_o: check avio_skip in asf_read_simple_index - asfdec_o: reject size > INT64_MAX in asf_read_unknown - asfdec_o: only set asf_pkt->data_size after sanity checks - Merge commit '8375dc1dd101d51baa430f34c0bcadfa37873896' - dca: fix misaligned access in avpriv_dca_convert_bitstream - brstm: fix missing closing brace - brstm: also allocate b->table in read_packet - brstm: make sure an ADPC chunk was read for adpcm_thp - vorbisdec: reject rangebits 0 with non-0 partitions - vorbisdec: reject channel mapping with less than two channels - ffmdec: reset packet_end in case of failure - avformat/ipmovie: put video decoding_map_size into packet and use it in decoder - avformat/brstm: fix overflow
93 lines
2.6 KiB
Text
93 lines
2.6 KiB
Text
# $NetBSD: Makefile.common,v 1.44 2016/02/03 21:00:00 adam Exp $
|
|
# used by multimedia/ffmpeg2/Makefile
|
|
# used by multimedia/ffplay2/Makefile
|
|
|
|
DISTNAME= ffmpeg-2.8.6
|
|
CATEGORIES= multimedia
|
|
MASTER_SITES= http://www.ffmpeg.org/releases/
|
|
EXTRACT_SUFX= .tar.xz
|
|
|
|
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"
|