Ticket #27956: Portfile

File Portfile, 1.5 KB (added by stevecheckoway (Stephen Checkoway), 13 years ago)
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 74264 2010-12-09 15:42:06Z stromnov@macports.org $
3
4PortSystem          1.0
5
6name                ccache
7version             3.1.4
8categories          devel
9platforms           darwin freebsd
10
11maintainers         landonf openmaintainer
12
13description         object-file caching compiler wrapper
14
15long_description \
16    ccache is a compiler cache.  It acts as a caching pre-processor to C/C++ \
17    compilers, using the -E compiler switch and a hash to detect when a \
18    compilation can be satisfied from cache.  This often results in a 5 to 10 \
19    times speedup in common compilations.
20
21homepage            http://ccache.samba.org/
22master_sites        http://samba.org/ftp/ccache/
23checksums           md5     d43a8fbe83767978098ba7f8ee25d3d1 \
24                    sha1    caf5b3368419c36b3090b00ad2e03cd3f52f0df7 \
25                    rmd160  b2988fb7316419de9326513cc7c64100132bb6bc
26
27
28configure.args      --mandir=${prefix}/share/man
29
30set symlinks_dir    ${prefix}/libexec/ccache
31
32post-destroot {
33    file mkdir ${destroot}${symlinks_dir}
34
35    foreach {bin} {
36        cc
37        gcc gcc2    gcc3    gcc-3.3 gcc-4.0 gcc-4.2
38        c++ c++3    c++-3.3 c++-4.0 c++-4.2
39        g++ g++2    g++3    g++-3.3 g++-4.0 g++-4.2
40    } {
41        ln -sf ${prefix}/bin/ccache ${destroot}${symlinks_dir}/${bin}
42    }
43}
44
45notes "The ccache symlinks are installed in ${symlinks_dir}"