From ch-r-devel at bobobeach.com  Wed Aug 17 00:54:18 2005
From: ch-r-devel at bobobeach.com (Cyrus Harmon)
Date: Tue, 16 Aug 2005 15:54:18 -0700
Subject: [Rd] MacOS specific framework install problem
Message-ID: <07B09C6F-921F-42EF-86A1-7A790AEE750F@bobobeach.com>

Dear r-devel,

Using the latest R-devel from SVN, when doing a make install, even  
from a build directory, there is a recursive copy that attempts to  
copy the .svn file to the framework include directory. The problem is  
due to the fact that there is a reference to $srcdir in Makefile.in  
that should probably be $top_builddir. The following patch (also  
attached) fixes this:

Index: Makefile.in
===================================================================
--- Makefile.in (revision 35301)
+++ Makefile.in (working copy)
@@ -234,7 +234,7 @@
           ln -f -s -n Versions/Current/Resources Resources)
         @(cd "$(R_FRAMEWORK_DIR)/Resources/lib" && \
           install_name_tool -id "$(R_FRAMEWORK_DIR)/Versions/$ 
(VERSION)/Resources/lib/libR.dylib" ../lib/libR.dylib)
-       @(cp -R $(srcdir)/src/include $(R_FRAMEWORK_DIR)/Versions/ 
Current/PrivateHeaders)
+       @(cp -R $(top_builddir)/src/include $(R_FRAMEWORK_DIR)/ 
Versions/Current/PrivateHeaders)
         @(install_name_tool -change libR.dylib "$(R_FRAMEWORK_DIR)/ 
Versions/$(VERSION)/Resources/lib/libR.dylib" \
           $(R_FRAMEWORK_DIR)/Resources/bin/exec/R)
         @(find "$(R_FRAMEWORK_DIR)/Resources/" -name '*.so' -exec  
install_name_tool \


I would be pleased if someone who understands the build system better  
than idea would review this and check it in if it's the right thing  
to do.

Thanks,

Cyrus


-------------- next part --------------



[Rd] MacOS specific framework install problem
Cyrus Harmon