PKGBUILD 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215
  1. # Maintainer: Maxime Gauduin <alucryd@archlinux.org>
  2. # Contributor: Bartłomiej Piotrowski <bpiotrowski@archlinux.org>
  3. # Contributor: Ionut Biru <ibiru@archlinux.org>
  4. # Contributor: Tom Newsom <Jeepster@gmx.co.uk>
  5. # Contributor: Paul Mattal <paul@archlinux.org>
  6. # Libre Version without non-free CUDA support
  7. pkgname=ffmpeg
  8. pkgver=4.2.2
  9. pkgrel=6
  10. pkgrel+=.parabola1
  11. epoch=1
  12. pkgdesc='Complete solution to record, convert and stream audio and video'
  13. arch=('x86_64' 'i686' 'armv7h')
  14. url=https://ffmpeg.org/
  15. license=(GPL3)
  16. depends=(
  17. alsa-lib
  18. aom
  19. bzip2
  20. fontconfig
  21. fribidi
  22. gmp
  23. gnutls
  24. gsm
  25. jack
  26. lame
  27. libass.so
  28. libavc1394
  29. libbluray.so
  30. libdav1d.so
  31. libdrm
  32. libfreetype.so
  33. libiec61883
  34. libmodplug
  35. libomxil-bellagio
  36. libpulse
  37. libraw1394
  38. libsoxr
  39. libssh
  40. libtheora
  41. libva.so
  42. libva-drm.so
  43. libva-x11.so
  44. libvdpau
  45. libvidstab.so
  46. libvorbisenc.so
  47. libvorbis.so
  48. libvpx.so
  49. libwebp
  50. libx11
  51. libx264.so
  52. libx265.so
  53. libxcb
  54. libxext
  55. libxml2
  56. libxv
  57. libxvidcore.so
  58. opencore-amr
  59. openjpeg2
  60. opus
  61. sdl2
  62. speex
  63. v4l-utils
  64. xz
  65. zlib
  66. )
  67. if [ "$CARCH" != "armv7h" ]; then
  68. depends+=(libmfx)
  69. fi
  70. makedepends=(
  71. git
  72. ladspa
  73. nasm
  74. )
  75. optdepends=(
  76. 'intel-media-sdk: Intel QuickSync support'
  77. 'ladspa: LADSPA filters'
  78. )
  79. provides=(
  80. libavcodec.so
  81. libavdevice.so
  82. libavfilter.so
  83. libavformat.so
  84. libavutil.so
  85. libpostproc.so
  86. libswresample.so
  87. libswscale.so
  88. )
  89. source=(git+https://git.ffmpeg.org/ffmpeg.git#tag=192d1d34eb3668fa27f433e96036340e1e5077a0)
  90. sha256sums=('SKIP')
  91. pkgver() {
  92. cd ffmpeg
  93. git describe --tags | sed 's/^n//'
  94. }
  95. prepare() {
  96. cd ffmpeg
  97. git cherry-pick -n dc0806dd25882f41f6085c8356712f95fded56c7
  98. }
  99. build() {
  100. cd ffmpeg
  101. if [ "$CARCH" != "armv7h" ]; then
  102. ./configure \
  103. --prefix=/usr \
  104. --disable-debug \
  105. --disable-static \
  106. --disable-stripping \
  107. --enable-fontconfig \
  108. --enable-gmp \
  109. --enable-gnutls \
  110. --enable-gpl \
  111. --enable-ladspa \
  112. --enable-libaom \
  113. --enable-libass \
  114. --enable-libbluray \
  115. --enable-libdav1d \
  116. --enable-libdrm \
  117. --enable-libfreetype \
  118. --enable-libfribidi \
  119. --enable-libgsm \
  120. --enable-libiec61883 \
  121. --enable-libjack \
  122. --enable-libmfx \
  123. --enable-libmodplug \
  124. --enable-libmp3lame \
  125. --enable-libopencore_amrnb \
  126. --enable-libopencore_amrwb \
  127. --enable-libopenjpeg \
  128. --enable-libopus \
  129. --enable-libpulse \
  130. --enable-libsoxr \
  131. --enable-libspeex \
  132. --enable-libssh \
  133. --enable-libtheora \
  134. --enable-libv4l2 \
  135. --enable-libvidstab \
  136. --enable-libvorbis \
  137. --enable-libvpx \
  138. --enable-libwebp \
  139. --enable-libx264 \
  140. --enable-libx265 \
  141. --enable-libxcb \
  142. --enable-libxml2 \
  143. --enable-libxvid \
  144. --enable-omx \
  145. --enable-shared \
  146. --enable-version3
  147. else
  148. ./configure \
  149. --prefix=/usr \
  150. --disable-debug \
  151. --disable-static \
  152. --disable-stripping \
  153. --enable-fontconfig \
  154. --enable-gmp \
  155. --enable-gnutls \
  156. --enable-gpl \
  157. --enable-ladspa \
  158. --enable-libaom \
  159. --enable-libass \
  160. --enable-libbluray \
  161. --enable-libdav1d \
  162. --enable-libdrm \
  163. --enable-libfreetype \
  164. --enable-libfribidi \
  165. --enable-libgsm \
  166. --enable-libiec61883 \
  167. --enable-libjack \
  168. --enable-libmodplug \
  169. --enable-libmp3lame \
  170. --enable-libopencore_amrnb \
  171. --enable-libopencore_amrwb \
  172. --enable-libopenjpeg \
  173. --enable-libopus \
  174. --enable-libpulse \
  175. --enable-libsoxr \
  176. --enable-libspeex \
  177. --enable-libssh \
  178. --enable-libtheora \
  179. --enable-libv4l2 \
  180. --enable-libvidstab \
  181. --enable-libvorbis \
  182. --enable-libvpx \
  183. --enable-libwebp \
  184. --enable-libx264 \
  185. --enable-libx265 \
  186. --enable-libxcb \
  187. --enable-libxml2 \
  188. --enable-libxvid \
  189. --enable-omx \
  190. --enable-shared \
  191. --enable-version3
  192. fi
  193. make
  194. make tools/qt-faststart
  195. make doc/ff{mpeg,play}.1
  196. }
  197. package() {
  198. make DESTDIR="${pkgdir}" -C ffmpeg install install-man
  199. install -Dm 755 ffmpeg/tools/qt-faststart "${pkgdir}"/usr/bin/
  200. }
  201. # vim: ts=2 sw=2 et: