Changeset 149057 for trunk/dports/math


Ignore:
Timestamp:
May 27, 2016, 12:30:37 PM (3 years ago)
Author:
mcalhoun@…
Message:

octave family: generate icons with XCode prior to 4.5 (#51487)

Location:
trunk/dports/math
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/math/octave-devel/Portfile

    r149050 r149057  
    499499    depends_build-append port:ImageMagick
    500500
     501    if {[vercmp ${xcodeversion} 4.5] < 0} {
     502        # need a way to generate icns file for XCode prior to 4.5
     503        # see #51487
     504        depends_build-append port:libicns
     505    }
     506
    501507    global appName
    502508    set appName Octave_${version}.app
     
    565571        }
    566572
    567         system -W ${worksrcpath} "/usr/bin/iconutil -c icns -o ${appName}/Contents/Resources/Octave.icns Octave.iconset"
     573        if {[vercmp ${xcodeversion} 4.5] >= 0} {
     574            system -W ${worksrcpath} "/usr/bin/iconutil -c icns -o ${appName}/Contents/Resources/Octave.icns Octave.iconset"
     575        } else {
     576            # /usr/bin/iconutil introduced in XCode 4.5
     577            # see #51487
     578            system -W ${worksrcpath}/Octave.iconset \
     579                "${prefix}/bin/png2icns ${worksrcpath}/${appName}/Contents/Resources/Octave.icns icon_16x16.png icon_32x32.png icon_128x128.png icon_256x256.png icon_512x512.png"
     580        }
    568581    }
    569582
  • trunk/dports/math/octave/Portfile

    r149046 r149057  
    347347    depends_build-append port:ImageMagick
    348348
     349    if {[vercmp ${xcodeversion} 4.5] < 0} {
     350        # need a way to generate icns file for XCode prior to 4.5
     351        # see #51487
     352        depends_build-append port:libicns
     353    }
     354
    349355    global appName
    350356    set appName Octave.app
     
    413419        }
    414420
    415         system -W ${worksrcpath} "/usr/bin/iconutil -c icns -o ${appName}/Contents/Resources/Octave.icns Octave.iconset"
     421        if {[vercmp ${xcodeversion} 4.5] >= 0} {
     422            system -W ${worksrcpath} "/usr/bin/iconutil -c icns -o ${appName}/Contents/Resources/Octave.icns Octave.iconset"
     423        } else {
     424            # /usr/bin/iconutil introduced in XCode 4.5
     425            # see #51487
     426            system -W ${worksrcpath}/Octave.iconset \
     427                "${prefix}/bin/png2icns ${worksrcpath}/${appName}/Contents/Resources/Octave.icns icon_16x16.png icon_32x32.png icon_128x128.png icon_256x256.png icon_512x512.png"
     428        }
    416429    }
    417430
Note: See TracChangeset for help on using the changeset viewer.