1
0

Makefile 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645
  1. #
  2. # Copyright (C) 2006-2017 OpenWrt.org
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=ffmpeg
  9. PKG_VERSION:=3.2.2
  10. PKG_RELEASE:=1
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
  12. PKG_SOURCE_URL:=https://ffmpeg.org/releases/
  13. PKG_MD5SUM:=e34d1b92c5d844f2a3611c741a6dba18
  14. PKG_HASH:=3f01bd1fe1a17a277f8c84869e5d9192b4b978cb660872aa2b54c3cc8a2fedfc
  15. PKG_MAINTAINER:=Ted Hess <thess@kitschensync.net>
  16. PKG_LICENSE:=LGPL-2.1+ GPL-2+ LGPL-3
  17. PKG_LICENSE_FILES:=COPYING.GPLv2 COPYING.GPLv3 COPYING.LGPLv2.1 COPYING.LGPLv3
  18. FFMPEG_CUSTOM_ENCODERS:= \
  19. ac3 \
  20. jpegls \
  21. mpeg1video \
  22. mpeg2video \
  23. mpeg4 \
  24. pcm_s16be \
  25. pcm_s16le \
  26. png \
  27. vorbis \
  28. zlib \
  29. FFMPEG_CUSTOM_DECODERS:= \
  30. aac \
  31. ac3 \
  32. alac \
  33. amrnb \
  34. amrwb \
  35. ape \
  36. atrac3 \
  37. flac \
  38. gif \
  39. h264 \
  40. hevc \
  41. jpegls \
  42. mp2 \
  43. mp3 \
  44. mpeg1video \
  45. mpeg2video \
  46. mpeg4 \
  47. mpegvideo \
  48. mpc7 \
  49. mpc8 \
  50. pcm_s16be \
  51. pcm_s16le \
  52. png \
  53. vc1 \
  54. vorbis \
  55. wavpack \
  56. wmav1 \
  57. wmav2 \
  58. zlib \
  59. FFMPEG_CUSTOM_MUXERS:= \
  60. ac3 \
  61. ffm \
  62. h264 \
  63. hevc \
  64. mp3 \
  65. mp4 \
  66. mpeg1video \
  67. mpeg2video \
  68. mpegts \
  69. ogg \
  70. rtp \
  71. FFMPEG_CUSTOM_DEMUXERS:= \
  72. aac \
  73. ac3 \
  74. amr \
  75. ape \
  76. avi \
  77. flac \
  78. ffm \
  79. h264 \
  80. hevc \
  81. matroska \
  82. mov \
  83. mp3 \
  84. mpegps \
  85. mpegts \
  86. mpegvideo \
  87. mpc \
  88. mpc8 \
  89. ogg \
  90. rm \
  91. rtsp \
  92. rtp \
  93. sdp \
  94. v4l2 \
  95. vc1 \
  96. wav \
  97. wv \
  98. FFMPEG_CUSTOM_PARSERS:= \
  99. aac \
  100. flac \
  101. ac3 \
  102. h264 \
  103. hevc \
  104. mpegaudio \
  105. mpeg4video \
  106. mpegvideo \
  107. vc1 \
  108. FFMPEG_CUSTOM_PROTOCOLS:= \
  109. file http icecast pipe rtp tcp udp
  110. FFMPEG_MINI_DECODERS:= \
  111. aac \
  112. ac3 \
  113. flac \
  114. h264 \
  115. hevc \
  116. jpegls \
  117. mp3 \
  118. mpeg1video \
  119. mpeg2video \
  120. mpeg4 \
  121. mpegvideo \
  122. opus \
  123. png \
  124. vc1 \
  125. vorbis \
  126. wmav1 \
  127. wmav2 \
  128. FFMPEG_MINI_DEMUXERS:= \
  129. avi \
  130. flac \
  131. matroska \
  132. mov \
  133. mp3 \
  134. mpegts \
  135. mpegvideo \
  136. ogg \
  137. FFMPEG_MINI_PROTOCOLS:= \
  138. file \
  139. FFMPEG_AUDIO_DECODERS:= \
  140. aac \
  141. aac_latm \
  142. ac3 \
  143. adpcm_* \
  144. alac \
  145. amrnb \
  146. amrwb \
  147. ape \
  148. atrac3 \
  149. flac \
  150. mp2 \
  151. mp3* \
  152. mpc7 \
  153. mpc8 \
  154. opus \
  155. pcm_* \
  156. vorbis \
  157. wavpack \
  158. wmav1 \
  159. wmav2 \
  160. wmalossless \
  161. wmapro \
  162. zlib \
  163. FFMPEG_AUDIO_DEMUXERS:= \
  164. aac \
  165. ac3 \
  166. aiff \
  167. amr \
  168. ape \
  169. avi \
  170. flac \
  171. ffm \
  172. matroska \
  173. mp3 \
  174. mov \
  175. mpc \
  176. mpc8 \
  177. mpegts \
  178. ogg \
  179. rm \
  180. rtsp \
  181. rtp \
  182. sdp \
  183. wav \
  184. wv \
  185. FFMPEG_AUDIO_PARSERS:= \
  186. aac \
  187. aac_latm \
  188. ac3 \
  189. flac \
  190. mpegaudio \
  191. opus \
  192. FFMPEG_AUDIO_PROTOCOLS:= \
  193. file http icecast rtp tcp udp
  194. PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(BUILD_VARIANT)/$(PKG_NAME)-$(PKG_VERSION)
  195. PKG_CONFIG_DEPENDS:= \
  196. $(patsubst %,CONFIG_FFMPEG_CUSTOM_ENCODER_%,$(FFMPEG_CUSTOM_ENCODERS)) \
  197. $(patsubst %,CONFIG_FFMPEG_CUSTOM_DECODER_%,$(FFMPEG_CUSTOM_DECODERS)) \
  198. $(patsubst %,CONFIG_FFMPEG_CUSTOM_MUXER_%,$(FFMPEG_CUSTOM_DEMUXERS)) \
  199. $(patsubst %,CONFIG_FFMPEG_CUSTOM_DEMUXER_%,$(FFMPEG_CUSTOM_DEMUXERS)) \
  200. $(patsubst %,CONFIG_FFMPEG_CUSTOM_PARSER_%,$(FFMPEG_CUSTOM_PARSERS)) \
  201. $(patsubst %,CONFIG_FFMPEG_CUSTOM_PROTOCOL_%,$(FFMPEG_CUSTOM_PROTOCOLS))
  202. include $(INCLUDE_DIR)/package.mk
  203. define Package/ffmpeg/Default
  204. TITLE:=FFmpeg
  205. URL:=http://ffmpeg.mplayerhq.hu/
  206. endef
  207. define Package/ffmpeg/Default/description
  208. FFmpeg is a a software package that can record, convert and stream digital
  209. audio and video in numerous formats.
  210. endef
  211. define Package/ffmpeg
  212. $(call Package/ffmpeg/Default)
  213. SECTION:=multimedia
  214. CATEGORY:=Multimedia
  215. TITLE+= program
  216. DEPENDS+= +libpthread +libffmpeg-full
  217. VARIANT:=full
  218. endef
  219. define Package/ffmpeg/description
  220. $(call Package/ffmpeg/Default/description)
  221. .
  222. This package contains the FFmpeg command line tool.
  223. endef
  224. define Package/ffprobe
  225. $(call Package/ffmpeg/Default)
  226. SECTION:=multimedia
  227. CATEGORY:=Multimedia
  228. TITLE+= CLI media identifier
  229. DEPENDS+= +libffmpeg-full
  230. VARIANT:=full
  231. endef
  232. define Package/ffprobe/description
  233. $(call Package/ffmpeg/Default/description)
  234. .
  235. This package contains the FFprobe command line tool.
  236. endef
  237. define Package/ffserver
  238. $(call Package/ffserver/Default)
  239. SECTION:=multimedia
  240. CATEGORY:=Multimedia
  241. TITLE+= streaming server
  242. DEPENDS+= +libpthread +libffmpeg-full
  243. VARIANT:=full
  244. endef
  245. define Package/ffserver/description
  246. $(call Package/ffmpeg/Default/description)
  247. .
  248. This package contains the FFmpeg streaming server.
  249. endef
  250. define Package/libffmpeg/Default
  251. $(call Package/ffmpeg/Default)
  252. SECTION:=libs
  253. CATEGORY:=Libraries
  254. TITLE+= libraries
  255. DEPENDS+= @BUILD_PATENTED +libpthread +zlib +libbz2
  256. PROVIDES:= libffmpeg
  257. endef
  258. define Package/libffmpeg-custom
  259. $(call Package/libffmpeg/Default)
  260. TITLE+= (custom)
  261. DEPENDS+= +FFMPEG_CUSTOM_SELECT_libopus:libopus \
  262. +PACKAGE_libx264:libx264 +PACKAGE_lame-lib:lame-lib
  263. VARIANT:=custom
  264. MENU:=1
  265. endef
  266. define Package/libffmpeg-custom/config
  267. source "$(SOURCE)/Config.in"
  268. endef
  269. define Package/libffmpeg-custom/description
  270. $(call Package/ffmpeg/Default/description)
  271. .
  272. This package contains customized FFmpeg shared libraries.
  273. endef
  274. define Package/libffmpeg-audio-dec
  275. $(call Package/libffmpeg/Default)
  276. TITLE+= (audio)
  277. VARIANT:=audio-dec
  278. endef
  279. define Package/libffmpeg-audio-dec/description
  280. $(call Package/ffmpeg/Default/description)
  281. .
  282. This package contains FFmpeg shared libraries for audio decoding
  283. endef
  284. define Package/libffmpeg-full
  285. $(call Package/libffmpeg/Default)
  286. TITLE+= (full)
  287. DEPENDS+= +alsa-lib +PACKAGE_libx264:libx264 +PACKAGE_lame-lib:lame-lib +libopus
  288. VARIANT:=full
  289. endef
  290. define Package/libffmpeg-full/description
  291. $(call Package/ffmpeg/Default/description)
  292. .
  293. This package contains full-featured FFmpeg shared libraries.
  294. endef
  295. define Package/libffmpeg-mini
  296. $(call Package/libffmpeg/Default)
  297. TITLE+= (mini)
  298. VARIANT:=mini
  299. endef
  300. define Package/libffmpeg-mini/description
  301. $(call Package/ffmpeg/Default/description)
  302. .
  303. This package contains minimal-featured FFmpeg shared libraries.
  304. endef
  305. FFMPEG_CONFIGURE:= \
  306. CFLAGS="$(TARGET_CFLAGS) $(TARGET_CPPFLAGS) $(FPIC)" \
  307. LDFLAGS="$(TARGET_LDFLAGS)" \
  308. ./configure \
  309. --enable-cross-compile \
  310. --cross-prefix="$(TARGET_CROSS)" \
  311. --arch="$(ARCH)" \
  312. --target-os=linux \
  313. --prefix="/usr" \
  314. --pkg-config="pkg-config" \
  315. --enable-shared \
  316. --enable-static \
  317. --enable-small \
  318. --enable-pthreads \
  319. --enable-zlib \
  320. --disable-doc \
  321. --disable-debug \
  322. \
  323. --enable-gpl \
  324. --enable-version3 \
  325. \
  326. --disable-dxva2 \
  327. --disable-lzma \
  328. --disable-vaapi \
  329. --disable-vda \
  330. --disable-vdpau \
  331. --disable-outdevs
  332. ifeq ($(CONFIG_SOFT_FLOAT),y)
  333. FFMPEG_CONFIGURE += \
  334. --disable-altivec \
  335. --disable-vsx \
  336. --disable-power8 \
  337. --disable-amd3dnow \
  338. --disable-amd3dnowext \
  339. --disable-mmx \
  340. --disable-mmxext \
  341. --disable-sse \
  342. --disable-sse2 \
  343. --disable-sse3 \
  344. --disable-ssse3 \
  345. --disable-sse4 \
  346. --disable-sse42 \
  347. --disable-avx \
  348. --disable-xop \
  349. --disable-fma3 \
  350. --disable-fma4 \
  351. --disable-avx2 \
  352. --disable-aesni \
  353. --disable-armv5te \
  354. --disable-armv6 \
  355. --disable-armv6t2 \
  356. --disable-inline-asm \
  357. --disable-mipsdsp \
  358. --disable-mipsdspr2 \
  359. --disable-mipsfpu \
  360. --disable-msa \
  361. --disable-mmi \
  362. --disable-fast-unaligned \
  363. --disable-runtime-cpudetect
  364. else ifneq ($(findstring arm,$(CONFIG_ARCH)),)
  365. FFMPEG_CONFIGURE += \
  366. --disable-runtime-cpudetect
  367. else ifneq ($(findstring powerpc,$(CONFIG_ARCH)),)
  368. FFMPEG_CONFIGURE += \
  369. --disable-altivec
  370. endif
  371. ifneq ($(CONFIG_YASM),y)
  372. FFMPEG_CONFIGURE += \
  373. --disable-yasm
  374. endif
  375. #selectibly disable optimizations according to arch/cpu type
  376. ifneq ($(findstring arm,$(CONFIG_ARCH)),)
  377. ifeq (,$(findstring vfp,$(CONFIG_TARGET_OPTIMIZATION)))
  378. FFMPEG_CONFIGURE+= \
  379. --disable-vfp
  380. endif
  381. ifeq (,$(findstring neon,$(CONFIG_TARGET_OPTIMIZATION)))
  382. FFMPEG_CONFIGURE+= \
  383. --disable-neon
  384. endif
  385. endif
  386. ifeq ($(BUILD_VARIANT),full)
  387. FFMPEG_CONFIGURE+= \
  388. --enable-libopus --enable-decoder=libopus \
  389. $(if $(CONFIG_PACKAGE_libx264),--enable-libx264) \
  390. $(if $(CONFIG_PACKAGE_lame-lib),--enable-libmp3lame)
  391. endif
  392. ifeq ($(BUILD_VARIANT),custom)
  393. FFMPEG_ENABLE= \
  394. $(foreach c, $(2), \
  395. $(if $($(3)_$(c)),--enable-$(1)="$(c)") \
  396. )
  397. FFMPEG_CONFIGURE+= \
  398. --disable-programs \
  399. --disable-avfilter \
  400. --disable-postproc \
  401. --disable-swresample \
  402. --disable-swscale \
  403. --disable-everything \
  404. $(call FFMPEG_ENABLE,encoder,$(FFMPEG_CUSTOM_ENCODERS),CONFIG_FFMPEG_CUSTOM_ENCODER) \
  405. $(call FFMPEG_ENABLE,decoder,$(FFMPEG_CUSTOM_DECODERS),CONFIG_FFMPEG_CUSTOM_DECODER) \
  406. $(call FFMPEG_ENABLE,muxer,$(FFMPEG_CUSTOM_MUXERS),CONFIG_FFMPEG_CUSTOM_MUXER) \
  407. $(call FFMPEG_ENABLE,demuxer,$(FFMPEG_CUSTOM_DEMUXERS),CONFIG_FFMPEG_CUSTOM_DEMUXER) \
  408. $(call FFMPEG_ENABLE,parser,$(FFMPEG_CUSTOM_PARSERS),CONFIG_FFMPEG_CUSTOM_PARSER) \
  409. $(call FFMPEG_ENABLE,protocol,$(FFMPEG_CUSTOM_PROTOCOLS),CONFIG_FFMPEG_CUSTOM_PROTOCOL) \
  410. ifeq ($(CONFIG_FFMPEG_CUSTOM_SELECT_adpcm),y)
  411. FFMPEG_CONFIGURE+= \
  412. --enable-decoder=adpcm_ima_wav \
  413. --enable-decoder=adpcm_ima_qt \
  414. --enable-decoder=adpcm_ms \
  415. endif
  416. ifeq ($(CONFIG_FFMPEG_CUSTOM_SELECT_libopus),y)
  417. FFMPEG_CONFIGURE+= \
  418. --enable-libopus --enable-decoder=libopus
  419. endif
  420. ifeq ($(CONFIG_FFMPEG_CUSTOM_SELECT_x264),y)
  421. FFMPEG_CONFIGURE+= \
  422. --enable-libx264
  423. endif
  424. ifeq ($(CONFIG_FFMPEG_CUSTOM_SELECT_mp3lame),y)
  425. FFMPEG_CONFIGURE+= \
  426. --enable-libmp3lame
  427. endif
  428. endif
  429. ifeq ($(BUILD_VARIANT),audio-dec)
  430. FFMPEG_ENABLE= \
  431. $(foreach c, $(2), \
  432. --enable-$(1)="$(c)" \
  433. )
  434. FFMPEG_CONFIGURE+= \
  435. --disable-programs \
  436. --disable-avfilter \
  437. --disable-postproc \
  438. --disable-swresample \
  439. --disable-swscale \
  440. --disable-everything \
  441. $(call FFMPEG_ENABLE,decoder,$(FFMPEG_AUDIO_DECODERS)) \
  442. $(call FFMPEG_ENABLE,demuxer,$(FFMPEG_AUDIO_DEMUXERS)) \
  443. $(call FFMPEG_ENABLE,parser,$(FFMPEG_AUDIO_PARSERS)) \
  444. $(call FFMPEG_ENABLE,protocol,$(FFMPEG_AUDIO_PROTOCOLS)) \
  445. --disable-decoder=pcm_bluray,pcm_dvd \
  446. endif
  447. ifeq ($(BUILD_VARIANT),mini)
  448. FFMPEG_ENABLE= \
  449. $(foreach c, $(2), \
  450. --enable-$(1)="$(c)" \
  451. )
  452. FFMPEG_CONFIGURE+= \
  453. --disable-programs \
  454. --disable-avdevice \
  455. --disable-avfilter \
  456. --disable-postproc \
  457. --disable-swresample \
  458. --disable-swscale \
  459. --disable-everything \
  460. $(call FFMPEG_ENABLE,decoder,$(FFMPEG_MINI_DECODERS)) \
  461. $(call FFMPEG_ENABLE,demuxer,$(FFMPEG_MINI_DEMUXERS)) \
  462. $(call FFMPEG_ENABLE,protocol,$(FFMPEG_MINI_PROTOCOLS)) \
  463. endif
  464. ifneq ($(CONFIG_TARGET_x86),)
  465. TARGET_CFLAGS += -fomit-frame-pointer
  466. endif
  467. define Build/Configure
  468. ( cd $(PKG_BUILD_DIR); $(FFMPEG_CONFIGURE) )
  469. endef
  470. define Build/Compile
  471. $(MAKE) -C $(PKG_BUILD_DIR) \
  472. DESTDIR="$(PKG_INSTALL_DIR)" \
  473. all install
  474. endef
  475. define Build/InstallDev/custom
  476. $(INSTALL_DIR) $(1)/usr/include
  477. $(CP) $(PKG_INSTALL_DIR)/usr/include/lib{avcodec,avdevice,avformat,avutil} $(1)/usr/include/
  478. $(INSTALL_DIR) $(1)/usr/lib
  479. $(CP) $(PKG_INSTALL_DIR)/usr/lib/lib{avcodec,avdevice,avformat,avutil}.{a,so*} $(1)/usr/lib/
  480. $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
  481. $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/lib{avcodec,avdevice,avformat,avutil}.pc $(1)/usr/lib/pkgconfig/
  482. endef
  483. define Build/InstallDev/full
  484. $(INSTALL_DIR) $(1)/usr/include
  485. $(CP) $(PKG_INSTALL_DIR)/usr/include/lib{avcodec,avdevice,avfilter,avformat,avutil,postproc,swresample,swscale} $(1)/usr/include/
  486. $(INSTALL_DIR) $(1)/usr/lib
  487. $(CP) $(PKG_INSTALL_DIR)/usr/lib/lib{avcodec,avdevice,avfilter,avformat,avutil,postproc,swresample,swscale}.{a,so*} $(1)/usr/lib/
  488. $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
  489. $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/lib{avcodec,avdevice,avfilter,avformat,avutil,postproc,swresample,swscale}.pc $(1)/usr/lib/pkgconfig/
  490. endef
  491. define Build/InstallDev/mini
  492. $(INSTALL_DIR) $(1)/usr/include
  493. $(CP) $(PKG_INSTALL_DIR)/usr/include/lib{avcodec,avformat,avutil} $(1)/usr/include/
  494. $(INSTALL_DIR) $(1)/usr/lib
  495. $(CP) $(PKG_INSTALL_DIR)/usr/lib/lib{avcodec,avformat,avutil}.{a,so*} $(1)/usr/lib/
  496. $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
  497. $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/lib{avcodec,avformat,avutil}.pc $(1)/usr/lib/pkgconfig/
  498. endef
  499. Build/InstallDev/audio-dec = $(Build/InstallDev/custom)
  500. # XXX: attempt at installing "best" dev files available
  501. ifeq ($(BUILD_VARIANT),custom)
  502. # XXX: only install "custom" dev files if -full & -mini are not selected
  503. ifeq ($(CONFIG_PACKAGE_libffmpeg-full)$(CONFIG_PACKAGE_libffmpeg-mini),)
  504. Build/InstallDev = $(Build/InstallDev/custom)
  505. endif
  506. endif
  507. ifeq ($(BUILD_VARIANT),audio-dec)
  508. # XXX: only install "audio-dec" dev files if -full & -mini are not selected
  509. ifeq ($(CONFIG_PACKAGE_libffmpeg-full)$(CONFIG_PACKAGE_libffmpeg-mini),)
  510. Build/InstallDev = $(Build/InstallDev/audio-dec)
  511. endif
  512. endif
  513. ifeq ($(BUILD_VARIANT),full)
  514. # XXX: always install "full" dev files if -full is selected
  515. Build/InstallDev = $(Build/InstallDev/full)
  516. endif
  517. ifeq ($(BUILD_VARIANT),mini)
  518. # XXX: only install "mini" dev files if -full is not selected
  519. ifeq ($(CONFIG_PACKAGE_libffmpeg-full),)
  520. Build/InstallDev = $(Build/InstallDev/mini)
  521. endif
  522. endif
  523. define Package/ffmpeg/install
  524. $(INSTALL_DIR) $(1)/usr/bin
  525. $(CP) $(PKG_INSTALL_DIR)/usr/bin/ffmpeg $(1)/usr/bin/
  526. endef
  527. define Package/ffprobe/install
  528. $(INSTALL_DIR) $(1)/usr/bin
  529. $(CP) $(PKG_INSTALL_DIR)/usr/bin/ffprobe $(1)/usr/bin/
  530. endef
  531. define Package/ffserver/install
  532. $(INSTALL_DIR) $(1)/usr/bin
  533. $(CP) $(PKG_INSTALL_DIR)/usr/bin/ffserver $(1)/usr/bin/
  534. endef
  535. define Package/libffmpeg-custom/install
  536. $(INSTALL_DIR) $(1)/usr/lib
  537. $(CP) $(PKG_INSTALL_DIR)/usr/lib/lib{avcodec,avdevice,avformat,avutil}.so.* $(1)/usr/lib/
  538. endef
  539. define Package/libffmpeg-full/install
  540. $(INSTALL_DIR) $(1)/usr/lib
  541. $(CP) $(PKG_INSTALL_DIR)/usr/lib/lib{avcodec,avdevice,avfilter,avformat,avutil,postproc,swresample,swscale}.so.* $(1)/usr/lib/
  542. endef
  543. define Package/libffmpeg-mini/install
  544. $(INSTALL_DIR) $(1)/usr/lib
  545. $(CP) $(PKG_INSTALL_DIR)/usr/lib/lib{avcodec,avformat,avutil}.so.* $(1)/usr/lib/
  546. endef
  547. Package/libffmpeg-audio-dec/install = $(Package/libffmpeg-custom/install)
  548. $(eval $(call BuildPackage,ffmpeg))
  549. $(eval $(call BuildPackage,ffprobe))
  550. $(eval $(call BuildPackage,ffserver))
  551. $(eval $(call BuildPackage,libffmpeg-audio-dec))
  552. $(eval $(call BuildPackage,libffmpeg-full))
  553. $(eval $(call BuildPackage,libffmpeg-mini))
  554. ifneq ($(CONFIG_ALL),y)
  555. $(eval $(call BuildPackage,libffmpeg-custom))
  556. endif