From b56cc33613babcb6f4b0d651c21d84a5f56a47cc Mon Sep 17 00:00:00 2001 From: Steve Lhomme <robux4@ycbcr.xyz> Date: Wed, 15 Jul 2020 08:19:05 +0200 Subject: [PATCH] contrib: vorbis: do not use a fake target for vorbisenc We don't add useless rules. vorbisenc is built with libvorbis, so we just build that when needed. --- contrib/src/vorbis/rules.mak | 21 ++++++++------------- 1 file changed, 8 insertions(+), 13 deletions(-) diff --git a/contrib/src/vorbis/rules.mak b/contrib/src/vorbis/rules.mak index 82bf13a8bc33..184ef09d0315 100644 --- a/contrib/src/vorbis/rules.mak +++ b/contrib/src/vorbis/rules.mak @@ -6,15 +6,18 @@ VORBIS_URL := http://downloads.xiph.org/releases/vorbis/libvorbis-$(VORBIS_VERSI ifdef HAVE_FPU PKGS += vorbis endif +ifdef BUILD_ENCODERS +PKGS += vorbis +endif + ifeq ($(call need_pkg,"vorbis >= 1.1"),) +ifdef BUILD_ENCODERS +ifeq ($(call need_pkg,"vorbisenc >= 1.1"),) PKGS_FOUND += vorbis endif -PKGS_ALL += vorbisenc -ifdef BUILD_ENCODERS -PKGS += vorbisenc +else +PKGS_FOUND += vorbis endif -ifeq ($(call need_pkg,"vorbisenc >= 1.1"),) -PKGS_FOUND += vorbisenc endif $(TARBALLS)/libvorbis-$(VORBIS_VERSION).tar.xz: @@ -39,11 +42,3 @@ DEPS_vorbis = ogg $(DEPS_ogg) cd $< && $(HOSTVARS) ./configure $(HOSTCONF) --disable-docs --disable-examples --disable-oggtest cd $< && $(MAKE) install touch $@ - -.sum-vorbisenc: .sum-vorbis - touch $@ - -DEPS_vorbisenc = vorbis $(DEPS_vorbis) - -.vorbisenc: - touch $@ -- GitLab