summaryrefslogtreecommitdiffstats
path: root/pkg/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/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/module.rules')
-rw-r--r--pkg/module.rules19
1 files changed, 19 insertions, 0 deletions
diff --git a/pkg/module.rules b/pkg/module.rules
new file mode 100644
index 000000000..6660d9fdd
--- /dev/null
+++ b/pkg/module.rules
@@ -0,0 +1,19 @@
+$(eval $(call import.MODULE.rules,PKG))
+
+###############################################################################
+
+.PHONY: pkg.create
+
+pkg.create:: $(PKG.src.tar.bz2)
+
+$(PKG.src.tar.bz2): | $(dir $(PKG.src.tar.bz2))
+$(PKG.src.tar.bz2): | $(STAGE.src/)
+ $(TAR.exe) cjf $@ -C $(STAGE.src/) .
+
+$(STAGE.src/):
+ svn export -r$(HB.repo.rev) $(HB.repo.url) $@/$(HB.name)-$(HB.version)
+
+###############################################################################
+
+## include optional platform packaging
+-include $(SRC/)pkg/$(BUILD.system)/module.rules