blob: 1392f00f79fbc9ec27c8a7217f2cdb08b389e73a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
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 UDRO -mode 755 \
-volname $(basename $(notdir $@)) \
-ov $(PKG.cli.tmp.dmg)
hdiutil convert -format UDBZ -o $@ $(PKG.cli.tmp.dmg)
$(RM.exe) $(PKG.cli.tmp.dmg)
$(PKG.gui.dmg): | $(dir $(PKG.gui.dmg))
$(PKG.gui.dmg): | $(STAGE.gui/)
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)
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/)
$(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
|