From 4bd81d3e5d1ad7bffc4e5a4dd4d595e82872004f Mon Sep 17 00:00:00 2001 From: Tilman Keskinoz Date: Tue, 26 May 2015 16:29:24 +0000 Subject: Attempt to work around pch related buildfailures on package cluster. Disable precompiled headers if compiler is gcc --- textproc/luceneplusplus/Makefile | 6 +++++- textproc/luceneplusplus/files/extra-patch-CMakeLists.txt | 11 +++++++++++ 2 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 textproc/luceneplusplus/files/extra-patch-CMakeLists.txt (limited to 'textproc/luceneplusplus') diff --git a/textproc/luceneplusplus/Makefile b/textproc/luceneplusplus/Makefile index 14638ff0c38f..d9c780c1fb1c 100644 --- a/textproc/luceneplusplus/Makefile +++ b/textproc/luceneplusplus/Makefile @@ -16,11 +16,15 @@ LIB_DEPENDS= libboost_system.so:${PORTSDIR}/devel/boost-libs USE_GITHUB= yes GH_ACCOUNT= luceneplusplus GH_PROJECT= LucenePlusPlus -USES= cmake:outsource +USES= cmake:outsource compiler USE_LDCONFIG= yes .include +.if ${COMPILER_TYPE} == gcc +EXTRA_PATCHES= ${FILESDIR}/extra-patch-CMakeLists.txt +.endif + post-install: cd ${WRKSRC}/include &&${INSTALL_DATA} *.h \ ${STAGEDIR}${PREFIX}/include/lucene++/ diff --git a/textproc/luceneplusplus/files/extra-patch-CMakeLists.txt b/textproc/luceneplusplus/files/extra-patch-CMakeLists.txt new file mode 100644 index 000000000000..c9d24dd44068 --- /dev/null +++ b/textproc/luceneplusplus/files/extra-patch-CMakeLists.txt @@ -0,0 +1,11 @@ +--- CMakeLists.txt.orig 2015-01-30 17:14:22.000000000 +0100 ++++ CMakeLists.txt 2015-05-26 18:05:53.000000000 +0200 +@@ -20,6 +20,8 @@ + #################################### + include(cotire) + ++set_property(GLOBAL PROPERTY COTIRE_ENABLE_PRECOMPILED_HEADER FALSE) ++ + # if setup using the Toolchain-llvm.cmake file, then use llvm... + if(ENABLE_LLVM) + include(Toolchain-llvm) -- cgit v1.2.3