From fe5e2de5933a5b763753bf7c569f54fca0691869 Mon Sep 17 00:00:00 2001 From: Hans-Christoph Steiner Date: Wed, 12 Oct 2011 17:07:59 +0000 Subject: the built-in Tcl in Mac OS X tends to be ancient, so prefer the user-installed one in /Library/Frameworks svn path=/trunk/externals/loaders/tclpd/; revision=15576 --- Makefile | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 2c000a7..a9ad7c2 100644 --- a/Makefile +++ b/Makefile @@ -127,7 +127,7 @@ ifeq ($(UNAME),Darwin) FAT_FLAGS = -arch ppc -arch i386 -arch x86_64 -mmacosx-version-min=10.4 SOURCES += $(SOURCES_iphoneos) endif - ALL_CFLAGS += $(FAT_FLAGS) -fPIC -I/sw/include + ALL_CFLAGS += $(FAT_FLAGS) -fPIC -I/sw/include -I/Library/Frameworks/Tcl.framework/Headers # if the 'pd' binary exists, check the linking against it to aid with stripping BUNDLE_LOADER = $(shell test ! -e $(PD_PATH)/bin/pd || echo -bundle_loader $(PD_PATH)/bin/pd) ALL_LDFLAGS += $(FAT_FLAGS) -bundle $(BUNDLE_LOADER) -undefined dynamic_lookup -L/sw/lib @@ -314,6 +314,13 @@ single_install: $(LIBRARY_NAME) install-doc install-examples install-manual $(INSTALL_PROGRAM) $(LIBRARY_NAME).$(EXTENSION) $(DESTDIR)$(objectsdir)/$(LIBRARY_NAME) $(STRIP) $(DESTDIR)$(objectsdir)/$(LIBRARY_NAME)/$(LIBRARY_NAME).$(EXTENSION) $(INSTALL_DATA) pdlib.tcl $(DESTDIR)$(objectsdir)/$(LIBRARY_NAME) +ifeq ($(UNAME),Darwin) +# force tclpd to use the Tcl.framework built into Pd-extended + install_name_tool -change \ + /Library/Frameworks/Tcl.framework/Versions/8.5/Tcl \ + @executable_path/../Frameworks/Tcl.framework/Versions/8.5/Tcl \ + $(DESTDIR)$(objectsdir)/$(LIBRARY_NAME)/$(LIBRARY_NAME).$(EXTENSION) +endif install-doc: $(INSTALL_DIR) $(DESTDIR)$(objectsdir)/$(LIBRARY_NAME) -- cgit v1.2.1