source: trunk/dports/aqua/Freecell/Portfile @ 112870

Last change on this file since 112870 was 72495, checked in by jmr@…, 9 years ago

Freecell: fix building on recent systems (#17811), use archive.org mirror of disappeared homepage

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.7 KB
Line 
1# $Id: Portfile 72495 2010-10-18 10:54:52Z jmr@macports.org $
2
3PortSystem              1.0
4PortGroup               xcode 1.0
5
6name                    Freecell
7version                 2.1
8categories              aqua games
9platforms               darwin
10maintainers             nomaintainer
11
12description             classic solitaire game
13long_description        The imaginatively-titled “Freecell” is a Mac OS X \
14                        version of the classic solitaire game.
15
16homepage                http://web.archive.org/web/20080622113332/http://randomoracle.com/freecell/
17master_sites            macports
18use_bzip2               yes
19
20checksums               md5 05c41aa87c3a6c390f83c12db7c4ff3d \
21                        sha1 2e609fe0548f44a316f77f15db39581aad7a587f \
22                        rmd160 0dbb3cbb23730654244091f4683c51a590a373ab
23
24post-patch {
25    copy ${filespath}/Info-Freecell.plist ${worksrcpath}
26    move ${worksrcpath}/Freecell.pbproj ${worksrcpath}/Freecell.xcodeproj
27    copy -force ${filespath}/project.pbxproj ${worksrcpath}/Freecell.xcodeproj/project.pbxproj
28}
29
30variant universal {
31    post-patch {
32        reinplace -E "/OTHER_CFLAGS/s|\"\"|\"${configure.universal_cflags}\"|" \
33            ${worksrcpath}/Freecell.pbproj/project.pbxproj
34        reinplace -E "/OTHER_LDFLAGS/s|\"\"|\"${configure.universal_ldflags}\"|" \
35            ${worksrcpath}/Freecell.pbproj/project.pbxproj
36    }
37}
38
39post-destroot {
40    fs-traverse dir ${worksrcpath}/build {
41        if {[file isdirectory ${dir}]} {
42            file attributes ${dir} -permissions u+w
43        }
44    }
45    xinstall -d ${destroot}${applications_dir}
46    copy ${worksrcpath}/build/UninstalledProducts/Freecell.app \
47        ${destroot}${applications_dir}
48}
49
50livecheck.type          regex
51livecheck.regex         "${name} (\\d+(?:\\.\\d+)*)"
Note: See TracBrowser for help on using the repository browser.