2a37a6b463
- libswscale/tests/swscale: Fix uninitialized variables - avcodec/ffv1dec: Fix runtime error: signed integer overflow: 1550964438 + 1550964438 cannot be represented in type 'int' - avcodec/webp: Fix signedness in prefix_code check - avcodec/svq3: Fix runtime error: signed integer overflow: 169 * 12717677 cannot be represented in type 'int' - avcodec/mlpdec: Check that there is enough data for headers - avcodec/ac3dec: Keep track of band structure - avcodec/webp: Add missing input padding - avcodec/aacdec_fixed: Fix runtime error: left shift of negative value -1 - avcodec/aacsbr_template: Do not change bs_num_env before its checked - avcodec/scpr: Fix multiple runtime error: index 256 out of bounds for type 'unsigned int [256]' - avcodec/mlp: Fix multiple runtime error: left shift of negative value -1 - avcodec/xpmdec: Fix multiple pointer/memory issues - avcodec/vp8dsp: vp7_luma_dc_wht_c: Fix multiple runtime error: signed integer overflow: -1366381240 + -1262413604 cannot be represented in type 'int' - avcodec/avcodec: Limit the number of side data elements per packet - avcodec/texturedsp: Fix runtime error: left shift of 255 by 24 places cannot be represented in type 'int' - avcodec/g723_1dec: Fix runtime error: left shift of negative value -1 - avcodec/wmv2dsp: Fix runtime error: signed integer overflow: 181 * -17047030 cannot be represented in type 'int' - avcodec/diracdec: Fix Assertion frame->buf[0] failed at libavcodec/decode.c:610 - avcodec/msmpeg4dec: Check for cbpy VLC errors - avcodec/cllc: Check num_bits - avcodec/cllc: Factor VLC_BITS/DEPTH out, do not use repeated literal numbers - avcodec/scpr: Check y in first line loop in decompress_i() - avcodec/dvbsubdec: Check entry_id - avcodec/aacdec_fixed: Fix multiple shift exponent 33 is too large for 32-bit type 'int' - avcodec/mpeg12dec: Fixes runtime error: division by zero - avcodec/pixlet: Fix runtime error: signed integer overflow: 436207616 * -5160230545260541 cannot be represented in type 'long' - avcodec/webp: Always set pix_fmt - avfilter/vf_uspp: Fix currently unused input frame dimensions - avcodec/truemotion1: Fix multiple runtime error: left shift of negative value -1 - avcodec/eatqi: Fix runtime error: signed integer overflow: 4466147 * 1075 cannot be represented in type 'int' - avcodec/dss_sp: Fix runtime error: signed integer overflow: 2147481189 + 4096 cannot be represented in type 'int' more...
94 lines
2.6 KiB
Text
94 lines
2.6 KiB
Text
# $NetBSD: Makefile.common,v 1.18 2017/05/15 13:16:45 adam Exp $
|
|
# used by multimedia/ffmpeg3/Makefile
|
|
# used by multimedia/ffplay3/Makefile
|
|
|
|
DISTNAME= ffmpeg-3.3.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"
|