2014-03-11 11:25:22 +01:00
|
|
|
# $NetBSD: Makefile,v 1.118 2014/03/11 10:25:22 adam Exp $
|
2009-08-10 22:37:15 +02:00
|
|
|
|
2014-03-11 11:25:22 +01:00
|
|
|
PKGNAME= ffmpeg-20140305.${DISTVERSION}
|
2010-10-24 23:56:51 +02:00
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
2006-10-25 16:02:00 +02:00
|
|
|
HOMEPAGE= http://ffmpeg.mplayerhq.hu/
|
2009-06-12 18:25:34 +02:00
|
|
|
COMMENT= Decoding, encoding and streaming software
|
2004-05-10 15:41:10 +02:00
|
|
|
|
2011-01-17 17:51:04 +01:00
|
|
|
CONFIGURE_ARGS+= --enable-avfilter
|
2011-07-19 21:53:18 +02:00
|
|
|
#CONFIGURE_ARGS+= --enable-avfilter-lavf
|
2011-01-17 17:51:04 +01:00
|
|
|
CONFIGURE_ARGS+= --enable-postproc
|
2004-06-20 01:15:12 +02:00
|
|
|
|
2008-09-08 01:39:37 +02:00
|
|
|
INSTALLATION_DIRS= lib share/examples/ffmpeg share/doc/ffmpeg
|
2007-12-22 01:05:25 +01:00
|
|
|
|
2009-06-12 18:25:34 +02:00
|
|
|
CONF_FILES+= ${PREFIX}/share/examples/ffmpeg/ffserver.conf \
|
|
|
|
${PKG_SYSCONFDIR}/ffserver.conf
|
2004-08-30 00:43:50 +02:00
|
|
|
|
2011-01-17 23:14:02 +01:00
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
|
2013-05-10 08:13:30 +02:00
|
|
|
.if !empty(USE_CROSS_COMPILE:M[yY][eE][sS])
|
|
|
|
CONFIGURE_ARGS+= --enable-cross-compile
|
2013-08-02 20:24:18 +02:00
|
|
|
CONFIGURE_ARGS+= --target-os=${LOWER_OPSYS}
|
|
|
|
CONFIGURE_ARGS+= --arch=${MACHINE_ARCH}
|
2013-05-10 08:13:30 +02:00
|
|
|
CONFIGURE_ARGS+= --host-cc=${NATIVE_CC:Q}
|
|
|
|
CONFIGURE_ARGS+= --host-ld=${NATIVE_CC:Q}
|
|
|
|
.endif
|
|
|
|
|
2011-04-29 09:44:28 +02:00
|
|
|
TEST_TARGET= check
|
|
|
|
|
2010-09-06 00:55:18 +02:00
|
|
|
post-install:
|
2009-06-12 18:25:34 +02:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/doc/*.txt \
|
|
|
|
${DESTDIR}${PREFIX}/share/doc/ffmpeg
|
Update to 0.4.8, and install the header files that are customarily
installed.
Changes:
version 0.4.8:
- MPEG2 video encoding (Michael)
- Id RoQ playback subsystem (Mike Melanson and Tim Ferguson)
- Wing Commander III Movie (.mve) file playback subsystem (Mike Melanson
and Mario Brito)
- Xan DPCM audio decoder (Mario Brito)
- Interplay MVE playback subsystem (Mike Melanson)
- Duck DK3 and DK4 ADPCM audio decoders (Mike Melanson)
version 0.4.7:
- RealAudio 1.0 (14_4) and 2.0 (28_8) native decoders. Author unknown, code from a mplayerhq
(originally from public domain player for Amiga at http://www.honeypot.net/audio)
- Current version now also compiles with older GCC (Fabrice)
- 4X multimedia playback system including 4xm file demuxer (Mike
Melanson), and 4X video and audio codecs (Michael)
- Creative YUV (CYUV) decoder (Mike Melanson)
- FFV1 codec (our very simple lossless intra only codec, compresses much better
then huffyuv) (Michael)
- ASV1 (Asus), H.264, Intel indeo3 codecs has been added (Various)
- Tiny PNG encoder and decoder, tiny GIF decoder, PAM decoder (PPM with
alpha support), JPEG YUV colorspace support. (Fabrice Bellard)
- ffplay has been replaced with a newer version which uses SDL (optionally)
for multi platform support (fabrice)
- Sorenson Version 3 codec (SVQ3) support has been added (decoding only) - donated
by anonymous
- AMR format has been added (Johannes Carlsson)
- 3gp support has been added (Johannes Carlsson)
- VP3 codec has been added (Mike Melanson)
- more MPEG-1/2 fixes
- Better Multi platform support, MS Visual Studio fixes (various)
- Altivec optimizations (Magnus Damn and others)
- SH4 processor support has been added (BERO)
- New public interfaces (avcodec_get_pix_fmt) (Roman Shaposhnick)
- VOB Streaming support (Brian Foley)
- Better MP3 Autodetection (Andriy Rysin)
- qpel encoding (Michael)
- 4mv+b frames encoding finally fixed (Michael)
- chroma ME (Michael)
- 5 comparission functions for ME (Michael)
- b frame encoding speedup (Michael)
- wmv2 codec (unfinished - Michael)
- user specified diamond size for EPZS (Michael)
- Playstation STR playback subsystem, still experimental (Mike and Michael)
- ASV2 codec (Michael)
- CLJR decoder (Alex)
.. And lots more new enhances and fixes.
version 0.4.6:
- completely new integer only mpeg audio layer 1/2/3 decoder rewritten
from scratch.
- recoded dct and motion vector search with gcc (no longer depends on
nasm).
- fix quantization bug in AC3 encoder.
- added PCM codecs and format. Corrected wav/avi/asf pcm issues.
- added prototype ffplay program.
- added GOB header parsing on H.263/H.263+ decoder. (Juanjo)
- bug fix on MCBPC tables of H.263. (Juanjo)
- bug fix on DC coefficients of H.263. (Juanjo)
- added Advanced Prediction Mode on H.263/H.263+ decoder. (Juanjo)
- now we can decode H.263 streams found on QuickTime files. (Juanjo)
- now we can decode H.263 streams found on VIVO v1 files.(Juanjo)
- preliminary RTP "friendly" mode for H.263/H.263+ coding. (Juanjo)
- added GOB header for H.263/H.263+ coding on RTP mode. (Juanjo)
- now H.263 picture size is returned on the first decoded frame. (Juanjo)
- added first regression tests
- added MPEG2 TS demux
- new demux API for libav
- more accurate and faster IDCT (Michael)
- faster and entropy controlled motion search (Michael)
- two pass video encoding (Michael)
- new video rate control (Michael)
- added MSMPEG4V1, MSMPEGV2 and WMV1 support (Michael)
- great performance improvement of video encoders and decoders (Michael)
- new and faster bit readers and vlc parsers (Michael)
- high quality encoding mode : tries all macroblock/VLC types (Michael)
- added DV video decoder
- preliminary RTP/RTSP support in ffserver and libavformat
- H.263+ AIC decoding/encoding support. (Juanjo)
- VCD MPEG-PS mode. (Juanjo)
- PSNR stuff. (Juanjo)
- Simple stats output. (Juanjo)
- 16-bit and 15-bit rgb/bgr/gbr support (Bisqwit)
2004-05-25 23:49:26 +02:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/doc/ffserver.conf \
|
2007-12-22 01:05:25 +01:00
|
|
|
${DESTDIR}${PREFIX}/share/examples/ffmpeg
|
2004-05-10 15:41:10 +02:00
|
|
|
|
2009-06-12 18:25:34 +02:00
|
|
|
.include "options.mk"
|
|
|
|
|
2011-08-02 19:03:14 +02:00
|
|
|
.include "../../mk/compiler.mk"
|
|
|
|
|
2013-06-29 15:34:23 +02:00
|
|
|
# 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"
|
2013-08-02 20:24:18 +02:00
|
|
|
. if !empty(MACHINE_PLATFORM:MDarwin-*-i386) \
|
2013-08-14 19:54:06 +02:00
|
|
|
|| !empty(MACHINE_PLATFORM:MSunOS-*-i386) \
|
|
|
|
|| !empty(CC_VERSION:Mgcc-[123]*) \
|
|
|
|
|| !empty(CC_VERSION:Mgcc-4.[01]*) \
|
|
|
|
|| empty(CC_VERSION:Mgcc*)
|
2013-06-29 15:34:23 +02:00
|
|
|
CONFIGURE_ARGS+= --disable-asm
|
2013-08-02 20:24:18 +02:00
|
|
|
. elif !empty(CC_VERSION:Mgcc-4.[2345]*)
|
|
|
|
CFLAGS+= -mstackrealign -mpreferred-stack-boundary=4
|
|
|
|
. endif
|
2013-06-29 15:34:23 +02:00
|
|
|
.endif
|
|
|
|
|
2011-08-02 19:03:14 +02:00
|
|
|
.if !empty(PKGSRC_COMPILER:Mclang)
|
|
|
|
CFLAGS+= -no-integrated-as
|
|
|
|
.endif
|
|
|
|
|
2009-06-12 18:25:34 +02:00
|
|
|
.include "../../multimedia/ffmpeg/Makefile.common"
|