Advertisement
Goodevil95

ffmpeg-v4l2-request-git

Feb 16th, 2024
1,054
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 4.32 KB | None | 0 0
  1. # Maintainer: Eric Woudstra <ericwouds AT gmail DOT com>
  2.  
  3. # Contributor: Yatao Li
  4. # Contributor: Maxime Gauduin <alucryd@archlinux.org>
  5. # Contributor: Bartłomiej Piotrowski <bpiotrowski@archlinux.org>
  6. # Contributor: Ionut Biru <ibiru@archlinux.org>
  7. # Contributor: Tom Newsom <Jeepster@gmx.co.uk>
  8. # Contributor: Paul Mattal <paul@archlinux.org>
  9.  
  10. # ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
  11. #  - use -fPIC in host cflags for v7/v8 to fix print_options.c compile
  12. #  - remove makedepends on ffnvcodec-headers, remove --enable-nvenc, --enable-nvdec
  13. #  - remove depends on aom, remove --enable-libaom
  14. #  - remove depends on intel-media-sdk, remove --enable-libmfx
  15. #  - remove depends on vmaf, remove --enable-vmaf
  16. #  - remove depends on rav1e, remove --enable-librav1e
  17. #  - remove depends on svt-av1, remove --enable-libsvtav1
  18. #  - remove --enable-lto
  19.  
  20. pkgname=ffmpeg-v4l2-request-git
  21. # pkgname=ffmpeg
  22. _srcname=FFmpeg
  23. _version='6.1.1'
  24. pkgver=6.1.1.r112629.71a1f3f
  25. pkgrel=1
  26. epoch=2
  27. pkgdesc='FFmpeg with v4l2-request and drmprime'
  28. arch=('armv7h' 'aarch64')
  29. url=https://ffmpeg.org/
  30. license=(GPL3)
  31. depends=(
  32.   alsa-lib
  33.   bzip2
  34.   fontconfig
  35.   fribidi
  36.   gmp
  37.   gnutls
  38.   gsm
  39.   jack
  40.   lame
  41.   libass.so
  42.   libavc1394
  43.   libbluray.so
  44.   libbs2b.so
  45.   libdav1d.so
  46.   libdrm
  47.   libfreetype.so
  48.   libgl
  49.   libiec61883
  50.   libjxl.so
  51.   libmodplug
  52.   libopenmpt.so
  53.   libpulse
  54.   libraw1394
  55.   librsvg-2.so
  56.   libsoxr
  57.   libssh
  58.   libtheora
  59.   libva.so
  60.   libva-drm.so
  61.   libva-x11.so
  62.   libvdpau
  63.   libvidstab.so
  64.   libvorbisenc.so
  65.   libvorbis.so
  66.   libvpx.so
  67.   libvulkan.so
  68.   libwebp
  69.   libx11
  70.   libx264.so
  71.   libx265.so
  72.   libxcb
  73.   libxext
  74.   libxml2
  75.   libxv
  76.   libxvidcore.so
  77.   libzimg.so
  78.   ocl-icd
  79.   opencore-amr
  80.   openjpeg2
  81.   opus
  82.   sdl2
  83.   speex
  84.   srt
  85.   v4l-utils
  86.   xz
  87.   zlib
  88. )
  89. makedepends=(
  90.   amf-headers
  91.   avisynthplus
  92.   clang
  93.   git
  94.   ladspa
  95.   linux-api-headers
  96.   mesa
  97.   nasm
  98.   opencl-headers
  99.   vulkan-headers
  100. )
  101. optdepends=(
  102.   'avisynthplus: AviSynthPlus support'
  103.   'ladspa: LADSPA filters'
  104. )
  105. provides=(
  106.   libavcodec.so
  107.   libavdevice.so
  108.   libavfilter.so
  109.   libavformat.so
  110.   libavutil.so
  111.   libpostproc.so
  112.   libswresample.so
  113.   libswscale.so
  114.   ffmpeg)
  115. conflicts=(
  116.   ffmpeg
  117. )
  118. source=(
  119.   'git+https://github.com/Kwiboo/FFmpeg#branch=v4l2-request-n'$_version
  120. )
  121. sha256sums=(
  122.   SKIP
  123. )
  124.  
  125. pkgver() {
  126.   cd ${_srcname}
  127.   printf '%s.r%s.%s' "$_version" "$(git rev-list --count HEAD)" "$(git rev-parse --short=7 HEAD)"
  128. }
  129.  
  130. build() {
  131.   cd ${_srcname}
  132.  
  133.   [[ $CARCH == "armv7h" || $CARCH == "aarch64" ]] && CONFIG='--host-cflags="-fPIC"'
  134.   [[ $CARCH == "armv6h" || $CARCH == 'arm' ]] && CONFIG='--extra-libs="-latomic"'
  135.  
  136.   ./configure \
  137.     --prefix=/usr \
  138.     --disable-debug \
  139.     --disable-static \
  140.     --disable-stripping \
  141.     --enable-amf \
  142.     --enable-avisynth \
  143.     --enable-cuda-llvm \
  144.     --enable-fontconfig \
  145.     --enable-gmp \
  146.     --enable-gnutls \
  147.     --enable-gpl \
  148.     --enable-ladspa \
  149.     --enable-libass \
  150.     --enable-libbluray \
  151.     --enable-libbs2b \
  152.     --enable-libdav1d \
  153.     --enable-libdrm \
  154.     --enable-libfreetype \
  155.     --enable-libfribidi \
  156.     --enable-libgsm \
  157.     --enable-libiec61883 \
  158.     --enable-libjack \
  159.     --enable-libjxl \
  160.     --enable-libmodplug \
  161.     --enable-libmp3lame \
  162.     --enable-libopencore_amrnb \
  163.     --enable-libopencore_amrwb \
  164.     --enable-libopenjpeg \
  165.     --enable-libopenmpt \
  166.     --enable-libopus \
  167.     --enable-libpulse \
  168.     --enable-librsvg \
  169.     --enable-libsoxr \
  170.     --enable-libspeex \
  171.     --enable-libsrt \
  172.     --enable-libssh \
  173.     --enable-libtheora \
  174.     --enable-libv4l2 \
  175.     --enable-libvidstab \
  176.     --enable-libvorbis \
  177.     --enable-libvpx \
  178.     --enable-libwebp \
  179.     --enable-libx264 \
  180.     --enable-libx265 \
  181.     --enable-libxcb \
  182.     --enable-libxml2 \
  183.     --enable-libxvid \
  184.     --enable-libzimg \
  185.     --enable-opencl \
  186.     --enable-opengl \
  187.     --enable-shared \
  188.     --enable-version3 \
  189.     --enable-vulkan $CONFIG \
  190.     \
  191.     --arch=$CARCH \
  192.     --enable-v4l2_m2m \
  193.     --enable-v4l2-request \
  194.     --enable-libudev \
  195.     --enable-omx \
  196.     --enable-pic \
  197.     --enable-neon \
  198.     $CONFIG
  199.  
  200.   make
  201.   make tools/qt-faststart
  202.   make doc/ff{mpeg,play}.1
  203. }
  204.  
  205. package() {
  206.   cd ${_srcname}
  207.  
  208.   make DESTDIR="${pkgdir}" install install-man
  209.   install -Dm 755 tools/qt-faststart "${pkgdir}"/usr/bin/
  210. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement