source: trunk/dports/archivers/hffzip/Portfile

Last change on this file was 85387, checked in by blb@…, 6 years ago

archivers/hffzip: license

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