source: trunk/dports/devel/ccache-devel/Portfile @ 136426

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

ccache, ccache-devel: update to 3.2.2

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.8 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 136426 2015-05-16 19:21:03Z ryandesign@macports.org $
3
4PortSystem          1.0
5PortGroup           github 1.0
6
7github.setup        jrosdahl ccache 3.2.2 v
8name                ccache-devel
9epoch               1
10categories          devel
11platforms           darwin freebsd
12license             GPL-3+
13
14maintainers         landonf ryandesign openmaintainer
15
16description         object-file caching compiler wrapper
17
18long_description \
19    ccache is a compiler cache.  It acts as a caching pre-processor to C/C++ \
20    compilers, using the -E compiler switch and a hash to detect when a \
21    compilation can be satisfied from cache.  This often results in a 5 to 10 \
22    times speedup in common compilations.
23
24homepage            http://ccache.samba.org/
25
26checksums           rmd160  35b2f9464f51a16fd2e0eb6843838653a504aa82 \
27                    sha256  865adc726c1b525b10647bd41055a288e2c81ca968fc0e25d36b97ee5ec2eb22
28
29depends_build       port:asciidoc \
30                    port:autoconf \
31                    port:automake \
32                    port:libtool \
33                    port:libxslt
34
35depends_lib         port:zlib
36
37patchfiles          patch-dev.mk.in.diff
38
39post-patch {
40    reinplace "s|@PREFIX@|${prefix}|g" ${worksrcpath}/dev.mk.in
41}
42
43use_autoconf        yes
44autoconf.cmd        ./autogen.sh
45
46build.target-append ccache.1
47
48set symlinks_dir    ${prefix}/libexec/ccache
49
50post-destroot {
51    file mkdir ${destroot}${symlinks_dir}
52
53    foreach {bin} {
54        cc
55        gcc gcc2    gcc3    gcc-3.3 gcc-4.0 gcc-4.2
56        c++ c++3    c++-3.3 c++-4.0 c++-4.2
57        g++ g++2    g++3    g++-3.3 g++-4.0 g++-4.2
58    } {
59        ln -sf ${prefix}/bin/ccache ${destroot}${symlinks_dir}/${bin}
60    }
61}
62
63conflicts           ccache
64
65notes "The ccache symlinks are installed in ${symlinks_dir}"
Note: See TracBrowser for help on using the repository browser.