source: trunk/dports/archivers/dzip/Portfile

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

archivers/dzip: license

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.6 KB
Line 
1# $Id: Portfile 85383 2011-10-13 06:33:51Z ryandesign@macports.org $
2
3PortSystem      1.0
4
5name            dzip
6version         2.9
7categories      archivers
8platforms       darwin
9maintainers     nomaintainer
10license         zlib
11description     file compression tool
12
13long_description \
14    Dzip is a program for file compression. Its advantage \
15    over more popular compression software is in the size of the \
16    program, easily fitting on a floppy disk. Dzip's original purpose \
17    was to compress demo recordings of the id software game Quake.
18
19homepage        http://speeddemosarchive.com/dzip/
20master_sites    ${homepage}
21distname        dz[strsed ${version} {/\.//}]src
22use_zip         yes
23
24checksums       md5 b02d69c7c6ee491380d77f26c6f5a6e0 \
25                sha1 64e7b0d07c55aaa22bbcf04066135b5a9968e5ee \
26                rmd160 4719785c312a577eb7b1aacad43a24b6fd8a4ed2
27
28extract.mkdir   yes
29post-extract {
30    # Convert DOS to UNIX line endings so we can patch
31    reinplace "s|\r||g" ${worksrcpath}/Makefile.linux
32}
33
34patchfiles      patch-Makefile.linux.diff
35
36use_configure   no
37
38build.target    ${name}
39build.args      -f Makefile.linux
40build.env       CC=${configure.cc}
41
42destroot {
43    xinstall ${worksrcpath}/dzip ${destroot}${prefix}/bin
44
45    set docdir ${prefix}/share/doc/${name}-${version}
46    xinstall -d ${destroot}${docdir}
47    xinstall -m 0644 ${worksrcpath}/Readme ${destroot}${docdir}
48}
49
50variant universal {
51    build.args-append "LDFLAGS=\"${configure.universal_ldflags}\""
52
53    post-patch {
54        reinplace -E "s|^(CFLAGS.*)\r\$|\\1 ${configure.universal_cflags}|" ${worksrcpath}/Makefile.linux
55    }
56}
57
58livecheck.type  regex
59livecheck.url   ${homepage}download.html
60livecheck.regex v(\\d+(?:\\.\\d+)*)
61
Note: See TracBrowser for help on using the repository browser.