diff options
-rw-r--r-- | devel/ccache/Makefile | 2 | ||||
-rw-r--r-- | devel/ccache/files/ccache-howto-freebsd.txt.in | 10 |
2 files changed, 5 insertions, 7 deletions
diff --git a/devel/ccache/Makefile b/devel/ccache/Makefile index e71b6a14bef7..ea177374f9b9 100644 --- a/devel/ccache/Makefile +++ b/devel/ccache/Makefile @@ -7,7 +7,7 @@ PORTNAME= ccache PORTVERSION= 3.1.1 -PORTREVISION= 1 +PORTREVISION= 2 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 74c44f6e6238..5d898333d471 100644 --- a/devel/ccache/files/ccache-howto-freebsd.txt.in +++ b/devel/ccache/files/ccache-howto-freebsd.txt.in @@ -4,12 +4,10 @@ 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++ +.if (!empty(.CURDIR:M/usr/src*) || !empty(.CURDIR:M/usr/obj*)) +.if !defined(NOCCACHE) +CC:=${CC:C,^cc,%%PREFIX%%/%%CCLINKDIR%%/world-cc,1} +CXX:=${CXX:C,^c\+\+,%%PREFIX%%/%%CCLINKDIR%%/world-c++,1} .endif .endif |