acaa783c19
* avcodec/utvideoenc: fix slice_bits size * avcodec/snow: split block clipping checks * avcodec/ansi: fix integer overflow * avcodec/msrle: use av_image_get_linesize() to calculate the linesize * avformat/mpegtsenc: Check data array size in mpegts_write_pmt() * avcodec/wmalosslessdec: fix mclms_coeffs* array size * samplefmt: avoid integer overflow in av_samples_get_buffer_size() * avcodec/vc1: reset fcm/field_mode in non advanced header parsing * avcodec/takdec: always check bits_per_raw_sample * avcodec/vmnc: Check that rectangles are within the picture * dnxhdenc: fix mb_rc size * pthread_frame: flush all threads on flush, not just the first one * rtpdec_asf: Copy the need_parsing field from the chained demuxer * Fix compilation on ARM with android gcc 4.7 * Allow decoding of slightly broken Nikon avi files.
57 lines
1.6 KiB
Makefile
57 lines
1.6 KiB
Makefile
# $NetBSD: Makefile,v 1.118 2014/03/11 10:25:22 adam Exp $
|
|
|
|
PKGNAME= ffmpeg-20140305.${DISTVERSION}
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
|
HOMEPAGE= http://ffmpeg.mplayerhq.hu/
|
|
COMMENT= Decoding, encoding and streaming software
|
|
|
|
CONFIGURE_ARGS+= --enable-avfilter
|
|
#CONFIGURE_ARGS+= --enable-avfilter-lavf
|
|
CONFIGURE_ARGS+= --enable-postproc
|
|
|
|
INSTALLATION_DIRS= lib share/examples/ffmpeg share/doc/ffmpeg
|
|
|
|
CONF_FILES+= ${PREFIX}/share/examples/ffmpeg/ffserver.conf \
|
|
${PKG_SYSCONFDIR}/ffserver.conf
|
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
.if !empty(USE_CROSS_COMPILE:M[yY][eE][sS])
|
|
CONFIGURE_ARGS+= --enable-cross-compile
|
|
CONFIGURE_ARGS+= --target-os=${LOWER_OPSYS}
|
|
CONFIGURE_ARGS+= --arch=${MACHINE_ARCH}
|
|
CONFIGURE_ARGS+= --host-cc=${NATIVE_CC:Q}
|
|
CONFIGURE_ARGS+= --host-ld=${NATIVE_CC:Q}
|
|
.endif
|
|
|
|
TEST_TARGET= check
|
|
|
|
post-install:
|
|
${INSTALL_DATA} ${WRKSRC}/doc/*.txt \
|
|
${DESTDIR}${PREFIX}/share/doc/ffmpeg
|
|
${INSTALL_DATA} ${WRKSRC}/doc/ffserver.conf \
|
|
${DESTDIR}${PREFIX}/share/examples/ffmpeg
|
|
|
|
.include "options.mk"
|
|
|
|
.include "../../mk/compiler.mk"
|
|
|
|
# disable asm on i386 for non-gcc and gcc < 4.2
|
|
# no alignment options needed for gcc >= 4.6 on i386
|
|
.if ${MACHINE_ARCH} == "i386"
|
|
. if !empty(MACHINE_PLATFORM:MDarwin-*-i386) \
|
|
|| !empty(MACHINE_PLATFORM:MSunOS-*-i386) \
|
|
|| !empty(CC_VERSION:Mgcc-[123]*) \
|
|
|| !empty(CC_VERSION:Mgcc-4.[01]*) \
|
|
|| empty(CC_VERSION:Mgcc*)
|
|
CONFIGURE_ARGS+= --disable-asm
|
|
. elif !empty(CC_VERSION:Mgcc-4.[2345]*)
|
|
CFLAGS+= -mstackrealign -mpreferred-stack-boundary=4
|
|
. endif
|
|
.endif
|
|
|
|
.if !empty(PKGSRC_COMPILER:Mclang)
|
|
CFLAGS+= -no-integrated-as
|
|
.endif
|
|
|
|
.include "../../multimedia/ffmpeg/Makefile.common"
|