pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/multimedia/ffmpeg5 multimedia/ffmpeg5: import ffmpeg5-5.0



details:   https://anonhg.NetBSD.org/pkgsrc/rev/4688d19f31f7
branches:  trunk
changeset: 372866:4688d19f31f7
user:      ryoon <ryoon%pkgsrc.org@localhost>
date:      Mon Jan 31 23:16:41 2022 +0000

description:
multimedia/ffmpeg5: import ffmpeg5-5.0

FFmpeg is a complete, cross-platform solution to record, convert
and stream audio and video.  It includes libavcodec - the leading
audio/video codec library.

This package contains major version 5.

diffstat:

 multimedia/ffmpeg5/ALTERNATIVES                             |    2 +
 multimedia/ffmpeg5/DESCR                                    |    5 +
 multimedia/ffmpeg5/Makefile                                 |   44 +
 multimedia/ffmpeg5/Makefile.common                          |   85 +++
 multimedia/ffmpeg5/PLIST                                    |  266 +++++++++++
 multimedia/ffmpeg5/buildlink3.mk                            |   63 ++
 multimedia/ffmpeg5/distinfo                                 |   20 +
 multimedia/ffmpeg5/options.mk                               |  279 ++++++++++++
 multimedia/ffmpeg5/patches/patch-Makefile                   |   15 +
 multimedia/ffmpeg5/patches/patch-configure                  |   78 +++
 multimedia/ffmpeg5/patches/patch-doc_Makefile               |   31 +
 multimedia/ffmpeg5/patches/patch-doc_general__contents.texi |   14 +
 multimedia/ffmpeg5/patches/patch-doc_indevs.texi            |   42 +
 multimedia/ffmpeg5/patches/patch-doc_outdevs.texi           |   24 +
 multimedia/ffmpeg5/patches/patch-libavdevice_Makefile       |   15 +
 multimedia/ffmpeg5/patches/patch-libavdevice_alldevices.c   |   15 +
 multimedia/ffmpeg5/patches/patch-libavdevice_sunau.c        |  109 ++++
 multimedia/ffmpeg5/patches/patch-libavdevice_sunau.h        |   55 ++
 multimedia/ffmpeg5/patches/patch-libavdevice_sunau__dec.c   |  145 ++++++
 multimedia/ffmpeg5/patches/patch-libavdevice_sunau__enc.c   |  121 +++++
 multimedia/ffmpeg5/patches/patch-libavutil_macros.h         |   29 +
 multimedia/ffmpeg5/patches/patch-libavutil_x86_asm.h        |   18 +
 multimedia/ffmpeg5/patches/patch-libavutil_x86_cpu.c        |   22 +
 23 files changed, 1497 insertions(+), 0 deletions(-)

diffs (truncated from 1589 to 300 lines):

