pkgsrc/multimedia/ffmpeg/Makefile.common

86 lines
2.4 KiB
Text
Raw Normal View History

# $NetBSD: Makefile.common,v 1.26 2012/12/18 10:48:09 jperkin Exp $
# used by multimedia/ffplay/Makefile
2010-09-06 00:55:18 +02:00
# used by multimedia/ffmpeg/Makefile
DISTNAME= ffmpeg-${DISTVERSION:S/-//g}
CATEGORIES= multimedia
MASTER_SITES= http://www.ffmpeg.org/releases/
EXTRACT_SUFX= .tar.bz2
Changes 1.0: - INI and flat output in ffprobe - Scene detection in libavfilter - Indeo Audio decoder - channelsplit audio filter - setnsamples audio filter - atempo filter - ffprobe -show_data option - RTMPT protocol support - iLBC encoding/decoding via libilbc - Microsoft Screen 1 decoder - join audio filter - audio channel mapping filter - Microsoft ATC Screen decoder - RTSP listen mode - TechSmith Screen Codec 2 decoder - AAC encoding via libfdk-aac - Microsoft Expression Encoder Screen decoder - RTMPS protocol support - RTMPTS protocol support - RTMPE protocol support - RTMPTE protocol support - showwaves and showspectrum filter - LucasArts SMUSH playback support - SAMI, RealText and SubViewer demuxers and decoders - Heart Of Darkness PAF playback support - iec61883 device - asettb filter - new option: -progress - 3GPP Timed Text encoder/decoder - GeoTIFF decoder support - ffmpeg -(no)stdin option - Opus decoder using libopus - caca output device using libcaca - alphaextract and alphamerge filters - concat filter - flite filter - Canopus Lossless Codec decoder - bitmap subtitles in filters (experimental and temporary) - MP2 encoding via TwoLAME - bmp parser - smptebars source - asetpts filter - hue filter - ICO muxer - SubRip encoder and decoder without embedded timing - edge detection filter - framestep filter - ffmpeg -shortest option is now per-output file -pass and -passlogfile are now per-output stream - volume measurement filter - Ut Video encoder - Microsoft Screen 2 decoder - Matroska demuxer now identifies SRT subtitles as AV_CODEC_ID_SUBRIP instead of AV_CODEC_ID_TEXT - smartblur filter ported from MPlayer - CPiA decoder - decimate filter ported from MPlayer - RTP depacketization of JPEG - Smooth Streaming live segmenter muxer - F4V muxer - sendcmd and asendcmd filters - WebVTT demuxer and decoder (simple tags supported) - RTP packetization of JPEG - faststart option in the MOV/MP4 muxer
2012-11-08 20:57:29 +01:00
LICENSE= gnu-lgpl-v2.1 AND gnu-gpl-v2
DISTVERSION= 1.0.1
PREV_PKGPATH= multimedia/ffmpeg-devel
PATCHDIR= ${.CURDIR}/../../multimedia/ffmpeg/patches
Changes 1.0: - INI and flat output in ffprobe - Scene detection in libavfilter - Indeo Audio decoder - channelsplit audio filter - setnsamples audio filter - atempo filter - ffprobe -show_data option - RTMPT protocol support - iLBC encoding/decoding via libilbc - Microsoft Screen 1 decoder - join audio filter - audio channel mapping filter - Microsoft ATC Screen decoder - RTSP listen mode - TechSmith Screen Codec 2 decoder - AAC encoding via libfdk-aac - Microsoft Expression Encoder Screen decoder - RTMPS protocol support - RTMPTS protocol support - RTMPE protocol support - RTMPTE protocol support - showwaves and showspectrum filter - LucasArts SMUSH playback support - SAMI, RealText and SubViewer demuxers and decoders - Heart Of Darkness PAF playback support - iec61883 device - asettb filter - new option: -progress - 3GPP Timed Text encoder/decoder - GeoTIFF decoder support - ffmpeg -(no)stdin option - Opus decoder using libopus - caca output device using libcaca - alphaextract and alphamerge filters - concat filter - flite filter - Canopus Lossless Codec decoder - bitmap subtitles in filters (experimental and temporary) - MP2 encoding via TwoLAME - bmp parser - smptebars source - asetpts filter - hue filter - ICO muxer - SubRip encoder and decoder without embedded timing - edge detection filter - framestep filter - ffmpeg -shortest option is now per-output file -pass and -passlogfile are now per-output stream - volume measurement filter - Ut Video encoder - Microsoft Screen 2 decoder - Matroska demuxer now identifies SRT subtitles as AV_CODEC_ID_SUBRIP instead of AV_CODEC_ID_TEXT - smartblur filter ported from MPlayer - CPiA decoder - decimate filter ported from MPlayer - RTP depacketization of JPEG - Smooth Streaming live segmenter muxer - F4V muxer - sendcmd and asendcmd filters - WebVTT demuxer and decoder (simple tags supported) - RTP packetization of JPEG - faststart option in the MOV/MP4 muxer
2012-11-08 20:57:29 +01:00
USE_LANGUAGES= c99
USE_LIBTOOL= yes
USE_TOOLS+= gmake texi2html pod2man
HAS_CONFIGURE= yes
CONFIGURE_ARGS+= --mandir=${PREFIX}/${PKGMANDIR}
CONFIGURE_ARGS+= --cc=${CC:Q}
CONFIGURE_ARGS+= --prefix=${PREFIX}
CONFIGURE_ARGS+= --disable-debug
CONFIGURE_ARGS+= --disable-optimizations
CONFIGURE_ARGS+= --disable-stripping
CONFIGURE_ARGS+= --enable-shared
CONFIGURE_ARGS+= --enable-pthreads
CONFIGURE_ARGS+= --enable-gpl
.if ${OPSYS} == "SunOS"
CONFIGURE_ARGS+= --disable-amd3dnow
CONFIGURE_ARGS+= --disable-amd3dnowext
CONFIGURE_ARGS+= --disable-mmx
CONFIGURE_ARGS+= --disable-sse
CONFIGURE_ARGS+= --disable-ssse3
.else
CONFIGURE_ARGS+= --enable-runtime-cpudetect
.endif
# 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}
# LOCALBASE=${LOCALBASE:Q}
pre-configure:
mkdir ${WRKSRC}/tmp
.include "../../mk/pthread.buildlink3.mk"
.include "../../archivers/bzip2/buildlink3.mk"
.include "../../devel/libgetopt/buildlink3.mk"
.include "../../devel/zlib/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"