summaryrefslogtreecommitdiffstats
path: root/pkg/darwin/module.rules
diff options
context:
space:
mode:
authorkonablend <[email protected]>2009-06-16 18:26:04 +0000
committerkonablend <[email protected]>2009-06-16 18:26:04 +0000
commitb89e9da706154a77cfc7414e45a9915a83db3caa (patch)
treefb4f83fbc62659cbd468e8aed8210c137a282186 /pkg/darwin/module.rules
parent445ab861ceef755d13e5e0e2ce37194c4dece9f5 (diff)
BuildSystem: added OSX packaging support.
- target is 'make pkg.create' which must be done after a normal build. No dependency checks are performed. - at least 1 package for all platforms is always produced: .tar.bz2 - darwin builds with Xcode add 2 packages: CLI.dmg and GUI.dmg - darwin builds sans Xcode add 1 package: CLI.dmg git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2542 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'pkg/darwin/module.rules')
-rw-r--r--pkg/darwin/module.rules36
1 files changed, 36 insertions, 0 deletions
diff --git a/pkg/darwin/module.rules b/pkg/darwin/module.rules
new file mode 100644
index 000000000..bef593bf3
--- /dev/null
+++ b/pkg/darwin/module.rules
@@ -0,0 +1,36 @@
+pkg.create:: $(PKG.cli.dmg) $(PKG.gui.dmg)
+
+$(PKG.cli.dmg): | $(dir $(PKG.cli.dmg))
+$(PKG.cli.dmg): | $(STAGE.cli/)
+ hdiutil create -srcfolder $(STAGE.cli/) -format UDBZ -mode 755 \
+ -volname $(basename $(notdir $@)) $@
+
+$(PKG.gui.dmg): | $(dir $(PKG.gui.dmg))
+$(PKG.gui.dmg): | $(STAGE.gui/)
+ hdiutil create -srcfolder $(STAGE.gui/) -format UDBZ -mode 755 \
+ -volname $(basename $(notdir $@)) $@
+
+pkg.cli.clean:
+ $(RM.exe) -fr $(STAGE.cli/)
+ $(RM.exe) $(PKG.cli.dmg)
+
+pkg.gui.clean:
+ $(RM.exe) -fr $(STAGE.gui/)
+ $(RM.exe) $(PKG.gui.dmg)
+
+$(STAGE.cli/):
+ $(MKDIR.exe) -p $@
+ifeq (1-darwin,$(FEATURE.xcode)-$(BUILD.system))
+ $(CP.exe) $(BUILD/)HandBrakeCLI $(STAGE.cli/)
+ $(call STAGE.doc,$(STAGE.cli/))
+else
+ $(CP.exe) $(TEST.exe) $(STAGE.cli/)
+ $(call STAGE.doc,$(STAGE.cli/))
+endif
+
+$(STAGE.gui/):
+ $(MKDIR.exe) -p $@
+ifeq (1-darwin,$(FEATURE.xcode)-$(BUILD.system))
+ $(CP.exe) -R $(BUILD/)HandBrake.app $(STAGE.gui/)
+ $(call STAGE.doc,$(STAGE.gui/))
+endif