pkgsrc/multimedia/ffmpeg2/Makefile

55 lines
1.6 KiB
Makefile
Raw Normal View History

Update to 2.4.1: The FFmpeg Project proudly presents FFmpeg 2.4 "Fresnel", just 2 months after the release of 2.3. Since this wasn't a long time ago, the Changelog is a bit short this time. The most important thing in this release is the major version bump of the libraries. This means that this release is neither ABI-compatible nor fully API-compatible. But on the other hand it is aligned with the Libav 11 release series, and will as a result probably end up being maintained for a long time. Important API changes since 2.3: • The new field mime_type was added to AVProbeData, which can cause crashes, if it is not initialized. • Some deprecated functions were removed. • The avfilter_graph_parse function was made compatible with Libav. • The Matroska demuxer now outputs verbatim ASS packets. Please refer to the doc/APIchanges file for more information. libavformat • Icecast protocol. • API for live metadata updates through event flags. • UTF-16 support in text subtitles formats. • The ASS muxer now reorders the Dialogue events properly. • support for H.261 RTP payload format (RFC 4587) • HEVC/H.265 RTP payload format (draft v6) depacketizer libavfilter • Ported lenscorrection filter from frei0r filter. • Large optimizations in dctdnoiz to make it usable. • Added codecview filter to visualize information exported by some codecs. • Added silenceremove filter. libavutil • Added clip() function in eval. Behaviour changes • dctdnoiz filter now uses a block size of 8x8 instead of 16x16 by default • -vismv option is deprecated in favor of the codecview filter • libmodplug is now detected through pkg-config • HTML documentation generation through texi2html is deprecated in favor of makeinfo/texi2any • ICY metadata are now requested by default with the HTTP protocol
2014-10-01 18:09:16 +02:00
# $NetBSD: Makefile,v 1.12 2014/10/01 16:09:16 wiz Exp $
PKGNAME= ${DISTNAME:S/ffmpeg/ffmpeg2/}
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://ffmpeg.mplayerhq.hu/
COMMENT= Decoding, encoding and streaming software (v2.x)
CONFIGURE_ARGS+= --enable-avfilter
#CONFIGURE_ARGS+= --enable-avfilter-lavf
CONFIGURE_ARGS+= --enable-postproc
CONFIGURE_ARGS+= --disable-ffplay
2013-08-15 20:49:10 +02:00
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
.include "../../multimedia/ffmpeg2/Makefile.common"