--- ./mozilla/toolkit/mozapps/installer/packager.mk.org 2010-01-21 21:10:00.234466295 +0100 +++ ./mozilla/toolkit/mozapps/installer/packager.mk 2010-01-21 21:10:29.847369216 +0100 @@ -362,13 +362,13 @@ # NOTE: this must be a tar now that dist links into the tree so that we # do not strip the binaries actually in the tree. @echo "Creating package directory..." - @mkdir $(DIST)/$(MOZ_PKG_DIR) + @mkdir -p $(DESTDIR)/$(MOZ_PKG_APPDIR) ifdef MOZ_PKG_MANIFEST $(RM) -rf $(DIST)/xpt $(call PACKAGER_COPY, "$(call core_abspath,$(DIST))",\ - "$(call core_abspath,$(DIST)/$(MOZ_PKG_DIR))", \ + "$(call core_abspath,$(DESTDIR)/$(MOZ_PKG_APPDIR))", \ "$(MOZ_PKG_MANIFEST)", "$(PKGCP_OS)", 1, 0, 1) - $(PERL) $(MOZILLA_DIR)/xpinstall/packager/xptlink.pl -s $(DIST) -d $(DIST)/xpt -f $(DIST)/$(MOZ_PKG_DIR)/$(_BINPATH)/components -v -x "$(XPIDL_LINK)" + $(PERL) $(MOZILLA_DIR)/xpinstall/packager/xptlink.pl -s $(DIST) -d $(DIST)/xpt -f $(DESTDIR)/$(MOZ_PKG_APPDIR)/$(_BINPATH)/components -v -x "$(XPIDL_LINK)" else # !MOZ_PKG_MANIFEST ifeq ($(MOZ_PKG_FORMAT),DMG) # If UNIVERSAL_BINARY, the package will be made from an already-prepared @@ -377,11 +377,11 @@ ifndef STAGE_SDK @cd $(DIST) && rsync -auv --copy-unsafe-links $(_APPNAME) $(MOZ_PKG_DIR) else - @cd $(DIST)/bin && tar $(TAR_CREATE_FLAGS) - * | (cd ../$(MOZ_PKG_DIR); tar -xf -) + cp -rfLp $(DIST)/bin/* $(DESTDIR)$(MOZ_PKG_APPDIR) endif endif else - @cd $(DIST)/bin && tar $(TAR_CREATE_FLAGS) - * | (cd ../$(MOZ_PKG_DIR); tar -xf -) + cp -rfLp $(DIST)/bin/* $(DESTDIR)$(MOZ_PKG_APPDIR) @echo "Linking XPT files..." @rm -rf $(DIST)/xpt @$(NSINSTALL) -D $(DIST)/xpt --- comm-1.9.1/mail/app/Makefile.in.orig 2009-12-18 14:49:43.990647725 +0100 +++ comm-1.9.1/mail/app/Makefile.in 2009-12-18 14:49:53.830739781 +0100 @@ -48,7 +48,7 @@ GRE_BUILDID = $(shell $(PYTHON) $(MOZILLA_SRCDIR)/config/printconfigsetting.py $(LIBXUL_DIST)/bin/platform.ini Build BuildID) DEFINES += \ - -DTHUNDERBIRD_ICO=\"$(DIST)/branding/thunderbird.ico\" \ + -DTHUNDERBIRD_ICO=\"$(DIST)/branding/$(MOZ_APP_NAME).ico\" -DAB_CD=$(AB_CD) \ -DAB_CD=$(AB_CD) \ -DGRE_MILESTONE=$(GRE_MILESTONE) \ -DGRE_BUILDID=$(GRE_BUILDID) \ @@ -359,7 +359,7 @@ endif mkdir -p $(DIST)/$(APP_NAME).app/Contents/Library/Spotlight rsync -a --copy-unsafe-links $(DIST)/package/Thunderbird.mdimporter $(DIST)/$(APP_NAME).app/Contents/Library/Spotlight - cp -RL $(DIST)/branding/thunderbird.icns $(DIST)/$(APP_NAME).app/Contents/Resources/thunderbird.icns + cp -RL $(DIST)/branding/thunderbird.icns $(DIST)/branding/$(MOZ_APP_NAME).icns printf APPLMOZM > $(DIST)/$(APP_NAME).app/Contents/PkgInfo # remove CVS dirs from packaged app find $(DIST)/$(APP_NAME).app -type d -name "CVS" -prune -exec rm -rf {} \;