aboutsummaryrefslogtreecommitdiff
path: root/devel/ccache
diff options
context:
space:
mode:
authorEmanuel Haupt <ehaupt@FreeBSD.org>2010-11-17 00:10:24 +0000
committerEmanuel Haupt <ehaupt@FreeBSD.org>2010-11-17 00:10:24 +0000
commit975249e71916ac95b7f64983444e9fb8f2b98236 (patch)
tree84a392fe01a2c040ab03c2c1c3f29d47439fc971 /devel/ccache
parent1783398c209451ba79fa114465fd3c10ac9fc9e5 (diff)
downloadports-975249e71916ac95b7f64983444e9fb8f2b98236.tar.gz
ports-975249e71916ac95b7f64983444e9fb8f2b98236.zip
Notes
Diffstat (limited to 'devel/ccache')
-rw-r--r--devel/ccache/Makefile1
-rw-r--r--devel/ccache/files/ccache-howto-freebsd.txt.in4
2 files changed, 5 insertions, 0 deletions
diff --git a/devel/ccache/Makefile b/devel/ccache/Makefile
index b7295a217c24..e71b6a14bef7 100644
--- a/devel/ccache/Makefile
+++ b/devel/ccache/Makefile
@@ -7,6 +7,7 @@
PORTNAME= ccache
PORTVERSION= 3.1.1
+PORTREVISION= 1
CATEGORIES= devel
MASTER_SITES= http://samba.org/ftp/ccache/ CRITICAL
diff --git a/devel/ccache/files/ccache-howto-freebsd.txt.in b/devel/ccache/files/ccache-howto-freebsd.txt.in
index eef830d2e7fd..74c44f6e6238 100644
--- a/devel/ccache/files/ccache-howto-freebsd.txt.in
+++ b/devel/ccache/files/ccache-howto-freebsd.txt.in
@@ -5,9 +5,13 @@
To use ccache add the following to /etc/make.conf
.if (!empty(.CURDIR:M/usr/src*) || !empty(.CURDIR:M/usr/obj*)) && !defined(NOCCACHE)
+.if !defined(CC) || ${CC} == "cc"
CC=%%PREFIX%%/%%CCLINKDIR%%/world-cc
+.endif
+.if !defined(CXX) || ${CXX} == "c++"
CXX=%%PREFIX%%/%%CCLINKDIR%%/world-c++
.endif
+.endif
For Korn/Bourne shells Add the following to /etc/profile:
export PATH=%%PREFIX%%/%%CCLINKDIR%%:$PATH