diff options
author | bapt <bapt@FreeBSD.org> | 2013-09-04 00:28:17 +0800 |
---|---|---|
committer | bapt <bapt@FreeBSD.org> | 2013-09-04 00:28:17 +0800 |
commit | 78c2959013c145a60d11daece7c46ab5fd841289 (patch) | |
tree | 3d0ffd9f758ad98cd356fc0aa12425fd5eb0d9fc | |
parent | 96856897897a51cd70011d6dc16b87b79763fbaa (diff) | |
download | freebsd-ports-gnome-78c2959013c145a60d11daece7c46ab5fd841289.tar.gz freebsd-ports-gnome-78c2959013c145a60d11daece7c46ab5fd841289.tar.zst freebsd-ports-gnome-78c2959013c145a60d11daece7c46ab5fd841289.zip |
Allow to build with clang and libc++
-rw-r--r-- | textproc/clucene/Makefile | 2 | ||||
-rw-r--r-- | textproc/clucene/files/patch-libc++ | 12 |
2 files changed, 13 insertions, 1 deletions
diff --git a/textproc/clucene/Makefile b/textproc/clucene/Makefile index d0963db7fadd..af43b0474b19 100644 --- a/textproc/clucene/Makefile +++ b/textproc/clucene/Makefile @@ -20,7 +20,7 @@ USES= cmake iconv USE_LDCONFIG= yes CMAKE_ARGS= -DBUILD_CONTRIBS_LIB=ON -CXXFLAGS+= -D__LONG_LONG_SUPPORTED +CXXFLAGS+= -D__LONG_LONG_SUPPORTED -D_WCHAR_H_CPLUSPLUS_98_CONFIRMANCE_ post-patch: @${REINPLACE_CMD} -e 's|%%DATADIR%%|${DATADIR_REL}|' \ diff --git a/textproc/clucene/files/patch-libc++ b/textproc/clucene/files/patch-libc++ new file mode 100644 index 000000000000..9ed4ac44f033 --- /dev/null +++ b/textproc/clucene/files/patch-libc++ @@ -0,0 +1,12 @@ +--- src/shared/CLucene/LuceneThreads.h.orig 2011-03-17 01:21:07.000000000 +0100 ++++ src/shared/CLucene/LuceneThreads.h 2013-09-03 18:25:01.380067076 +0200 +@@ -7,6 +7,9 @@ + #ifndef _LuceneThreads_h + #define _LuceneThreads_h + ++#if defined(_CL_HAVE_PTHREAD) ++#include <pthread.h> ++#endif + + CL_NS_DEF(util) + class CLuceneThreadIdCompare; |