From 57952a58b0596d86d6c43d6663590a0c654264c6 Mon Sep 17 00:00:00 2001
From: konablend <kona8lend@gmail.com>
Date: Wed, 17 Jun 2009 22:06:57 +0000
Subject: [PATCH] BuildSystem: OSX packaging: remove unused archs from
 Growl/Sparkle frameworks. - eg. results in 780/156 KB filesystem/dmg savings
 for x86_64 .

git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2564 b64f7644-9d1e-0410-96f1-a4d463321fa5
---
 pkg/darwin/module.rules | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/pkg/darwin/module.rules b/pkg/darwin/module.rules
index f6aa2d610..1392f00f7 100644
--- a/pkg/darwin/module.rules
+++ b/pkg/darwin/module.rules
@@ -38,5 +38,11 @@ $(STAGE.gui/):
 	$(MKDIR.exe) -p $@
 ifeq (1-darwin,$(FEATURE.xcode)-$(BUILD.system))
 	$(CP.exe) -R $(BUILD/)HandBrake.app $(STAGE.gui/)
+	$(LIPO.exe) -thin $(BUILD.arch) \
+	    $(SRC/)macosx/Growl.framework/Versions/A/Growl \
+	    -output $(STAGE.gui/)HandBrake.app/Contents/Frameworks/Growl.framework/Versions/A/Growl
+	$(LIPO.exe) -thin $(BUILD.arch) \
+	    $(SRC/)macosx/Sparkle.framework/Versions/A/Sparkle \
+	    -output $(STAGE.gui/)HandBrake.app/Contents/Frameworks/Sparkle.framework/Versions/A/Sparkle
 	$(call STAGE.doc,$(STAGE.gui/))
 endif
-- 
2.40.0