ad973275e3
- aecho filter - perspective filter ported from libmpcodecs - ffprobe -show_programs option - compand filter - RTMP seek support - when transcoding with ffmpeg (i.e. not streamcopying), -ss is now accurate even when used as an input option. Previous behavior can be restored with the -noaccurate_seek option. - ffmpeg -t option can now be used for inputs, to limit the duration of data read from an input file - incomplete Voxware MetaSound decoder - read EXIF metadata from JPEG - DVB teletext decoder - phase filter ported from libmpcodecs - w3fdif filter - Opus support in Matroska - FFV1 version 1.3 is stable and no longer experimental - FFV1: YUVA(444,422,420) 9, 10 and 16 bit support - changed DTS stream id in lavf mpeg ps muxer from 0x8a to 0x88, to be more consistent with other muxers. - adelay filter - pullup filter ported from libmpcodecs - ffprobe -read_intervals option - Lossless and alpha support for WebP decoder - Error Resilient AAC syntax (ER AAC LC) decoding - Low Delay AAC (ER AAC LD) decoding - mux chapters in ASF files - SFTP protocol (via libssh) - libx264: add ability to encode in YUVJ422P and YUVJ444P - Fraps: use BT.709 colorspace by default for yuv, as reference fraps decoder does - make decoding alpha optional for prores, ffv1 and vp6 by setting the skip_alpha flag. - ladspa wrapper filter - native VP9 decoder - dpx parser - max_error_rate parameter in ffmpeg - PulseAudio output device - ReplayGain scanner - Enhanced Low Delay AAC (ER AAC ELD) decoding (no LD SBR support) - Linux framebuffer output device - HEVC decoder, raw HEVC demuxer, HEVC demuxing in TS, Matroska and MP4 - mergeplanes filter
96 lines
2.7 KiB
Text
96 lines
2.7 KiB
Text
# $NetBSD: Makefile.common,v 1.6 2013/10/30 07:08:23 adam Exp $
|
|
# used by multimedia/ffmpeg2/Makefile
|
|
# used by multimedia/ffplay2/Makefile
|
|
|
|
DISTNAME= ffmpeg-2.1
|
|
CATEGORIES= multimedia
|
|
MASTER_SITES= http://www.ffmpeg.org/releases/
|
|
EXTRACT_SUFX= .tar.bz2
|
|
|
|
LICENSE= gnu-lgpl-v2.1 AND gnu-gpl-v2
|
|
|
|
PREV_PKGPATH= multimedia/ffmpeg-devel
|
|
PATCHDIR= ${.CURDIR}/../../multimedia/ffmpeg2/patches
|
|
|
|
USE_LANGUAGES= c99
|
|
USE_LIBTOOL= yes
|
|
USE_TOOLS+= gmake texi2html pod2man
|
|
HAS_CONFIGURE= yes
|
|
CONFIGURE_ARGS+= --cc=${CC:Q}
|
|
CONFIGURE_ARGS+= --disable-debug
|
|
CONFIGURE_ARGS+= --disable-optimizations
|
|
CONFIGURE_ARGS+= --disable-stripping
|
|
CONFIGURE_ARGS+= --enable-shared
|
|
CONFIGURE_ARGS+= --enable-pthreads
|
|
CONFIGURE_ARGS+= --enable-gpl
|
|
CONFIGURE_ARGS+= --mandir=${PREFIX}/${PKGMANDIR}
|
|
CONFIGURE_ARGS+= --prefix=${PREFIX}
|
|
|
|
CONFIGURE_ARGS+= --progs-suffix=2
|
|
CONFIGURE_ARGS+= --datadir=${PREFIX}/share/ffmpeg2
|
|
CONFIGURE_ARGS+= --incdir=${PREFIX}/include/ffmpeg2
|
|
CONFIGURE_ARGS+= --libdir=${PREFIX}/lib/ffmpeg2
|
|
CONFIGURE_ARGS+= --shlibdir=${PREFIX}/lib/ffmpeg2
|
|
LDFLAGS+= -Wl,-R${PREFIX}/lib/ffmpeg2
|
|
|
|
PLIST_VARS+= opencl
|
|
|
|
.if !empty(MACHINE_PLATFORM:MDarwin-1[23456789].*-*)
|
|
CONFIGURE_ARGS+= --enable-opencl
|
|
PLIST.opencl= yes
|
|
.endif
|
|
|
|
.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}
|
|
|
|
pre-configure:
|
|
mkdir ${WRKSRC}/tmp
|
|
|
|
.include "../../archivers/bzip2/buildlink3.mk"
|
|
.include "../../devel/libgetopt/buildlink3.mk"
|
|
.include "../../devel/zlib/buildlink3.mk"
|
|
.include "../../mk/pthread.buildlink3.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|