6adae51270
* avcodec/dirac_arith: Fix build with PIC and stack-check options * swscale/x86/swscale_template: loose hardcoded dstw_offset * swresample/resample: use av_malloc_array() where appropriate * swresample/dither: use av_malloc_array() * swresample/resample: Limit filter length * avcodec/msrle: check return code for success before use * avcodec/pthread_frame: fix missing unlock on error * examples/avio_reading: fix null dereference on error * avformat/omadec: fix probetest failure * avcodec/wma: use av_freep(), do not leave stale pointers in memory * lavu/opt: validate range before dereference * avcodec/h264: clear cur_pic structure instead of duplicating it in ff_h264_update_thread_context() * avfilter/vf_pullup: fix gray8 * avcodec/libx264: move where x264opts is applied down so it isnt overridden by avctx & defaults
57 lines
1.6 KiB
Makefile
57 lines
1.6 KiB
Makefile
# $NetBSD: Makefile,v 1.7 2014/04/11 07:42:30 adam Exp $
|
|
|
|
PKGNAME= ${DISTNAME:S/ffmpeg/ffmpeg2/}
|
|
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/ffmpeg2 share/doc/ffmpeg2 share/examples/ffmpeg2
|
|
|
|
CONF_FILES+= ${PREFIX}/share/examples/ffmpeg2/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+= --arch=${MACHINE_ARCH}
|
|
CONFIGURE_ARGS+= --host-cc=${NATIVE_CC:Q}
|
|
CONFIGURE_ARGS+= --host-ld=${NATIVE_CC:Q}
|
|
CONFIGURE_ARGS+= --target-os=${LOWER_OPSYS}
|
|
.endif
|
|
|
|
TEST_TARGET= check
|
|
|
|
post-install:
|
|
${INSTALL_DATA} ${WRKSRC}/doc/*.txt \
|
|
${DESTDIR}${PREFIX}/share/doc/ffmpeg2
|
|
${INSTALL_DATA} ${WRKSRC}/doc/ffserver.conf \
|
|
${DESTDIR}${PREFIX}/share/examples/ffmpeg2
|
|
|
|
.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/ffmpeg2/Makefile.common"
|