gst1-libav: remove obsolete configuration options
authorDaniel Golle <daniel@makrotopia.org>
Fri, 22 Nov 2024 17:56:57 +0000 (17:56 +0000)
committerDaniel Golle <daniel@makrotopia.org>
Sat, 23 Nov 2024 02:33:09 +0000 (02:33 +0000)
Since the build was switched to meson a couple of years ago gst1-libav
simply uses libffmpeg and the codec configuration previous passed via
CONFIGURE_ARGS is completely ignored. This is misleading as all those
options are still present in menuconfig but don't have any effect.
Remove all dead code from build recipe.

Fixes: de426d431 ("gst1-libav: update to 1.17.1")
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
multimedia/gst1-libav/Config.in [deleted file]
multimedia/gst1-libav/Makefile

diff --git a/multimedia/gst1-libav/Config.in b/multimedia/gst1-libav/Config.in
deleted file mode 100644 (file)
index 9eb8e89..0000000
+++ /dev/null
@@ -1,272 +0,0 @@
-menu "Select GStreamer libav configuration options"
-       depends on PACKAGE_gst1-libav
-
-config GST1_LIBAV_IPV6
-       bool "Enable IPv6"
-       default IPV6
-
-config GST1_LIBAV_PATENTED
-       bool "Include patented codecs and technologies"
-       default BUILD_PATENTED
-
-config GET_LIBAV_COMMON_AV_SUPPORT
-       bool "Include support for common audio/video decoders"
-       default y
-       select GST1_LIBAV_DECODER_aac if GST1_LIBAV_PATENTED
-       select GST1_LIBAV_DECODER_ac3
-       select GST1_LIBAV_DECODER_h264 if GST1_LIBAV_PATENTED
-       select GST1_LIBAV_DECODER_atrac3 if GST1_LIBAV_PATENTED
-       select GST1_LIBAV_DECODER_jpegls
-       select GST1_LIBAV_DECODER_mp3
-       select GST1_LIBAV_DECODER_mpeg1video
-       select GST1_LIBAV_DECODER_mpeg2video
-       select GST1_LIBAV_DECODER_mpeg4 if GST1_LIBAV_PATENTED
-       select GST1_LIBAV_DECODER_mpeg4aac if GST1_LIBAV_PATENTED
-       select GST1_LIBAV_DECODER_mpegvideo
-       select GST1_LIBAV_DECODER_pcm_s16be
-       select GST1_LIBAV_DECODER_pcm_s16le
-       select GST1_LIBAV_DECODER_vorbis
-       select GST1_LIBAV_DECODER_wmav1 if GST1_LIBAV_PATENTED
-       select GST1_LIBAV_DECODER_wmav2 if GST1_LIBAV_PATENTED
-       select GST1_LIBAV_DECODER_png
-       select GST1_LIBAV_PARSER_aac if GST1_LIBAV_PATENTED
-       select GST1_LIBAV_PARSER_h264 if GST1_LIBAV_PATENTED
-       select GST1_LIBAV_PARSER_mpegaudio
-       select GST1_LIBAV_PARSER_mpegvideo
-       select GST1_LIBAV_PARSER_mpeg4video
-       select GST1_LIBAV_DEMUXER_ac3
-       select GST1_LIBAV_DEMUXER_h264 if GST1_LIBAV_PATENTED
-       select GST1_LIBAV_DEMUXER_mp3
-       select GST1_LIBAV_DEMUXER_mpegvideo
-       select GST1_LIBAV_DEMUXER_ogg
-
-comment "Encoders ---"
-
-config GST1_LIBAV_ENCODER_ac3
-       bool "AC3"
-       select GST1_LIBAV_PARSER_ac3
-
-config GST1_LIBAV_ENCODER_jpegls
-       bool "JPEG-LS"
-
-config GST1_LIBAV_ENCODER_mpeg1video
-       bool "MPEG-1 Video"
-
-config GST1_LIBAV_ENCODER_mpeg2video
-       bool "MPEG-2 Video"
-
-config GST1_LIBAV_ENCODER_mpeg4
-       bool "MPEG-4"
-       depends on GST1_LIBAV_PATENTED
-
-config GST1_LIBAV_ENCODER_pcm_s16be
-       bool "PCM signed 16-bit big-endian"
-
-config GST1_LIBAV_ENCODER_pcm_s16le
-       bool "PCM signed 16-bit little-endian"
-
-config GST1_LIBAV_ENCODER_png
-       bool "PNG"
-       select GST1_LIBAV_ENCODER_zlib
-
-config GST1_LIBAV_ENCODER_vorbis
-       bool "Vorbis"
-
-config GST1_LIBAV_ENCODER_zlib
-       bool "Zlib"
-
-comment "Decoders ---"
-
-config GST1_LIBAV_DECODER_aac
-       bool "AAC (Advanced Audio Coding)"
-       depends on GST1_LIBAV_PATENTED
-       select GST1_LIBAV_PARSER_aac
-
-config GST1_LIBAV_DECODER_ac3
-       bool "AC3"
-       select GST1_LIBAV_PARSER_ac3
-
-config GST1_LIBAV_DECODER_atrac3
-       bool "ATRAC3"
-       depends on GST1_LIBAV_PATENTED
-
-config GST1_LIBAV_DECODER_gif
-       bool "GIF"
-
-config GST1_LIBAV_DECODER_h264
-       bool "H.264"
-       depends on GST1_LIBAV_PATENTED
-
-config GST1_LIBAV_DECODER_jpegls
-       bool "JPEG-LS"
-
-config GST1_LIBAV_DECODER_mp2
-       bool "MP2 (MPEG Audio Layer 2)"
-
-config GST1_LIBAV_DECODER_mp3
-       bool "MP3 (MPEG Audio Layer 2)"
-
-config GST1_LIBAV_DECODER_mpegvideo
-       bool "MPEG Video"
-
-config GST1_LIBAV_DECODER_mpeg1video
-       bool "MPEG-1 Video"
-
-config GST1_LIBAV_DECODER_mpeg2video
-       bool "MPEG-2 Video"
-
-config GST1_LIBAV_DECODER_mpeg4
-       bool "MPEG-4"
-       depends on GST1_LIBAV_PATENTED
-
-config GST1_LIBAV_DECODER_mpeg4aac
-       bool "MPEG-4 (AAC)"
-       depends on GST1_LIBAV_PATENTED
-
-config GST1_LIBAV_DECODER_pcm_s16be
-       bool "PCM signed 16-bit big-endian"
-
-config GST1_LIBAV_DECODER_pcm_s16le
-       bool "PCM signed 16-bit little-endian"
-
-config GST1_LIBAV_DECODER_png
-       bool "PNG"
-       select GST1_LIBAV_DECODER_zlib
-
-config GST1_LIBAV_DECODER_vorbis
-       bool "Vorbis"
-
-config GST1_LIBAV_DECODER_wmav1
-       bool "WMAv1"
-       depends on GST1_LIBAV_PATENTED
-
-config GST1_LIBAV_DECODER_wmav2
-       bool "WMAv2"
-       depends on GST1_LIBAV_PATENTED
-
-config GST1_LIBAV_DECODER_zlib
-       bool "Zlib"
-
-comment "Muxers ---"
-
-config GST1_LIBAV_MUXER_ac3
-       bool "AC3"
-
-config GST1_LIBAV_MUXER_ffm
-       bool "FFM (ffserver live feed)"
-
-config GST1_LIBAV_MUXER_h264
-       bool "H.264"
-       depends on GST1_LIBAV_PATENTED
-
-config GST1_LIBAV_MUXER_mp3
-       bool "MP3 (MPEG Audio Layer 3)"
-
-config GST1_LIBAV_MUXER_mp4
-       bool "MP4"
-
-config GST1_LIBAV_MUXER_mpeg1video
-       bool "MPEG-1 Video"
-
-config GST1_LIBAV_MUXER_mpeg2video
-       bool "MPEG-2 Video"
-
-config GST1_LIBAV_MUXER_mpegts
-       bool "MPEG-2 (TS)"
-
-config GST1_LIBAV_MUXER_ogg
-       bool "Ogg"
-
-config GST1_LIBAV_MUXER_oss
-       bool "OSS (Open Sound System playback)"
-
-config GST1_LIBAV_MUXER_rtp
-       bool "RTP"
-
-comment "Demuxers ---"
-
-config GST1_LIBAV_DEMUXER_ac3
-       bool "AC3"
-
-config GST1_LIBAV_DEMUXER_ffm
-       bool "FFM (ffserver live feed)"
-
-config GST1_LIBAV_DEMUXER_h264
-       bool "H.264"
-       depends on GST1_LIBAV_PATENTED
-
-config GST1_LIBAV_DEMUXER_mp3
-       bool "MP3 (MPEG Audio Layer 3)"
-
-config GST1_LIBAV_DEMUXER_mpegvideo
-       bool "MPEG Video"
-
-config GST1_LIBAV_DEMUXER_mpegps
-       bool "MPEG-2 (PS)"
-
-config GST1_LIBAV_DEMUXER_mpegts
-       bool "MPEG-2 (TS)"
-
-config GST1_LIBAV_DEMUXER_ogg
-       bool "Ogg"
-
-config GST1_LIBAV_DEMUXER_rm
-       bool "RM"
-       help
-         RealMedia format demuxer
-
-config GST1_LIBAV_DEMUXER_rtsp
-       bool "RTSP"
-       select GST1_LIBAV_DEMUXER_rm
-       select GST1_LIBAV_DEMUXER_sdp
-
-config GST1_LIBAV_DEMUXER_sdp
-       bool "SDP"
-       select GST1_LIBAV_DEMUXER_mpegts
-
-comment "Parsers ---"
-
-config GST1_LIBAV_PARSER_aac
-       bool "AAC (Advanced Audio Coding)"
-       depends on GST1_LIBAV_PATENTED
-
-config GST1_LIBAV_PARSER_ac3
-       bool "AC3"
-
-config GST1_LIBAV_PARSER_h264
-       bool "H.264"
-       depends on GST1_LIBAV_PATENTED
-       select GST1_LIBAV_DECODER_h264
-
-config GST1_LIBAV_PARSER_mpegaudio
-       bool "MPEG Audio"
-
-config GST1_LIBAV_PARSER_mpegvideo
-       bool "MPEG Video"
-
-config GST1_LIBAV_PARSER_mpeg4video
-       bool "MPEG-4 Video"
-
-comment "Protocols ---"
-
-config GST1_LIBAV_PROTOCOL_file
-       bool "file:"
-
-config GST1_LIBAV_PROTOCOL_http
-       bool "http:"
-
-config GST1_LIBAV_PROTOCOL_pipe
-       bool "pipe:"
-
-config GST1_LIBAV_PROTOCOL_rtp
-       bool "rtp:"
-       select GST1_LIBAV_PROTOCOL_udp
-
-config GST1_LIBAV_PROTOCOL_tcp
-       bool "tcp:"
-
-config GST1_LIBAV_PROTOCOL_udp
-       bool "udp:"
-
-endmenu
-
index 8437c20538b66157e2a81420ba32da24dec20422..8dc3d4ce26c69cf7804501b09d5e2ba51ec83252 100644 (file)
@@ -25,85 +25,6 @@ PKG_BUILD_FLAGS:=no-mips16
 
 GST_VERSION:=1.0
 
