pkgsrc/multimedia/ffmpeg010/Makefile.common

84 lines
2.3 KiB
Text
Raw Normal View History

Update ffmpeg010 to 0.10.8. version 0.10.8 - kmvc: Clip pixel position to valid range - kmvc: use fixed sized arrays in the context - indeo: use a typedef for the mc function pointer - lavc: check for overflow in init_get_bits - mjpegdec: properly report unsupported disabled features - jpegls: return meaningful errors - jpegls: factorize return paths - jpegls: check the scan offset - wavpack: validate samples size parsed in wavpack_decode_block - ljpeg: use the correct number of components in yuv - mjpeg: Validate sampling factors - mjpegdec: validate parameters in mjpeg_decode_scan_progressive_ac - wavpack: check packet size early - wavpack: return meaningful errors - apetag: use int64_t for filesize - tiff: do not overread the source buffer - Prepare for 0.8.8 Release - smacker: fix an off by one in huff.length computation - smacker: check the return value of smacker_decode_tree - smacker: pad the extradata allocation - smacker: check frame size validity - vmdav: convert to bytestream2 - 4xm: don't rely on get_buffer() initializing the frame. - 4xm: check the return value of read_huffman_tables(). - 4xm: use the correct logging context - 4xm: reject frames not compatible with the declared version - 4xm: check bitstream_size boundary before using it - 4xm: do not overread the source buffer in decode_p_block - avfiltergraph: check for sws opts being non-NULL before using them - bmv: check for len being valid in bmv_decode_frame() - dfa: check for invalid access in decode_wdlt() - indeo3: check motion vectors - indeo3: fix data size check - indeo3: switch parsing the header to bytestream2 - lavf: make sure stream probe data gets freed. - oggdec: fix faulty cleanup prototype - oma: Validate sample rates - qdm2: check that the FFT size is a power of 2 - rv10: check that extradata is large enough - xmv: check audio track parameters validity - xmv: do not leak memory in the error paths in xmv_read_header() - aac: check the maximum number of channels - indeo3: fix off by one in MV validity check, Bug #503 - id3v2: check for end of file while unescaping tags - wav: Always seek to an even offset, Bug #500, LP: #1174737 - proresdec: support mixed interlaced/non-interlaced content
2013-08-03 11:22:58 +02:00
# $NetBSD: Makefile.common,v 1.8 2013/08/03 09:22:58 obache Exp $
# used by multimedia/ffmpeg010/Makefile
DISTNAME= ffmpeg-${DISTVERSION:S/-//g}
CATEGORIES= multimedia
MASTER_SITES= http://www.ffmpeg.org/releases/
EXTRACT_SUFX= .tar.bz2
Update ffmpeg010 to 0.10.8. version 0.10.8 - kmvc: Clip pixel position to valid range - kmvc: use fixed sized arrays in the context - indeo: use a typedef for the mc function pointer - lavc: check for overflow in init_get_bits - mjpegdec: properly report unsupported disabled features - jpegls: return meaningful errors - jpegls: factorize return paths - jpegls: check the scan offset - wavpack: validate samples size parsed in wavpack_decode_block - ljpeg: use the correct number of components in yuv - mjpeg: Validate sampling factors - mjpegdec: validate parameters in mjpeg_decode_scan_progressive_ac - wavpack: check packet size early - wavpack: return meaningful errors - apetag: use int64_t for filesize - tiff: do not overread the source buffer - Prepare for 0.8.8 Release - smacker: fix an off by one in huff.length computation - smacker: check the return value of smacker_decode_tree - smacker: pad the extradata allocation - smacker: check frame size validity - vmdav: convert to bytestream2 - 4xm: don't rely on get_buffer() initializing the frame. - 4xm: check the return value of read_huffman_tables(). - 4xm: use the correct logging context - 4xm: reject frames not compatible with the declared version - 4xm: check bitstream_size boundary before using it - 4xm: do not overread the source buffer in decode_p_block - avfiltergraph: check for sws opts being non-NULL before using them - bmv: check for len being valid in bmv_decode_frame() - dfa: check for invalid access in decode_wdlt() - indeo3: check motion vectors - indeo3: fix data size check - indeo3: switch parsing the header to bytestream2 - lavf: make sure stream probe data gets freed. - oggdec: fix faulty cleanup prototype - oma: Validate sample rates - qdm2: check that the FFT size is a power of 2 - rv10: check that extradata is large enough - xmv: check audio track parameters validity - xmv: do not leak memory in the error paths in xmv_read_header() - aac: check the maximum number of channels - indeo3: fix off by one in MV validity check, Bug #503 - id3v2: check for end of file while unescaping tags - wav: Always seek to an even offset, Bug #500, LP: #1174737 - proresdec: support mixed interlaced/non-interlaced content
2013-08-03 11:22:58 +02:00
DISTVERSION= 0.10.8
PATCHDIR= ${.CURDIR}/../../multimedia/ffmpeg010/patches
HAS_CONFIGURE= YES
USE_LANGUAGES+= c99
USE_LIBTOOL= YES
USE_TOOLS+= gmake texi2html pod2man
.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}
# Let's not put garbage into /tmp
CONFIGURE_ENV+= TMPDIR=${WRKSRC}/tmp
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-mmx2
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
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"