diff -r 4cfd6cde4f5d -r 4688d19f31f7 multimedia/ffmpeg5/ALTERNATIVES
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/multimedia/ffmpeg5/ALTERNATIVES   Mon Jan 31 23:16:41 2022 +0000
@@ -0,0 +1,2 @@
+bin/ffmpeg @PREFIX@/bin/ffmpeg5
+bin/ffprobe @PREFIX@/bin/ffprobe5
diff -r 4cfd6cde4f5d -r 4688d19f31f7 multimedia/ffmpeg5/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/multimedia/ffmpeg5/DESCR  Mon Jan 31 23:16:41 2022 +0000
@@ -0,0 +1,5 @@
+FFmpeg is a complete, cross-platform solution to record, convert
+and stream audio and video.  It includes libavcodec - the leading
+audio/video codec library.
+
+This package contains major version 5.
diff -r 4cfd6cde4f5d -r 4688d19f31f7 multimedia/ffmpeg5/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/multimedia/ffmpeg5/Makefile       Mon Jan 31 23:16:41 2022 +0000
@@ -0,0 +1,44 @@
+# $NetBSD: Makefile,v 1.1 2022/01/31 23:16:41 ryoon Exp $
+
+PKGNAME=       ${DISTNAME:S/ffmpeg/ffmpeg5/}
+MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=      https://ffmpeg.org/
+COMMENT=       Decoding, encoding and streaming software (v5.x)
+
+CONFIGURE_ARGS+=       --enable-avfilter
+CONFIGURE_ARGS+=       --enable-postproc
+CONFIGURE_ARGS+=       --enable-rpath
+CONFIGURE_ARGS+=       --disable-ffplay
+
+INSTALLATION_DIRS=     lib/ffmpeg5 share/doc/ffmpeg5 share/examples/ffmpeg5
+
+.include "../../mk/bsd.prefs.mk"
+
+.if !empty(USE_CROSS_COMPILE:M[yY][eE][sS])
+CONFIGURE_ARGS+=       --enable-cross-compile
+CONFIGURE_ARGS+=       --host-cc=${NATIVE_CC:Q}
+CONFIGURE_ARGS+=       --host-ld=${NATIVE_CC:Q}
+CONFIGURE_ARGS+=       --target-os=${LOWER_OPSYS}
+.endif
+
+PRINT_PLIST_AWK+=      /html/ { $$0 = "$${PLIST.doc}" $$0 }
+
+TEST_TARGET=   check
+
+post-install:
+       ${INSTALL_DATA} ${WRKSRC}/doc/*.txt \
+               ${DESTDIR}${PREFIX}/share/doc/ffmpeg5
+
+.include "options.mk"
+
+# disable asm on i386 to avoid text relocations
+.if ${MACHINE_ARCH} == "i386"
+CONFIGURE_ARGS+=       --disable-asm
+.endif
+
+# configure script uses uname -m to detect arch, as opposed to uname -p in
+# GNU/configure. Unable to detect NetBSD/macppc hosts correctly.
+CONFIGURE_ARGS+=       --arch=${MACHINE_ARCH}
+
+.include "../../multimedia/ffmpeg5/Makefile.common"
+.include "../../mk/bsd.pkg.mk"
diff -r 4cfd6cde4f5d -r 4688d19f31f7 multimedia/ffmpeg5/Makefile.common
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/multimedia/ffmpeg5/Makefile.common        Mon Jan 31 23:16:41 2022 +0000
@@ -0,0 +1,85 @@
+# $NetBSD: Makefile.common,v 1.1 2022/01/31 23:16:41 ryoon Exp $
+# used by multimedia/ffmpeg5/Makefile
+# used by multimedia/ffplay5/Makefile
+
+DISTNAME=      ffmpeg-5.0
+CATEGORIES=    multimedia
+MASTER_SITES=  http://www.ffmpeg.org/releases/
+EXTRACT_SUFX=  .tar.xz
+
+LICENSE=       gnu-lgpl-v2.1 AND gnu-gpl-v2 ${ADDITIONAL_LICENSE}
+
+PATCHDIR=      ${.CURDIR}/../../multimedia/ffmpeg5/patches
+
+USE_LIBTOOL=           yes
+USE_TOOLS+=            gmake pod2man perl pkg-config
+HAS_CONFIGURE=         yes
+CONFIGURE_ARGS+=       --cc=${CC:Q}
+CONFIGURE_ARGS+=       --disable-debug
+CONFIGURE_ARGS+=       --disable-optimizations
+CONFIGURE_ARGS+=       --disable-stripping
+CONFIGURE_ARGS+=       --enable-gpl
+CONFIGURE_ARGS+=       --enable-libxml2
+CONFIGURE_ARGS+=       --enable-pthreads
+CONFIGURE_ARGS+=       --enable-shared
+CONFIGURE_ARGS+=       --mandir=${PREFIX}/${PKGMANDIR}
+CONFIGURE_ARGS+=       --prefix=${PREFIX}
+
+CONFIGURE_ARGS+=       --progs-suffix=5
+CONFIGURE_ARGS+=       --datadir=${PREFIX}/share/ffmpeg5
+CONFIGURE_ARGS+=       --docdir=${PREFIX}/share/doc/ffmpeg5
+CONFIGURE_ARGS+=       --incdir=${PREFIX}/include/ffmpeg5
+CONFIGURE_ARGS+=       --libdir=${PREFIX}/lib/ffmpeg5
+CONFIGURE_ARGS+=       --shlibdir=${PREFIX}/lib/ffmpeg5
+LDFLAGS+=              ${COMPILER_RPATH_FLAG}${PREFIX}/lib/ffmpeg5
+
+.if !empty(MACHINE_PLATFORM:MDarwin-1[2-9].*-*) || !empty(MACHINE_PLATFORM:MDarwin-2*)
+CONFIGURE_ARGS+=       --enable-opencl
+.endif
+
+.if ${OPSYS} == "SunOS"
+USE_TOOLS+=    bash:build
+CONFIG_SHELL=  ${TOOLS_PATH.bash}
+.endif
+
+CONFIGURE_ARGS+=       --enable-runtime-cpudetect
+
+# Let's not put garbage into /tmp
+CONFIGURE_ENV+=                TMPDIR=${WRKSRC}/tmp
+
+.include "../../mk/compiler.mk"
+
+.if !empty(PKGSRC_COMPILER:Msunpro)
+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
+
+.if ${MACHINE_ARCH} == x86_64 || ${MACHINE_ARCH} == i386
+BUILD_DEPENDS+=        nasm>=2.13:../../devel/nasm
+.endif
+
+REPLACE_PERL+= doc/texi2pod.pl
+REPLACE_SH+=   configure
+REPLACE_SH+=   ffbuild/pkgconfig_generate.sh
+REPLACE_SH+=   ffbuild/version.sh
+
+PLIST_SRC+=    ${PKGDIR}/PLIST
+
+MAKE_ENV+=     EXTRA_LIBS=${LIBGETOPT:Q}
+
+pre-configure:
+       mkdir ${WRKSRC}/tmp
+
+.include "../../archivers/bzip2/buildlink3.mk"
+.include "../../archivers/xz/buildlink3.mk"
+.include "../../devel/libgetopt/buildlink3.mk"
+.include "../../devel/zlib/buildlink3.mk"
+.include "../../textproc/libxml2/buildlink3.mk"
+.include "../../mk/atomic64.mk"
+.include "../../mk/pthread.buildlink3.mk"
diff -r 4cfd6cde4f5d -r 4688d19f31f7 multimedia/ffmpeg5/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/multimedia/ffmpeg5/PLIST  Mon Jan 31 23:16:41 2022 +0000
@@ -0,0 +1,266 @@
+@comment $NetBSD: PLIST,v 1.1 2022/01/31 23:16:41 ryoon Exp $
+bin/ffmpeg5
+bin/ffprobe5
+include/ffmpeg5/libavcodec/ac3_parser.h
+include/ffmpeg5/libavcodec/adts_parser.h
+include/ffmpeg5/libavcodec/avcodec.h
+include/ffmpeg5/libavcodec/avdct.h
+include/ffmpeg5/libavcodec/avfft.h
+include/ffmpeg5/libavcodec/bsf.h
+include/ffmpeg5/libavcodec/codec.h
+include/ffmpeg5/libavcodec/codec_desc.h
+include/ffmpeg5/libavcodec/codec_id.h
+include/ffmpeg5/libavcodec/codec_par.h
+include/ffmpeg5/libavcodec/d3d11va.h
+include/ffmpeg5/libavcodec/defs.h
+include/ffmpeg5/libavcodec/dirac.h
+include/ffmpeg5/libavcodec/dv_profile.h
+include/ffmpeg5/libavcodec/dxva2.h
+include/ffmpeg5/libavcodec/jni.h
+include/ffmpeg5/libavcodec/mediacodec.h
+include/ffmpeg5/libavcodec/packet.h
+include/ffmpeg5/libavcodec/qsv.h
+include/ffmpeg5/libavcodec/vdpau.h
+include/ffmpeg5/libavcodec/version.h
+include/ffmpeg5/libavcodec/videotoolbox.h
+include/ffmpeg5/libavcodec/vorbis_parser.h
+include/ffmpeg5/libavcodec/xvmc.h
+include/ffmpeg5/libavdevice/avdevice.h
+include/ffmpeg5/libavdevice/version.h
+include/ffmpeg5/libavfilter/avfilter.h
+include/ffmpeg5/libavfilter/buffersink.h
+include/ffmpeg5/libavfilter/buffersrc.h
+include/ffmpeg5/libavfilter/version.h
+include/ffmpeg5/libavformat/avformat.h
+include/ffmpeg5/libavformat/avio.h
+include/ffmpeg5/libavformat/version.h
+include/ffmpeg5/libavutil/adler32.h
+include/ffmpeg5/libavutil/aes.h
+include/ffmpeg5/libavutil/aes_ctr.h
+include/ffmpeg5/libavutil/attributes.h
+include/ffmpeg5/libavutil/audio_fifo.h
+include/ffmpeg5/libavutil/avassert.h
+include/ffmpeg5/libavutil/avconfig.h
+include/ffmpeg5/libavutil/avstring.h
+include/ffmpeg5/libavutil/avutil.h
+include/ffmpeg5/libavutil/base64.h
+include/ffmpeg5/libavutil/blowfish.h
+include/ffmpeg5/libavutil/bprint.h
+include/ffmpeg5/libavutil/bswap.h
+include/ffmpeg5/libavutil/buffer.h
+include/ffmpeg5/libavutil/camellia.h
+include/ffmpeg5/libavutil/cast5.h
+include/ffmpeg5/libavutil/channel_layout.h
+include/ffmpeg5/libavutil/common.h
+include/ffmpeg5/libavutil/cpu.h
+include/ffmpeg5/libavutil/crc.h
+include/ffmpeg5/libavutil/des.h
+include/ffmpeg5/libavutil/detection_bbox.h
+include/ffmpeg5/libavutil/dict.h
+include/ffmpeg5/libavutil/display.h
+include/ffmpeg5/libavutil/dovi_meta.h
+include/ffmpeg5/libavutil/downmix_info.h
+include/ffmpeg5/libavutil/encryption_info.h
+include/ffmpeg5/libavutil/error.h
+include/ffmpeg5/libavutil/eval.h
+include/ffmpeg5/libavutil/ffversion.h
+include/ffmpeg5/libavutil/fifo.h
+include/ffmpeg5/libavutil/file.h
+include/ffmpeg5/libavutil/film_grain_params.h
+include/ffmpeg5/libavutil/frame.h
+include/ffmpeg5/libavutil/hash.h
+include/ffmpeg5/libavutil/hdr_dynamic_metadata.h
+include/ffmpeg5/libavutil/hmac.h
+include/ffmpeg5/libavutil/hwcontext.h
+include/ffmpeg5/libavutil/hwcontext_cuda.h
+include/ffmpeg5/libavutil/hwcontext_d3d11va.h
+include/ffmpeg5/libavutil/hwcontext_drm.h
+include/ffmpeg5/libavutil/hwcontext_dxva2.h
+include/ffmpeg5/libavutil/hwcontext_mediacodec.h
+include/ffmpeg5/libavutil/hwcontext_opencl.h
+include/ffmpeg5/libavutil/hwcontext_qsv.h
+include/ffmpeg5/libavutil/hwcontext_vaapi.h
+include/ffmpeg5/libavutil/hwcontext_vdpau.h
+include/ffmpeg5/libavutil/hwcontext_videotoolbox.h
+include/ffmpeg5/libavutil/hwcontext_vulkan.h
+include/ffmpeg5/libavutil/imgutils.h
+include/ffmpeg5/libavutil/intfloat.h
+include/ffmpeg5/libavutil/intreadwrite.h
+include/ffmpeg5/libavutil/lfg.h
+include/ffmpeg5/libavutil/log.h
+include/ffmpeg5/libavutil/lzo.h
+include/ffmpeg5/libavutil/macros.h
+include/ffmpeg5/libavutil/mastering_display_metadata.h
+include/ffmpeg5/libavutil/mathematics.h
+include/ffmpeg5/libavutil/md5.h
+include/ffmpeg5/libavutil/mem.h
+include/ffmpeg5/libavutil/motion_vector.h
+include/ffmpeg5/libavutil/murmur3.h
+include/ffmpeg5/libavutil/opt.h
+include/ffmpeg5/libavutil/parseutils.h
+include/ffmpeg5/libavutil/pixdesc.h
+include/ffmpeg5/libavutil/pixelutils.h
+include/ffmpeg5/libavutil/pixfmt.h
+include/ffmpeg5/libavutil/random_seed.h
+include/ffmpeg5/libavutil/rational.h
+include/ffmpeg5/libavutil/rc4.h
+include/ffmpeg5/libavutil/replaygain.h
+include/ffmpeg5/libavutil/ripemd.h
+include/ffmpeg5/libavutil/samplefmt.h
+include/ffmpeg5/libavutil/sha.h
+include/ffmpeg5/libavutil/sha512.h
+include/ffmpeg5/libavutil/spherical.h
+include/ffmpeg5/libavutil/stereo3d.h
+include/ffmpeg5/libavutil/tea.h
+include/ffmpeg5/libavutil/threadmessage.h
+include/ffmpeg5/libavutil/time.h
+include/ffmpeg5/libavutil/timecode.h
+include/ffmpeg5/libavutil/timestamp.h
+include/ffmpeg5/libavutil/tree.h
+include/ffmpeg5/libavutil/twofish.h
+include/ffmpeg5/libavutil/tx.h
+include/ffmpeg5/libavutil/version.h
+include/ffmpeg5/libavutil/video_enc_params.h
+include/ffmpeg5/libavutil/xtea.h
+include/ffmpeg5/libpostproc/postprocess.h
+include/ffmpeg5/libpostproc/version.h
+include/ffmpeg5/libswresample/swresample.h
+include/ffmpeg5/libswresample/version.h
+include/ffmpeg5/libswscale/swscale.h
+include/ffmpeg5/libswscale/version.h
+lib/ffmpeg5/libavcodec.a
+lib/ffmpeg5/libavcodec.so
+lib/ffmpeg5/libavcodec.so.59
+lib/ffmpeg5/libavcodec.so.59.18.100
+lib/ffmpeg5/libavdevice.a
+lib/ffmpeg5/libavdevice.so
+lib/ffmpeg5/libavdevice.so.59
+lib/ffmpeg5/libavdevice.so.59.4.100
+lib/ffmpeg5/libavfilter.a
+lib/ffmpeg5/libavfilter.so
+lib/ffmpeg5/libavfilter.so.8
+lib/ffmpeg5/libavfilter.so.8.24.100
+lib/ffmpeg5/libavformat.a
+lib/ffmpeg5/libavformat.so



Home | Main Index | Thread Index | Old Index