-LIBAV_ENCODERS:= \
-       ac3 \
-       jpegls \
-       mpeg1video \
-       mpeg2video \
-       mpeg4 \
-       pcm_s16be \
-       pcm_s16le \
-       png \
-       vorbis \
-       zlib \
-
-LIBAV_DECODERS:= \
-       aac \
-       ac3 \
-       atrac3 \
-       gif \
-       h264 \
-       jpegls \
-       mp2 \
-       mp3 \
-       mpeg1video \
-       mpeg2video \
-       mpeg4 \
-       mpegvideo \
-       pcm_s16be \
-       pcm_s16le \
-       png \
-       vorbis \
-       wmav1 \
-       wmav2 \
-       zlib \
-
-LIBAV_MUXERS:= \
-       ac3 \
-       ffm \
-       h264 \
-       mp3 \
-       mp4 \
-       mpeg1video \
-       mpeg2video \
-       mpegts \
-       ogg \
-       oss \
-       rtp \
-
-LIBAV_DEMUXERS:= \
-       ac3 \
-       ffm \
-       h264 \
-       mp3 \
-       mpegps \
-       mpegts \
-       mpegvideo \
-       ogg \
-       rm \
-       rtsp \
-       sdp \
-       v4l2 \
-
-LIBAV_PARSERS:= \
-       aac \
-       ac3 \
-       h264 \
-       mpegaudio \
-       mpegvideo \
-       mpeg4video \
-
-LIBAV_PROTOCOLS:= \
-       file http pipe rtp tcp udp
-
-PKG_CONFIG_DEPENDS:= \
-       $(patsubst %,CONFIG_GST1_LIBAV_ENCODER_%,$(LIBAV_ENCODERS)) \
-       $(patsubst %,CONFIG_GST1_LIBAV_DECODER_%,$(LIBAV_DECODERS)) \
-       $(patsubst %,CONFIG_GST1_LIBAV_MUXER_%,$(LIBAV_DEMUXERS)) \
-       $(patsubst %,CONFIG_GST1_LIBAV_DEMUXER_%,$(LIBAV_DEMUXERS)) \
-       $(patsubst %,CONFIG_GST1_LIBAV_PARSER_%,$(LIBAV_PARSERS)) \
-       $(patsubst %,CONFIG_GST1_LIBAV_PROTOCOL_%,$(LIBAV_PROTOCOLS))
-
 include $(INCLUDE_DIR)/package.mk
 include $(INCLUDE_DIR)/nls.mk
 include $(INCLUDE_DIR)/meson.mk
