[vlc-devel] [PATCH v2 02/13] contrib: musepack: use $(MOVE) like other contribs

Steve Lhomme robux4 at ycbcr.xyz
Tue Jul 7 08:29:23 CEST 2020


The UNPACK_DIR matches the name of the tarball.
---
 contrib/src/mpcdec/rules.mak | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/contrib/src/mpcdec/rules.mak b/contrib/src/mpcdec/rules.mak
index 8b1d3c74a36..9284ad4e99e 100644
--- a/contrib/src/mpcdec/rules.mak
+++ b/contrib/src/mpcdec/rules.mak
@@ -34,13 +34,12 @@ endif
 	sed -i.orig \
 		-e 's,^add_subdirectory(mpcgain),,g' \
 		-e 's,^add_subdirectory(mpcchap),,g' \
-		$@_src_r$(MUSE_REV)/CMakeLists.txt
+		$(UNPACK_DIR)/CMakeLists.txt
 ifdef HAVE_MACOSX
-	cd musepack_src_r$(MUSE_REV) && \
+	cd $(UNPACK_DIR) && \
 	sed -e 's%-O3 -Wall%-O3 -Wall $(CFLAGS)%' CMakeLists.txt
 endif
-	mv $@_src_r$(MUSE_REV) $@
-	touch $@
+	$(MOVE)
 
 .mpcdec: musepack toolchain.cmake
 	cd $< && $(HOSTVARS_PIC) $(CMAKE) -DSHARED=OFF .
-- 
2.26.2



More information about the vlc-devel mailing list