source: trunk/dports/archivers/pbzip2/Portfile @ 129406

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

pbzip2: update to 1.1.11 fixing intermittent crash on compression (https://bugs.launchpad.net/pbzip2/+bug/1399589); add debug variant

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.8 KB
Line 
1# $Id: Portfile 129406 2014-12-12 20:05:16Z ryandesign@macports.org $
2
3PortSystem        1.0
4
5name              pbzip2
6version             1.1.11
7set branch        [join [lrange [split ${version} .] 0 1] .]
8categories        archivers
9platforms         darwin
10maintainers       ryandesign openmaintainer
11license           Permissive
12installs_libs     no
13
14description       parallel bzip2
15long_description  PBZIP2 is a parallel implementation of the bzip2 \
16  block-sorting file compressor that uses pthreads and achieves \
17  near-linear speedup on SMP machines.
18
19homepage          http://compression.ca/pbzip2/
20master_sites      https://launchpad.net/pbzip2/${branch}/${version}/+download/
21
22depends_lib       port:bzip2
23
24checksums           rmd160  1ca41176a070697910fab02f76adde19422e0f2c \
25                    sha256  b4861389bd99c73d304a03b0dc0731a8a26905da8e94ca4cef873b96e1ab0e7f
26
27patchfiles        patch-Makefile.diff
28
29use_configure     no
30
31variant universal {}
32
33pre-build {
34    build.env-append \
35                    CXX="${configure.cxx}" \
36                  CXXFLAGS="${configure.cxxflags} [get_canonical_archflags cxx]" \
37                  LDFLAGS="${configure.ldflags} [get_canonical_archflags ld]"
38}
39
40destroot.destdir  PREFIX=${destroot}${prefix}
41
42post-destroot {
43  delete ${destroot}${prefix}/bin/pbunzip2
44  delete ${destroot}${prefix}/bin/pbzcat
45  ln -s pbzip2 ${destroot}${prefix}/bin/pbunzip2
46  ln -s pbzip2 ${destroot}${prefix}/bin/pbzcat
47
48  set docdir ${prefix}/share/doc/${subport}
49  xinstall -d ${destroot}${docdir}
50  xinstall -m 0644 -W ${worksrcpath} AUTHORS COPYING ChangeLog README \
51    ${destroot}${docdir}
52}
53
54variant debug description {Enable debugging code} {
55    configure.cxxflags-append -DPBZIP_DEBUG
56}
57
58livecheck.type    regex
59livecheck.url     https://launchpad.net/pbzip2
60livecheck.regex   {pbzip2-(\d+(?:\.\d+)*).tar.gz}
Note: See TracBrowser for help on using the repository browser.