[packages] ffmpeg: add an option to enable/disable IPv6 support (closes: #4318)

git-svn-id: svn://svn.openwrt.org/openwrt/packages@15040 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
nico 2009-03-25 15:42:12 +00:00
parent b74818ed19
commit 0c54083a7e
2 changed files with 12 additions and 1 deletions

View File

@ -259,3 +259,7 @@ config FFMPEG_PROTOCOL_udp
bool
prompt "udp:"
config FFMPEG_PROTOCOL_IPv6
bool
prompt "IPv6"

View File

@ -177,6 +177,13 @@ FFMPEG_CONFIGURE_PROTOCOLS:= \
$(if $(CONFIG_FFMPEG_PROTOCOL_$(c)),--enable-protocol="$(c)") \
)
ifneq ($(CONFIG_FFMPEG_PROTOCOL_IPv6),)
FFMPEG_CONFIGURE_IPv6:= --enable-ipv6
else
FFMPEG_CONFIGURE_IPv6:= --disable-ipv6
endif
define Build/Configure
# this is *NOT* GNU configure
( cd $(PKG_BUILD_DIR); \
@ -193,7 +200,6 @@ define Build/Configure
--enable-ffmpeg \
--enable-ffserver \
--enable-gpl \
--disable-ipv6 \
--enable-libfaad \
--enable-pthreads \
--disable-optimizations \
@ -216,6 +222,7 @@ define Build/Configure
--disable-bsfs \
--disable-protocols \
$(FFMPEG_CONFIGURE_PROTOCOLS) \
$(FFMPEG_CONFIGURE_IPv6) \
)
endef