[vlc-commits] contrib: guess OS automatically, make package will create:

Rafaël Carré git at videolan.org
Thu Nov 24 03:41:41 CET 2011


vlc | branch: master | Rafaël Carré <funman at videolan.org> | Wed Nov 23 21:16:10 2011 -0500| [cc8487db61c0b09b992a34aba6b40c02640e72b0] | committer: Rafaël Carré

contrib: guess OS automatically, make package will create:

vlc-contrib-$(OS)-$(HOST)-$(DATE).tar.bz2

where OS = macosx/win32
HOST=x86_64-apple-darwin10 / i686-apple-darwin9 / i586-mingw32-msvc / x86_64-w64-mingw32 ...

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=cc8487db61c0b09b992a34aba6b40c02640e72b0
---

 contrib/src/main.mak |   12 ++++++++++--
 1 files changed, 10 insertions(+), 2 deletions(-)

diff --git a/contrib/src/main.mak b/contrib/src/main.mak
index bfd0d67..ef5b64a 100644
--- a/contrib/src/main.mak
+++ b/contrib/src/main.mak
@@ -270,7 +270,15 @@ distclean: clean
 	$(RM) config.mak
 	unlink Makefile
 
-package-%: install
+OS=
+ifdef HAVE_MACOSX
+OS=macosx
+endif
+ifdef HAVE_WIN32
+OS=win32
+endif
+
+package: install
 	rm -Rf tmp/
 	mkdir -p tmp/
 	cp -r $(PREFIX) tmp/
@@ -280,7 +288,7 @@ package-%: install
 		rm -Rf man sbin etc lib/lua lib/sidplay
 	cp $(SRC)/change_prefix.sh tmp/$(notdir $(PREFIX))/
 	cd tmp/$(notdir $(PREFIX)) && ./change_prefix.sh $(PREFIX) @@CONTRIB_PREFIX@@
-	(cd tmp && tar c $(notdir $(PREFIX))/) | bzip2 -c > ../vlc-contrib-$*-$(HOST)-$(DATE).tar.bz2
+	(cd tmp && tar c $(notdir $(PREFIX))/) | bzip2 -c > ../vlc-contrib-$(OS)-$(HOST)-$(DATE).tar.bz2
 
 list:
 	@echo All packages:



More information about the vlc-commits mailing list