Skip to content

Commit 503fb0c

Browse files
committed
Provide ccache 3.3.3 to help speed up code builds
1 parent 1a1a9d5 commit 503fb0c

File tree

3 files changed

+113
-0
lines changed

3 files changed

+113
-0
lines changed

build/ccache/build.sh

+66
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
#!/usr/bin/bash
2+
#
3+
# CDDL HEADER START
4+
#
5+
# The contents of this file are subject to the terms of the
6+
# Common Development and Distribution License, Version 1.0 only
7+
# (the "License"). You may not use this file except in compliance
8+
# with the License.
9+
#
10+
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
11+
# or http://www.opensolaris.org/os/licensing.
12+
# See the License for the specific language governing permissions
13+
# and limitations under the License.
14+
#
15+
# When distributing Covered Code, include this CDDL HEADER in each
16+
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
17+
# If applicable, add the following below this CDDL HEADER, with the
18+
# fields enclosed by brackets "[]" replaced with your own identifying
19+
# information: Portions Copyright [yyyy] [name of copyright owner]
20+
#
21+
# CDDL HEADER END
22+
#
23+
#
24+
# Copyright 2011-2012 OmniTI Computer Consulting, Inc. All rights reserved.
25+
# Copyright 2016 Jim Klimov
26+
# Use is subject to license terms.
27+
#
28+
# Load support functions
29+
. ../../lib/functions.sh
30+
31+
PROG=ccache # App name
32+
VER=3.3.3 # App version
33+
PKG=developer/ccache # Package name (without prefix)
34+
SUMMARY="ccache - cacher of GCC-compiled files to avoid doing the same job twice"
35+
DESC="$SUMMARY ($VER)"
36+
37+
#NO_PARALLEL_MAKE=1
38+
#BUILDARCH=32
39+
40+
BUILD_DEPENDS_IPS="developer/build/autoconf text/gnu-grep"
41+
DEPENDS_IPS="system/library"
42+
43+
# We build backwards here on purpose so that 32bit binaries win (for install collisions).
44+
build() {
45+
if [[ $BUILDARCH == "64" || $BUILDARCH == "both" ]]; then
46+
build64
47+
fi
48+
if [[ $BUILDARCH == "32" || $BUILDARCH == "both" ]]; then
49+
build32
50+
fi
51+
}
52+
53+
CONFIGURE_OPTS="--sysconfdir=/etc"
54+
CFLAGS="-D_GNU_SOURCE -D__EXTENSIONS__ --std=c99"
55+
56+
init
57+
download_source $PROG $PROG $VER
58+
patch_source
59+
prep_build
60+
build
61+
make_isa_stub
62+
make_package
63+
clean_up
64+
65+
# Vim hints
66+
# vim:ts=4:sw=4:et:

build/ccache/local.mog

+46
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
#
2+
# CDDL HEADER START
3+
#
4+
# The contents of this file are subject to the terms of the
5+
# Common Development and Distribution License, Version 1.0 only
6+
# (the "License"). You may not use this file except in compliance
7+
# with the License.
8+
#
9+
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10+
# or http://www.opensolaris.org/os/licensing.
11+
# See the License for the specific language governing permissions
12+
# and limitations under the License.
13+
#
14+
# When distributing Covered Code, include this CDDL HEADER in each
15+
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16+
# If applicable, add the following below this CDDL HEADER, with the
17+
# fields enclosed by brackets "[]" replaced with your own identifying
18+
# information: Portions Copyright [yyyy] [name of copyright owner]
19+
#
20+
# CDDL HEADER END
21+
#
22+
#
23+
# Copyright 2011-2012 OmniTI Computer Consulting, Inc. All rights reserved.
24+
# Copyright 2016 Jim Klimov
25+
# Use is subject to license terms.
26+
#
27+
28+
<transform file path=usr/share/info/standards.info -> drop>
29+
license LICENSE.txt license=GPLv3,murmurhash,papowell/jhweiss,PostgreSQL,Python,zlib
30+
31+
# Softlinks to simplify builds - just prepend /usr/lib/ccache to PATH
32+
# NOTE: Since these are softlinks, a certain relative directory structure
33+
# is expected (like rooting at /usr) when the package is installed.
34+
# You can turn off ccache without changing runtime PATHs by exporting
35+
# CCACHE_DISABLE=1 before a build
36+
link target=../../bin/ccache path=usr/lib/ccache/gcc
37+
link target=../../bin/ccache path=usr/lib/ccache/g++
38+
link target=../../bin/ccache path=usr/lib/ccache/cc
39+
link target=../../bin/ccache path=usr/lib/ccache/c++
40+
link target=../../bin/ccache path=usr/lib/ccache/cpp
41+
42+
# A few links specifically to support gcc-4.4.4-il
43+
link target=../../bin/ccache path=usr/lib/ccache/i386-pc-solaris2.11-c++
44+
link target=../../bin/ccache path=usr/lib/ccache/i386-pc-solaris2.11-g++
45+
link target=../../bin/ccache path=usr/lib/ccache/i386-pc-solaris2.11-gcc
46+
link target=../../bin/ccache path=usr/lib/ccache/i386-pc-solaris2.11-gcc-4.4.4

build/jeos/omnios-userland.p5m

+1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ depend fmri=developer/build/[email protected],5.11-@PVER@ type=incorporate
1616
depend fmri=developer/build/[email protected],5.11-@PVER@ type=incorporate
1717
depend fmri=developer/build/[email protected],5.11-@PVER@ type=incorporate
1818
depend fmri=developer/build/[email protected],5.11-@PVER@ type=incorporate
19+
depend fmri=developer/[email protected],5.11-@PVER@ type=incorporate
1920
depend fmri=developer/dtrace/[email protected],5.11-@PVER@ type=incorporate
2021
depend fmri=developer/[email protected],5.11-@PVER@ type=incorporate
2122
depend fmri=developer/gcc44/[email protected],5.11-@PVER@ type=incorporate

0 commit comments

Comments
 (0)