Ignore:
Timestamp:
Oct 14, 2007, 4:02:10 PM (12 years ago)
Author:
nox@…
Message:

Freecell:

  • Ported to xcode portgroup.
  • Added universal support.
  • Now fetches sources from MacPorts distfiles repository.
  • Added livecheck.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/aqua/Freecell/Portfile

    r29890 r29893  
    11# $Id$
    22
    3 PortSystem  1.0
     3PortSystem      1.0
     4PortGroup       xcode 1.0
    45
    56name            Freecell
     
    1112
    1213long_description \
    13     ${description}
     14    The imaginatively-titled “Freecell” is a Mac OS X version of the classic solitaire game.
    1415
    1516homepage        http://randomoracle.com/freecell/
    16 master_sites    ${homepage}downloads/
    17 dist_subdir     ${name}/${version}
    18 distname        freecell
     17master_sites    macports
     18use_bzip2       yes
    1919
    20 checksums       md5 87a4c96424247ed0f17f7949acadf967 \
    21                 sha1 f5e937c6322f78d42dc7b864a0d456fb253f7fd3 \
    22                 rmd160 68c29c3b6697ad66a11ca87d4754cfde1bbdb770
     20checksums       md5 05c41aa87c3a6c390f83c12db7c4ff3d \
     21                sha1 2e609fe0548f44a316f77f15db39581aad7a587f \
     22                rmd160 0dbb3cbb23730654244091f4683c51a590a373ab
    2323
    24 worksrcdir      Freecell
    25 
    26 use_configure   no
    27 
    28 build.type      pbx
    29 build.target    -configuration Deployment
    30 
    31 set xcodebuilddir   build
    32 platform darwin 8 {
    33     if {$xcodeversion == "2.1"} {
    34         set xcodebuilddir   build/Deployment
     24variant universal {
     25    post-patch {
     26        reinplace -E "/OTHER_CFLAGS/s|\"\"|\"${configure.universal_cflags}\"|" \
     27            ${worksrcpath}/Freecell.pbproj/project.pbxproj
     28        reinplace -E "/OTHER_LDFLAGS/s|\"\"|\"${configure.universal_ldflags}\"|" \
     29            ${worksrcpath}/Freecell.pbproj/project.pbxproj
    3530    }
    3631}
    3732
    38 destroot {
    39     xinstall -m 755 -d ${destroot}/Applications/MacPorts
    40     file copy ${worksrcpath}/${xcodebuilddir}/${name}.app \
    41         ${destroot}/Applications/MacPorts/
     33post-destroot {
     34    xinstall -d ${destroot}/Applications/MacPorts
     35    copy ${worksrcpath}/build/UninstalledProducts/Freecell.app \
     36        ${destroot}/Applications/MacPorts
    4237}
    4338
    44 universal_variant   no
     39livecheck.check regex
     40livecheck.regex "${name} (\\d+(?:\\.\\d+)*)"
     41
Note: See TracChangeset for help on using the changeset viewer.