[35171] trunk/base/src/port1.0/resources/group/xcode-1.0.tcl

afb at macports.org afb at macports.org
Wed Mar 19 01:59:44 PDT 2008


Revision: 35171
          http://trac.macosforge.org/projects/macports/changeset/35171
Author:   afb at macports.org
Date:     2008-03-19 01:59:44 -0700 (Wed, 19 Mar 2008)

Log Message:
-----------
use applications_dir and frameworks_dir instead of hardcoded paths

Modified Paths:
--------------
    trunk/base/src/port1.0/resources/group/xcode-1.0.tcl

Modified: trunk/base/src/port1.0/resources/group/xcode-1.0.tcl
===================================================================
--- trunk/base/src/port1.0/resources/group/xcode-1.0.tcl	2008-03-19 08:59:38 UTC (rev 35170)
+++ trunk/base/src/port1.0/resources/group/xcode-1.0.tcl	2008-03-19 08:59:44 UTC (rev 35171)
@@ -170,11 +170,12 @@
 # get the install path setting
 # remark: xcodebuild take care of creating the directory if required.
 proc xcode::get_install_path_setting { path type } {
+    global applications_dir frameworks_dir
     if {$path == ""} {
         if {$type == "application"} {
-            return "INSTALL_PATH=/Applications/MacPorts"
+            return "INSTALL_PATH=${applications_dir}"
         } elseif {$type == "framework"} {
-            return "INSTALL_PATH=/Library/Frameworks"
+            return "INSTALL_PATH=${frameworks_dir}"
         } else {
             return ""
         }

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20080319/69179c50/attachment.html 


More information about the macports-changes mailing list