summaryrefslogtreecommitdiffstats
path: root/pkg
diff options
context:
space:
mode:
authorkonablend <[email protected]>2009-06-18 20:48:07 +0000
committerkonablend <[email protected]>2009-06-18 20:48:07 +0000
commit9bc7f6cea55af4796aaac35057ca7058456c3e03 (patch)
tree38a753a2bbdc366270841ae1d1fe9e2315d81b5b /pkg
parentdf54e47eb709cb97075d18e1101e1ce2c464ef75 (diff)
BuildSystem: appcast updates
- changed appcast URL to add architecture for OSX platform - added autogen'd appcast.xml during 'make pkg.create' - added new build of Sparkle 1.5b6 for 4 { i386, x86_64, ppc, ppc64 } which disables security. - added patch which was used against Sparkle sources. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2569 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'pkg')
-rw-r--r--pkg/appcast.xml.m434
-rw-r--r--pkg/darwin/module.defs3
-rw-r--r--pkg/darwin/module.rules15
3 files changed, 51 insertions, 1 deletions
diff --git a/pkg/appcast.xml.m4 b/pkg/appcast.xml.m4
new file mode 100644
index 000000000..98634943a
--- /dev/null
+++ b/pkg/appcast.xml.m4
@@ -0,0 +1,34 @@
+dnl
+dnl This file is a template used to generate various appcast.xml files.
+dnl
+changequote(<<, >>)dnl
+include(<<handbrake.m4>>)dnl
+changequote([, ])dnl
+dnl
+dnl
+dnl
+<?xml version="1.0" encoding="utf-8"?>
+<rss version="2.0" xmlns:sparkle="http://www.andymatuschak.org/xml-namespaces/sparkle">
+ <channel>
+ <title>__HB_name __BUILD_arch Appcast</title>
+ <link>__HB_url_appcast</link>
+ <description></description>
+ <language>en</language>
+ <pubDate>__BUILD_date</pubDate>
+ <lastBuildDate>__BUILD_date</lastBuildDate>
+ <item>
+ <title>__HB_name __HB_version Released</title>
+ <cli>__HB_build "__HB_version __BUILD_arch"</cli>
+ <sparkle:releaseNotesLink>__HB_url_appbase.html</sparkle:releaseNotesLink>
+ <pubDate>__BUILD_date</pubDate>
+ <description></description>
+ <enclosure
+ sparkle:version="__HB_build"
+ sparkle:shortVersionString="__HB_version __BUILD_arch"
+ url="http://handbrake.fr/rotation.php?file=__APPCAST_dmg"
+ length="__APPCAST_dmg_size"
+ type="application/octet-stream"/>
+ <sparkle:minimumSystemVersion>10.5.0</sparkle:minimumSystemVersion>
+ </item>
+ </channel>
+</rss>
diff --git a/pkg/darwin/module.defs b/pkg/darwin/module.defs
index 33115a2a8..8c88e7dbd 100644
--- a/pkg/darwin/module.defs
+++ b/pkg/darwin/module.defs
@@ -7,7 +7,10 @@ PKG.gui.tmp.dmg = $(PKG.out/)$(HB.name)-$(HB.version)-MacOSX.5_GUI_$(BUILD.machi
STAGE.cli/ = $(BUILD/)stage/cli/
STAGE.gui/ = $(BUILD/)stage/gui/
+PKG.appcast = $(PKG.out/)$(notdir $(HB.url.appcast))
+
###############################################################################
BUILD.out += $(PKG.cli.dmg)
BUILD.out += $(PKG.gui.dmg)
+BUILD.out += $(PKG.appcast)
diff --git a/pkg/darwin/module.rules b/pkg/darwin/module.rules
index 1392f00f7..28abb0520 100644
--- a/pkg/darwin/module.rules
+++ b/pkg/darwin/module.rules
@@ -1,4 +1,13 @@
-pkg.create:: $(PKG.cli.dmg) $(PKG.gui.dmg)
+pkg.create:: $(PKG.appcast) $(PKG.cli.dmg) $(PKG.gui.dmg)
+
+
+$(PKG.appcast): | $(dir $(PKG.appcast))
+$(PKG.appcast): $(BUILD/)project/handbrake.m4
+$(PKG.appcast): $(PKG.in/)appcast.xml.m4
+ $(M4.exe) -I$(BUILD/)project \
+ -D__APPCAST_dmg="$(notdir $(PKG.gui.dmg))" \
+ -D__APPCAST_dmg_size="$(shell stat -f '%z' $(PKG.gui.dmg))" \
+ $(PKG.in/)appcast.xml.m4 > $@
$(PKG.cli.dmg): | $(dir $(PKG.cli.dmg))
$(PKG.cli.dmg): | $(STAGE.cli/)
@@ -10,11 +19,15 @@ $(PKG.cli.dmg): | $(STAGE.cli/)
$(PKG.gui.dmg): | $(dir $(PKG.gui.dmg))
$(PKG.gui.dmg): | $(STAGE.gui/)
+ifeq (1-darwin,$(FEATURE.xcode)-$(BUILD.system))
hdiutil create -srcfolder $(STAGE.gui/) -format UDRO -mode 755 \
-volname $(basename $(notdir $@)) \
-ov $(PKG.gui.tmp.dmg)
hdiutil convert -format UDBZ -o $@ $(PKG.gui.tmp.dmg)
$(RM.exe) $(PKG.gui.tmp.dmg)
+else
+ $(TOUCH.exe) $@
+endif
pkg.cli.clean:
$(RM.exe) -fr $(STAGE.cli/)