From 06ab9393554884a6930092395eb0243251a9e9f4 Mon Sep 17 00:00:00 2001
From: Jonathan Wilkes <jon.w.wilkes@gmail.com>
Date: Tue, 1 Nov 2016 21:41:01 -0400
Subject: [PATCH] fix bugs that were keeping the dmg package from building
 (leaving out the license for now because it relies on outdated Carbon libs)

---
 packages/darwin_app/Makefile | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/packages/darwin_app/Makefile b/packages/darwin_app/Makefile
index 090d3685c..b69e08d8d 100644
--- a/packages/darwin_app/Makefile
+++ b/packages/darwin_app/Makefile
@@ -169,7 +169,7 @@ spotlight_importer_install:
 # tigital's Gem window focus black magic
 rez_install:
 	install -pv "$(CWD)/mac.r" "$(DESTDIR)$(bindir)"
-	cd "$(DESTDIR)$(bindir)" && /Developer/Tools/Rez -t APPL mac.r -o pd
+	cd "$(DESTDIR)$(bindir)" && /usr/bin/Rez -t APPL mac.r -o pd
 
 
 darwin_app_embed_libs:
@@ -232,7 +232,7 @@ dmg:
 	install -p DS_Store "/Volumes/$(VOLUME_NAME)/.DS_Store"
 	install -p VolumeIcon.icns "/Volumes/$(VOLUME_NAME)/.VolumeIcon.icns"
 # To enable the local image icon
-	/Developer/Tools/SetFile -a C /Volumes/$(VOLUME_NAME)/.VolumeIcon.icns \
+	/usr/bin/SetFile -a C /Volumes/$(VOLUME_NAME)/.VolumeIcon.icns \
 		/Volumes/$(VOLUME_NAME)
 	$(MAKE) -C $(packages_src) \
 		DESTDIR="/Volumes/$(VOLUME_NAME)/$(PD_APP_NAME).app/Contents/Resources" doc_format
@@ -241,10 +241,10 @@ dmg:
 	hdiutil convert -format UDZO -o "$(PACKAGE_NAME).dmg" build.dmg
 	rm -f build.dmg
 # install license
-	hdiutil unflatten "$(PACKAGE_NAME).dmg"
-	/Developer/Tools/Rez /Developer/Headers/FlatCarbon/*.r SLA.r -a \
-		-o "$(PACKAGE_NAME).dmg"
-	hdiutil flatten "$(PACKAGE_NAME).dmg"
+#	hdiutil unflatten "$(PACKAGE_NAME).dmg"
+#	/usr/bin/Rez /Developer/Headers/FlatCarbon/*.r SLA.r -a \
+#		-o "$(PACKAGE_NAME).dmg"
+#	hdiutil flatten "$(PACKAGE_NAME).dmg"
 
 
 
-- 
GitLab