OSX10.10Yosemiteでkdepimlibsのビルドこける

==> Installing kdepimlibs from adymo/homebrew-kde
==> Downloading http://download.kde.org/stable/4.14.0/src/kdepimlibs-4.14.0.tar.xz
Already downloaded: /Library/Caches/Homebrew/kdepimlibs-4.14.0.tar.xz
==> cmake .. -DCMAKE_INSTALL_PREFIX=/usr/local/kde4 -Wdev --trace --debug-output -DKDE_DEFAULT_HOME=Library/Preferences/KDE -DCMAKE_PREFIX_PATH=/usr/local/Cellar/gettext/0.19.3 -DDOCBOOKXML_CURRENTDTD_DIR=/usr/local/
==> make
Linking CXX shared library ../lib/libakonadi-kde.dylib
Linking CXX shared module ../../../lib/kabc_net.so
[ 58%] Built target kabc_net
[ 58%] Built target akonadi-kde
make: *** [all] Error 2

https://bugs.kde.org/show_bug.cgi?id=340425

/System/Library/Frameworks/LDAP.framework/Headers/

内のldap.h,lber.hの内容がカラになってる

kdepimlibs-4.14.0.tar.xz/cmake/modules/FindLdap.cmake

がldap.h,lber.hを/System/Library/Frameworks内からヘッダーを探すようになっている

LDAP_INCLUDE_DIRを指定することで、そこから探すようになる

正しくは/usr/include/の中のldap.h,lber.hを見て欲しいので

kdepimlibs-4.14.0.tar.xz/CMakeLists.txt


set(LDAP_INCLUDE_DIR "/usr/include/")

を追加したらビルド通った

Homebrewでadymo/homebrew-kdeをインストール中、strigiのインストールでエラーが出る

akkuma-no-MacBook-Pro:~ akkuma$ brew install strigi
==> Installing strigi from adymo/homebrew-kde
==> Downloading http://www.vandenoever.info/software/strigi/strigi-0.7.8.tar.bz2
Already downloaded: /Library/Caches/Homebrew/strigi-0.7.8.tar.bz2
==> Downloading https://trac.macports.org/raw-attachment/ticket/41152/patch-libs
######################################################################## 100.0%
==> Patching
patching file libstreamanalyzer/plugins/endplugins/ffmpegendanalyzer.cpp
==> cmake .. -DCMAKE_INSTALL_PREFIX=/usr/local/kde4 -Wdev –trace –debug-output
==> make
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [libstreamanalyzer/plugins/indexers/clucenengindexer/strigiindex_cluceneng.so] Error 1
make[1]: *** [libstreamanalyzer/plugins/indexers/clucenengindexer/CMakeFiles/cluceneng.dir/all] Error 2
make: *** [all] Error 2

READ THIS: https://github.com/Homebrew/homebrew/blob/master/share/doc/homebrew/Troubleshooting.md#troubleshooting
If reporting this issue please do so at (not Homebrew/homebrew):
https://github.com/adymo/homebrew-kde/issues

Issueが上がってた
https://github.com/adymo/homebrew-kde/issues/42

brew edit clucene

でFormulaを編集

patch do
  url "http://sourceforge.net/p/clucene/bugs/_discuss/thread/ec8f649d/1024/attachment/0001-Fix-.pc-file-by-adding-clucene-shared-library.patch"
  sha1 "f3cd7272df8e258ee5bd8183b3d0c0f87d02b34d"
end

を他patchがある周辺に追加

brew reinstall clucene --build-from-source
brew install strigi

で完了