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

Last change on this file was 154437, checked in by ryandesign@…, 11 months ago

ccache-devel: Update to 3.3.3

  • 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 154437 2016-10-29 14:37:50Z ryandesign@macports.org $
3
4PortSystem          1.0
5PortGroup           github 1.0
6
7github.setup        ccache ccache 3.3.3 v
8name                ccache-devel
9epoch               1
10categories          devel
11platforms           darwin freebsd
12license             GPL-3+
13
14maintainers         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            https://ccache.samba.org/
25
26checksums           rmd160  de571304f866dfc6045d3a936b870adde023e61d \
27                    sha256  09c07ebd5326462899477855f743896e3f48887ba0797370e7591c4719f4228d
28
29# use_autoconf yes and setting autoconf.cmd to a non-default value will modify
30# depends_build, removing autoconf/automake/libtool. Avoid this by doing it
31# before setting depends_build.
32use_autoconf        yes
33autoconf.cmd        ./autogen.sh
34
35depends_build       port:asciidoc \
36                    port:autoconf \
37                    port:automake \
38                    port:docbook-xsl \
39                    port:libtool \
40                    port:libxslt
41
42depends_lib         port:zlib
43
44patchfiles          patch-dev.mk.in.diff
45
46post-patch {
47    reinplace "s|@PREFIX@|${prefix}|g" ${worksrcpath}/dev.mk.in
48}
49
50
51build.target-append ccache.1
52
53set symlinks_dir    ${prefix}/libexec/ccache
54
55post-destroot {
56    file mkdir ${destroot}${symlinks_dir}
57
58    foreach {bin} {
59        cc
60        gcc gcc2    gcc3    gcc-3.3 gcc-4.0 gcc-4.2
61        c++ c++3    c++-3.3 c++-4.0 c++-4.2
62        g++ g++2    g++3    g++-3.3 g++-4.0 g++-4.2
63    } {
64        ln -sf ${prefix}/bin/ccache ${destroot}${symlinks_dir}/${bin}
65    }
66}
67
68conflicts           ccache
69
70notes "The ccache symlinks are installed in ${symlinks_dir}"
Note: See TracBrowser for help on using the repository browser.