From 078e5b495bf1bd56f6900700bcc809f4d6b582bf Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Albert=20Gr=C3=A4f?= <aggraef@gmail.com>
Date: Tue, 24 Jan 2017 14:50:59 +0100
Subject: [PATCH] Use just the real application name (without
 version/architecture suffix) as PD_APP_NAME on OSX.

---
 packages/Makefile.buildlayout | 3 ++-
 packages/darwin_app/Makefile  | 5 ++++-
 2 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/packages/Makefile.buildlayout b/packages/Makefile.buildlayout
index c50317299..2aa13174c 100644
--- a/packages/Makefile.buildlayout
+++ b/packages/Makefile.buildlayout
@@ -217,7 +217,8 @@ PD_VERSION := $(PD_L2ORK_VERSION)-$(PD_TEST_VERSION)
 
 VERSION_DATE := $(shell date +%Y%m%d)
 
-PACKAGE_NAME = Pd-l2ork-$(PD_VERSION)-`uname -m`
+APPLICATION_NAME = Pd-l2ork
+PACKAGE_NAME = $(APPLICATION_NAME)-$(PD_VERSION)-`uname -m`
 
 
 #==============================================================================#
diff --git a/packages/darwin_app/Makefile b/packages/darwin_app/Makefile
index 3852c0d92..ee3e1323c 100644
--- a/packages/darwin_app/Makefile
+++ b/packages/darwin_app/Makefile
@@ -5,7 +5,10 @@ export MACOSX_DEPLOYMENT_TARGET = 10.4
 
 CWD := $(shell pwd)
 BUILD_BASE = $(CWD)/build
-PD_APP_NAME = $(PACKAGE_NAME)
+# some folks may prefer to have the version and architecture in the app name
+#PD_APP_NAME = $(PACKAGE_NAME)
+# but we want just the real name of the application
+PD_APP_NAME = $(APPLICATION_NAME)
 PD_SHORT_NAME = "Purr-Data"
 PD_APP_CONTENTS = $(BUILD_BASE)/$(PD_APP_NAME).app/Contents
 DESTDIR = $(PD_APP_CONTENTS)/Resources/app.nw
-- 
GitLab