Ticket #38300: R-app.Portfile.diff

File R-app.Portfile.diff, 1.5 KB (added by kjellpk (Kjell Konis), 11 years ago)
  • Portfile

    old new  
    66
    77name                      R-app
    88version                   1.53
     9revision                  1
    910categories                math science aqua
    1011maintainers               me.com:kjell.konis
    1112license                   GPL-2+
     
    1920fetch.type                svn
    2021svn.url                   https://svn.r-project.org/R-packages/trunk/Mac-GUI
    2122svn.method                checkout
    22 svn.revision              6335
     23svn.revision              6451
    2324
    2425post-patch {
    2526    reinplace "s|/Library/Frameworks/R.framework|${frameworks_dir}/R.framework|g" \
     
    3435
    3536worksrcdir                Mac-GUI
    3637
    37 # R-app does not yet build with clang
    38 if {${configure.compiler} == "clang"} {
    39     configure.compiler llvm-gcc-4.2
    40 }
    41 
    4238xcode.project             R.xcodeproj
    4339xcode.target              R
    44 xcode.configuration       Deployment64
     40
     41if {${os.major} == "10"} {
     42  if {${build_arch} == "i386"} {
     43    xcode.configuration   SnowLeopard
     44  } else {
     45    xcode.configuration   SnowLeopard64
     46  }
     47} elseif {${os.major} == "11"} {
     48  xcode.configuration     Lion64
     49} elseif {${os.major} == "12"} {
     50  xcode.configuration     MLion64
     51} else {
     52  ui_error "R.app is not supported on this platform."
     53  return -code error
     54}
     55
    4556xcode.build.settings      FRAMEWORK_SEARCH_PATHS=${frameworks_dir}
    4657xcode.destroot.settings   FRAMEWORK_SEARCH_PATHS=${frameworks_dir}
    4758