[vlc-commits] osx packaging: 3rd party frameworks are optional

Rafaël Carré git at videolan.org
Thu Nov 24 00:55:35 CET 2011


vlc | branch: master | Rafaël Carré <funman at videolan.org> | Wed Nov 23 18:54:26 2011 -0500| [a1d248f0b0f633df814ef56b2e71f3ee8f1827bb] | committer: Rafaël Carré

osx packaging: 3rd party frameworks are optional

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

 extras/package/macosx/package.mak |   20 +++++++++++++-------
 1 files changed, 13 insertions(+), 7 deletions(-)

diff --git a/extras/package/macosx/package.mak b/extras/package/macosx/package.mak
index d0ac46c..e0b3f5d 100644
--- a/extras/package/macosx/package.mak
+++ b/extras/package/macosx/package.mak
@@ -5,7 +5,7 @@ noinst_DATA = VLC.app
 endif
 endif
 
-# This is just for development purposes. 
+# This is just for development purposes.
 # The resulting VLC.app will only run in this tree.
 VLC.app: VLC-tmp.app
 	rm -Rf $@
@@ -35,12 +35,18 @@ VLC-tmp.app: vlc
 	sed "s/#REVISION#/$$REVISION/g" > $(top_builddir)/tmp/extras/package/macosx/Info.plist
 	cp -R $(top_builddir)/extras/package/macosx/Resources $(top_builddir)/tmp/extras/package/macosx/
 	cd "$(srcdir)"; cp AUTHORS COPYING THANKS $(abs_top_builddir)/tmp/
-	mkdir -p $(top_builddir)/tmp/extras/contrib/Sparkle
-	cp -R $(CONTRIB_DIR)/Sparkle/Sparkle.framework $(top_builddir)/tmp/extras/contrib/Sparkle
-	mkdir -p $(top_builddir)/tmp/extras/contrib/BGHUDAppKit
-	cp -R $(CONTRIB_DIR)/BGHUDAppKit/BGHUDAppKit.framework $(top_builddir)/tmp/extras/contrib/BGHUDAppKit
-	mkdir -p $(top_builddir)/tmp/extras/contrib/Growl
-	cp -R $(CONTRIB_DIR)/Growl/Growl.framework $(top_builddir)/tmp/extras/contrib/Growl
+	if test -d $(CONTRIB_DIR)/Sparkle/Sparkle.framework; then; \
+		mkdir -p $(top_builddir)/tmp/extras/contrib/Sparkle; \
+		cp -R $(CONTRIB_DIR)/Sparkle/Sparkle.framework $(top_builddir)/tmp/extras/contrib/Sparkle; \
+	fi
+	if test -d $(CONTRIB_DIR)/BGHUDAppKit/BGHUDAppKit.framework; then; \
+		mkdir -p $(top_builddir)/tmp/extras/contrib/BGHUDAppKit; \
+		cp -R $(CONTRIB_DIR)/BGHUDAppKit/BGHUDAppKit.framework $(top_builddir)/tmp/extras/contrib/BGHUDAppKit; \
+	fi
+	if test -d $(CONTRIB_DIR)/Growl/Growl.framework; then; \
+		mkdir -p $(top_builddir)/tmp/extras/contrib/Growl; \
+		cp -R $(CONTRIB_DIR)/Growl/Growl.framework $(top_builddir)/tmp/extras/contrib/Growl; \
+	fi
 	mkdir -p $(top_builddir)/tmp/modules/audio_output
 	mkdir -p $(top_builddir)/tmp/modules/gui/macosx
 	cd "$(srcdir)/modules/gui/macosx/" && cp \



More information about the vlc-commits mailing list