aboutsummaryrefslogtreecommitdiff
path: root/packages
diff options
context:
space:
mode:
authorHans-Christoph Steiner <eighthave@users.sourceforge.net>2006-07-29 23:12:30 +0000
committerHans-Christoph Steiner <eighthave@users.sourceforge.net>2006-07-29 23:12:30 +0000
commitb846cc7133bd4f9447ac2bb5f58da5f25ba7c5e6 (patch)
tree0bcae13f871b8b1509dbb565e5c9227a6926633a /packages
parent172b065aeadd0158377412f7f4c4121d6f1e3fe3 (diff)
fixed up logic for tracking down which Wish.app to use and whether to copy it has embedded Frameworks
svn path=/trunk/; revision=5432
Diffstat (limited to 'packages')
-rw-r--r--packages/darwin_app/Makefile18
1 files changed, 11 insertions, 7 deletions
diff --git a/packages/darwin_app/Makefile b/packages/darwin_app/Makefile
index 4db7596c..f6413393 100644
--- a/packages/darwin_app/Makefile
+++ b/packages/darwin_app/Makefile
@@ -18,11 +18,11 @@ include $(BUILDLAYOUT_DIR)/Makefile.buildlayout
# download TclTkAquaStandalone-8.?.*.dmg from http://tcltkaqua.sourceforge.net/
# and mount it. The files will be copied from the mounted .dmg image.
#WISH = /Applications/Utilities/Wish\ Shell.app
-TCLTK := $(shell /bin/ls -1r TclTkAquaStandalone-8.?.*.dmg|head -n 1|sed 's/\.dmg//')
+TCLTK := $(shell find $(packages_src)/darwin_app -name 'TclTkAquaStandalone-8.?.*.dmg'|head -n 1|sed 's|.*/\(.*\)\.dmg|\1|')
TCLTK_BUGFIX_VERSION := $(shell echo $(TCLTK) | \
- sed 's|TclTkAquaStandalone-[0-9]\.[0-9]\.\([0-9]*\)|\1|')
+ sed 's|.*TclTkAquaStandalone-[0-9]\.[0-9]\.\([0-9]*\)|\1|')
-WISH_SOURCE = $(shell $(scripts_src)/find-wish.app.sh)
+WISH_SOURCE = $(shell $(scripts_src)/find-wish.app.sh "$(TCLTK)")
# Wish Shell.app changed to Wish.app in TclTk 8.4.10
WISH_NAME := $(shell ( test -d $(WISH_SOURCE)/Wish.app && echo Wish) \
|| echo Wish Shell)
@@ -81,7 +81,7 @@ darwin_app_embed_libs
extended_install:
cd $(packages_src) && $(MAKE) $(DEST_PATHS) install
-
+
#------------------------------------------------------------------------------#
darwin_app_devel: darwin_app_devel_core rez_install
@echo " "
@@ -112,8 +112,11 @@ darwin_app_wrapper: Info.plist
install -m0644 -p \
"$(WISH_CONTENTS)/Resources/$(WISH_NAME).rsrc" \
"$(PD_APP_CONTENTS)/Resources"
- install -d "$(PD_APP_CONTENTS)/Frameworks"
- cp -Rp "$(WISH_CONTENTS)/Frameworks" "$(PD_APP_CONTENTS)"
+# only install Frameworks if using a standalone Wish.app
+ (test -d "$(WISH_CONTENTS)/Frameworks" && \
+ (install -d "$(PD_APP_CONTENTS)/Frameworks"; \
+ cp -Rp "$(WISH_CONTENTS)/Frameworks" "$(PD_APP_CONTENTS)" ) ) || \
+ echo "Skipping Frameworks copy."
# set up app wrapper
install -d "$(PD_APP_CONTENTS)/Resources/Scripts"
install -m0644 -p Info.plist "$(PD_APP_CONTENTS)"
@@ -283,7 +286,8 @@ test_locations:
@echo "PD_VERSION: $(PD_VERSION)"
@echo "PACKAGE_NAME: $(PACKAGE_NAME)"
@echo "PACKAGE_VERSION: $(PACKAGE_VERSION)"
- @echo "WISH_NAME: $(WISH_NAME)"
+ @echo "WISH: $(WISH)"
+ @echo "TCLTK: $(TCLTK)"
@echo "TCLTK_BUGFIX_VERSION: $(TCLTK_BUGFIX_VERSION)"
@echo "CWD $(CWD)"
@echo "DESTDIR $(DESTDIR)"