source: trunk/dports/archivers/hffzip/Portfile @ 57375

Last change on this file since 57375 was 57375, checked in by ryandesign@…, 10 years ago

Change deprecated livecheck.check to livecheck.type
See http://lists.macosforge.org/pipermail/macports-dev/2009-August/009699.html

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.7 KB
Line 
1# $Id: Portfile 57375 2009-09-10 08:16:41Z ryandesign@macports.org $
2
3PortSystem      1.0
4
5name            hffzip
6version         1.01
7categories      archivers
8platforms       darwin
9maintainers     nomaintainer
10description     HFFzip is a file compressor based upon Huffman coding.
11
12long_description \
13    The Huffman algorithm uses a binary tree, and has complexity \
14    O(N*N) for compression and O(NlogN) for decompression. Although \
15    this file compressor is not so good as other compression programs \
16    (like gzip), HFFzip is right for embedded systems, because of its \
17    little size and the simple algorithm used.
18
19homepage        http://retis.sssup.it/~scordino/projects/hffzip.html
20master_sites    http://retis.sssup.it/~scordino/projects/
21distname        ${name}${version}
22
23checksums       md5 d81cdfb92e03cfdb109c2728f8ba8594 \
24                sha1 f22e7a39b5dbe9888d6f00994a5ee42cbca66d1d \
25                rmd160 cc73025f112b9c8f4a4d2a1eae9e5da524d63939
26
27worksrcdir      ${name}
28
29patchfiles      patch-Makefile.diff
30post-patch {
31    reinplace "s|@CFLAGS@|${CFLAGS}|g" ${worksrcpath}/Makefile
32    reinplace "s|@LDFLAGS@|${LDFLAGS}|g" ${worksrcpath}/Makefile
33}
34
35use_configure   no
36
37set CFLAGS      ${configure.cflags}
38set LDFLAGS     ${configure.ldflags}
39
40build.target    ${name}
41build.env       CC=${configure.cc}
42
43destroot {
44    xinstall ${worksrcpath}/hffzip ${destroot}${prefix}/bin
45
46    set docdir ${prefix}/share/doc/${name}-${version}
47    xinstall -d ${destroot}${docdir}
48    xinstall -m 0644 -W ${worksrcpath} copying copyright ${destroot}${docdir}
49}
50
51variant universal {
52    set CFLAGS  "${CFLAGS} ${configure.universal_cflags}"
53    set LDFLAGS "${LDFLAGS} ${configure.universal_ldflags}"
54}
55
56livecheck.type  regex
57livecheck.url   ${homepage}
58livecheck.regex "HFFzip (\\d+(?:\\.\\d+)*)"
59
Note: See TracBrowser for help on using the repository browser.