source: trunk/dports/archivers/bzip2/Portfile

Last change on this file was 138460, checked in by ryandesign@…, 2 years ago

bzip2: use modern syntax for -replace

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.0 KB
Line 
1# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
2# $Id: Portfile 138460 2015-07-09 13:37:39Z ryandesign@macports.org $
3
4PortSystem              1.0
5
6name                    bzip2
7version                 1.0.6
8platforms               darwin freebsd linux sunos
9categories              archivers sysutils
10maintainers             ryandesign openmaintainer
11license                 BSD
12
13description             compression library and tools
14
15long_description        ${name} is a freely available, patent free, \
16                        high-quality data compressor.
17
18homepage                http://www.bzip.org/
19master_sites            ${homepage}${version}
20
21checksums               md5     00b516f4704d4a7cb50a1d97e6e8e15b \
22                        sha1    3f89f861209ce81a6bab1fd1998c0ef311712002 \
23                        rmd160  cc31bbae95e8eec259cef7627eae0c667654a339
24
25patchfiles              patch-Makefile-man.diff \
26                        patch-Makefile-links.diff \
27                        patch-Makefile-so.diff
28
29use_configure           no
30
31use_parallel_build      yes
32
33variant universal {}
34
35build.args              CC="${configure.cc} [get_canonical_archflags cc]" \
36                        PREFIX=${prefix}
37
38destroot.destdir        PREFIX=${destroot}${prefix}
39
40platform darwin {
41    patchfiles-replace  patch-Makefile-so.diff patch-Makefile-dylib.diff
42
43    post-patch {
44        reinplace "s|__MacPorts_Version__|${version}|g" ${worksrcpath}/Makefile
45        reinplace "s|__MacPorts_Compatibility_Version__|[join [lrange [split ${version} .] 0 1] .]|g" ${worksrcpath}/Makefile
46    }
47
48    post-destroot {
49        ln -s libbz2.${version}.dylib ${destroot}${prefix}/lib/libbz2.[join [lrange [split ${version} .] 0 1] .].dylib
50        ln -s libbz2.${version}.dylib ${destroot}${prefix}/lib/libbz2.[join [lrange [split ${version} .] 0 0] .].dylib
51        ln -s libbz2.${version}.dylib ${destroot}${prefix}/lib/libbz2.dylib
52    }
53}
54
55livecheck.type          regex
56livecheck.regex         {<b>([0-9.]+)</b>}
Note: See TracBrowser for help on using the repository browser.