[packages] ffmpeg: include/disable swresample where appropriate
libswresample is an audio resampling library within ffmpeg. This patch disables swresample in libffmpeg-custom and libffmpeg-mini and adds it to libffmpeg-full. Should correct build issue reported in #13089. Signed-off-by: Ian Leonard <antonlacon@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/packages@35832 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
381925aea7
commit
c06d92f768
@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
|
|||||||
|
|
||||||
PKG_NAME:=ffmpeg
|
PKG_NAME:=ffmpeg
|
||||||
PKG_VERSION:=0.11.2
|
PKG_VERSION:=0.11.2
|
||||||
PKG_RELEASE:=1
|
PKG_RELEASE:=2
|
||||||
|
|
||||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
|
||||||
PKG_SOURCE_URL:=http://ffmpeg.org/releases/
|
PKG_SOURCE_URL:=http://ffmpeg.org/releases/
|
||||||
@ -311,6 +311,7 @@ ifeq ($(BUILD_VARIANT),custom)
|
|||||||
--disable-ffserver \
|
--disable-ffserver \
|
||||||
--disable-avfilter \
|
--disable-avfilter \
|
||||||
--disable-postproc \
|
--disable-postproc \
|
||||||
|
--disable-swresample \
|
||||||
--disable-swscale \
|
--disable-swscale \
|
||||||
--disable-everything \
|
--disable-everything \
|
||||||
$(call FFMPEG_ENABLE,encoder,$(FFMPEG_CUSTOM_ENCODERS),CONFIG_FFMPEG_CUSTOM_ENCODER) \
|
$(call FFMPEG_ENABLE,encoder,$(FFMPEG_CUSTOM_ENCODERS),CONFIG_FFMPEG_CUSTOM_ENCODER) \
|
||||||
@ -336,6 +337,7 @@ ifeq ($(BUILD_VARIANT),mini)
|
|||||||
--disable-ffserver \
|
--disable-ffserver \
|
||||||
--disable-avfilter \
|
--disable-avfilter \
|
||||||
--disable-postproc \
|
--disable-postproc \
|
||||||
|
--disable-swresample \
|
||||||
--disable-swscale \
|
--disable-swscale \
|
||||||
--disable-everything \
|
--disable-everything \
|
||||||
$(call FFMPEG_ENABLE,encoder,$(FFMPEG_MINI_ENCODERS)) \
|
$(call FFMPEG_ENABLE,encoder,$(FFMPEG_MINI_ENCODERS)) \
|
||||||
@ -372,11 +374,11 @@ endef
|
|||||||
|
|
||||||
define Build/InstallDev/full
|
define Build/InstallDev/full
|
||||||
$(INSTALL_DIR) $(1)/usr/include
|
$(INSTALL_DIR) $(1)/usr/include
|
||||||
$(CP) $(PKG_INSTALL_DIR)/usr/include/lib{avcodec,avdevice,avfilter,avformat,avutil,postproc,swscale} $(1)/usr/include/
|
$(CP) $(PKG_INSTALL_DIR)/usr/include/lib{avcodec,avdevice,avfilter,avformat,avutil,postproc,swresample,swscale} $(1)/usr/include/
|
||||||
$(INSTALL_DIR) $(1)/usr/lib
|
$(INSTALL_DIR) $(1)/usr/lib
|
||||||
$(CP) $(PKG_INSTALL_DIR)/usr/lib/lib{avcodec,avdevice,avfilter,avformat,avutil,postproc,swscale}.{a,so*} $(1)/usr/lib/
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/lib{avcodec,avdevice,avfilter,avformat,avutil,postproc,swresample,swscale}.{a,so*} $(1)/usr/lib/
|
||||||
$(INSTALL_DIR) $(1)/usr/lib/pkgconfig
|
$(INSTALL_DIR) $(1)/usr/lib/pkgconfig
|
||||||
$(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/lib{avcodec,avdevice,avfilter,avformat,avutil,postproc,swscale}.pc $(1)/usr/lib/pkgconfig/
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/lib{avcodec,avdevice,avfilter,avformat,avutil,postproc,swresample,swscale}.pc $(1)/usr/lib/pkgconfig/
|
||||||
endef
|
endef
|
||||||
|
|
||||||
Build/InstallDev/mini = $(Build/InstallDev/custom)
|
Build/InstallDev/mini = $(Build/InstallDev/custom)
|
||||||
@ -421,7 +423,7 @@ endef
|
|||||||
|
|
||||||
define Package/libffmpeg-full/install
|
define Package/libffmpeg-full/install
|
||||||
$(INSTALL_DIR) $(1)/usr/lib
|
$(INSTALL_DIR) $(1)/usr/lib
|
||||||
$(CP) $(PKG_INSTALL_DIR)/usr/lib/lib{avcodec,avdevice,avfilter,avformat,avutil,postproc,swscale}.so.* $(1)/usr/lib/
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/lib{avcodec,avdevice,avfilter,avformat,avutil,postproc,swresample,swscale}.so.* $(1)/usr/lib/
|
||||||
endef
|
endef
|
||||||
|
|
||||||
Package/libffmpeg-mini/install = $(Package/libffmpeg-custom/install)
|
Package/libffmpeg-mini/install = $(Package/libffmpeg-custom/install)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user