@@ -122,90 +43,12 @@ define Package/gst1-libav/description
   GStreamer with libav bindings using internal Libav
 endef
 
-define Package/gst1-libav/config
-  source "$(SOURCE)/Config.in"
-endef
-
-FILTER_CONFIG= \
-       $(foreach c, $(3), \
-               $(if $(CONFIG_GST1_LIBAV_$(1)_$(c)),--enable-$(2)='$(c)') \
-       )
-
-LIBAV_CONFIGURE_ENCODERS:=$(call FILTER_CONFIG,ENCODER,encoder,$(LIBAV_ENCODERS))
-LIBAV_CONFIGURE_DECODERS:=$(call FILTER_CONFIG,DECODER,decoder,$(LIBAV_DECODERS))
-LIBAV_CONFIGURE_MUXERS:=$(call FILTER_CONFIG,MUXER,muxer,$(LIBAV_MUXERS))
-LIBAV_CONFIGURE_DEMUXERS:=$(call FILTER_CONFIG,DEMUXER,demuxer,$(LIBAV_DEMUXERS))
-LIBAV_CONFIGURE_PARSERS:=$(call FILTER_CONFIG,PARSER,parser,$(LIBAV_PARSERS))
-LIBAV_CONFIGURE_PROTOCOLS:=$(call FILTER_CONFIG,PROTOCOL,protocol,$(LIBAV_PROTOCOLS))
-
-# Hack to build on mips64.
-ifneq ($(findstring octeonplus,$(CONFIG_CPU_TYPE)),)
-  REAL_CPU_TYPE:=octeon+
-else
-  # Strip off FPU notation.
-  REAL_CPU_TYPE:=$(firstword $(subst +, ,$(CONFIG_CPU_TYPE)))
-endif
-
-CONFIGURE_ARGS += \
-       --disable-Bsymbolic \
-       --disable-fatal-warnings \
-       --disable-glib-asserts \
-       --disable-gobject-cast-checks \
-       --disable-gtk-doc-html \
-       --disable-valgrind \
-       --without-system-libav \
-       --with-pic \
-       --with-libav-extra-configure=" \
-       $(if $(REAL_CPU_TYPE),--cpu=$(call qstrip,$(REAL_CPU_TYPE)),) \
-       --disable-bsfs \
-       --disable-programs \
-       --disable-devices \
-       --disable-debug \
-       --disable-doc \
-       --disable-extra-warnings \
-       --disable-htmlpages \
-       --disable-manpages \
-       --disable-podpages \
-       --disable-txtpages \
-       --disable-runtime-cpudetect \
-       --disable-encoders \
-       $(LIBAV_CONFIGURE_ENCODERS) \
-       --disable-decoders \
-       $(LIBAV_CONFIGURE_DECODERS) \
-       --disable-muxers \
-       $(LIBAV_CONFIGURE_MUXERS) \
-       --disable-demuxers \
-       $(LIBAV_CONFIGURE_DEMUXERS) \
-       --disable-parsers \
-       $(LIBAV_CONFIGURE_PARSERS) \
-       --disable-protocols \
-       $(LIBAV_CONFIGURE_PROTOCOLS) \
-       --disable-asm \
-       --disable-altivec \
-       --disable-amd3dnow \
-       --disable-amd3dnowext \
-       --disable-mmx \
-       --disable-mmxext \
-       --disable-sse \
-       --disable-sse2 \
-       --disable-sse3 \
-       --disable-ssse3 \
-       --disable-sse4 \
-       --disable-sse42 \
-       --disable-avx \
-       --disable-xop \
-       --disable-fma3 \
-       --disable-fma4 \
-       --disable-avx2 \
-       --disable-inline-asm \
-       --disable-x86asm"
-
 define Package/gst1-libav/install
        $(INSTALL_DIR) $(1)/usr/lib/gstreamer-$(GST_VERSION)
        ( cd $(PKG_INSTALL_DIR); $(CP) \
-                ./usr/lib/gstreamer-$(GST_VERSION)/libgstlibav.so* \
-                $(1)/usr/lib/gstreamer-$(GST_VERSION)/ \
-        )
+               ./usr/lib/gstreamer-$(GST_VERSION)/libgstlibav.so* \
+               $(1)/usr/lib/gstreamer-$(GST_VERSION)/ \
+       )
 endef
 
 $(eval $(call BuildPackage,gst1-libav))