aboutsummaryrefslogtreecommitdiffstats
path: root/editors
diff options
context:
space:
mode:
authorjkim <jkim@FreeBSD.org>2012-07-11 09:17:35 +0800
committerjkim <jkim@FreeBSD.org>2012-07-11 09:17:35 +0800
commit8722fc38bab760c5e2216a55bde0cfd3f1d28132 (patch)
tree385bf84470f43727634ca26b7b4fc4100edb07c6 /editors
parentfe2e47937e87751832f4fc8456ab82771e22d94d (diff)
downloadfreebsd-ports-gnome-8722fc38bab760c5e2216a55bde0cfd3f1d28132.tar.gz
freebsd-ports-gnome-8722fc38bab760c5e2216a55bde0cfd3f1d28132.tar.zst
freebsd-ports-gnome-8722fc38bab760c5e2216a55bde0cfd3f1d28132.zip
- Construct CPP and CXXCPP from the existing variables.
- Pass CXXCPP as an environment variable for the configure script as it is only useful there at the moment. Actually, ports infrastructure ignores it.
Diffstat (limited to 'editors')
-rw-r--r--editors/libreoffice/Makefile9
1 files changed, 5 insertions, 4 deletions
diff --git a/editors/libreoffice/Makefile b/editors/libreoffice/Makefile
index 57346e3e3d57..e40c0601adae 100644
--- a/editors/libreoffice/Makefile
+++ b/editors/libreoffice/Makefile
@@ -213,17 +213,18 @@ MANCOMPRESSED= yes
# XXX Clang PR13308 (http://llvm.org/bugs/show_bug.cgi?id=13308)
# Fixed in r159895 (http://llvm.org/viewvc/llvm-project?view=rev&revision=159895)
CC= /usr/bin/clang
-CXX= /usr/bin/clang++
-CXXCPP= /usr/bin/clang-cpp -x c++
CPP= /usr/bin/clang-cpp
+CXX= /usr/bin/clang++
+CXXCPP= ${CPP} -x c++
.else
BUILD_DEPENDS+= ${LOCALBASE}/bin/clang:${PORTSDIR}/lang/clang
USE_BINUTILS= yes
CC= ${LOCALBASE}/bin/clang
+CPP= ${CC} -E
CXX= ${LOCALBASE}/bin/clang++
-CXXCPP= ${LOCALBASE}/bin/clang++ -E
-CPP= ${LOCALBASE}/bin/clang -E
+CXXCPP= ${CXX} -E
.endif
+CONFIGURE_ENV+= CXXCPP="${CXXCPP}"
CONFIGURE_ARGS+= --with-system-cppunit
BUILD_DEPENDS+= ${LOCALBASE}/lib/libcppunit.so:${PORTSDIR}/devel/cppunit
#.endif