source: trunk/dports/sysutils/afsctool/Portfile

Last change on this file was 143526, checked in by raimue@…, 22 months ago

sysutils/afsctool:
Update master_sites to a working URL

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.8 KB
Line 
1# $Id: Portfile 143526 2015-12-14 13:34:37Z ryandesign@macports.org $
2
3PortSystem      1.0
4
5name            afsctool
6version         1.6.4
7set distversion 34
8revision        1
9categories      sysutils
10platforms       macosx
11license         GPL-3
12maintainers     raimue openmaintainer
13description     Utility for manipulating HFS+ compressed files
14long_description \
15    AFSC (Apple File System Compression) tool is an utility that can be used to \
16    apply HFS+ compression to file(s), decompress HFS+ compressed file(s), or \
17    get information about existing HFS+ compressed file(s). Mac OS 10.6 or \
18    later is required.
19
20homepage        https://brkirch.wordpress.com/afsctool/
21master_sites    https://docs.google.com/uc?export=download&id=0BwQlnXqL939ZQjBQNEhRQUo0aUk&dummy=
22distname        ${name}_${distversion}
23use_zip yes
24
25checksums       md5     d0f2b79676c0f3d8c22e95fcf859a05f \
26                sha1    216d7ff54bad947781d9b49f9754c5d3c07349be \
27                rmd160  d692dc656deb32da090f4f40b4e94a62d808332d
28
29depends_lib     port:zlib
30
31pre-fetch {
32    if {${os.platform} eq "darwin" && ${os.major} < 10} {
33        ui_error "${name} ${version} is only compatible with Mac OS X 10.6 or later"
34        return -code error "incompatible Mac OS X version"
35    }
36}
37
38use_configure   no
39universal_variant yes
40
41build {
42    if {![variant_isset universal]} {
43        set archflags ${configure.cc_archflags}
44    } else {
45        set archflags ${configure.universal_cflags}
46    }
47    system "cd ${worksrcpath} && ${configure.cc} ${configure.cflags} ${configure.ldflags} ${archflags} -lz -framework CoreServices -o afsctool afsctool.c"
48}
49
50destroot {
51    xinstall -W ${worksrcpath} -m 755 ${name} ${destroot}${prefix}/bin
52    xinstall -d -m 755 ${destroot}${prefix}/share/doc/${name}
53    xinstall -W ${worksrcpath} -m 644 License.txt ${destroot}${prefix}/share/doc/${name}
54}
55
56livecheck.type none
Note: See TracBrowser for help on using the repository browser.