aboutsummaryrefslogtreecommitdiff
path: root/devel/ccache
diff options
context:
space:
mode:
authorBryan Drewery <bdrewery@FreeBSD.org>2015-01-17 15:58:46 +0000
committerBryan Drewery <bdrewery@FreeBSD.org>2015-01-17 15:58:46 +0000
commit11ba86db558b2a1095300d908fe4622116b96744 (patch)
tree0880de13da670029e16b502d368c260c9507f662 /devel/ccache
parent341515d3272e6c4a2e1619b41b2f7b422e318a47 (diff)
downloadports-11ba86db558b2a1095300d908fe4622116b96744.tar.gz
ports-11ba86db558b2a1095300d908fe4622116b96744.zip
Notes
Diffstat (limited to 'devel/ccache')
-rw-r--r--devel/ccache/Makefile2
-rw-r--r--devel/ccache/files/patch-conf.c24
2 files changed, 25 insertions, 1 deletions
diff --git a/devel/ccache/Makefile b/devel/ccache/Makefile
index 3b04b204e3db..cf46b59294c7 100644
--- a/devel/ccache/Makefile
+++ b/devel/ccache/Makefile
@@ -3,7 +3,7 @@
PORTNAME= ccache
PORTVERSION= 3.2.1
-PORTREVISION= 0
+PORTREVISION= 1
CATEGORIES= devel
MASTER_SITES= http://www.samba.org/ftp/ccache/ \
LOCAL/bdrewery
diff --git a/devel/ccache/files/patch-conf.c b/devel/ccache/files/patch-conf.c
new file mode 100644
index 000000000000..5021fce33b76
--- /dev/null
+++ b/devel/ccache/files/patch-conf.c
@@ -0,0 +1,24 @@
+--- conf.c.orig 2015-01-16 16:26:23.872241677 -0600
++++ conf.c 2015-01-16 16:27:00.595237894 -0600
+@@ -15,6 +15,9 @@
+ * this program; if not, write to the Free Software Foundation, Inc., 51
+ * Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ */
++#if defined(__FreeBSD__)
++#include <sys/param.h>
++#endif
+
+ #include "conf.h"
+ #include "ccache.h"
+@@ -321,7 +324,11 @@ conf_create(void)
+ conf->read_only = false;
+ conf->read_only_direct = false;
+ conf->recache = false;
++#if __FreeBSD_version >= 1000024 || defined(CC_IS_CLANG)
++ conf->run_second_cpp = true;
++#else
+ conf->run_second_cpp = false;
++#endif
+ conf->sloppiness = 0;
+ conf->stats = true;
+ conf->temporary_dir = x_strdup("");