2018-01-12 20:57:02 +01:00
|
|
|
|
# Tanım: Java Lucene kütüphanesinin c++ sürümü
|
|
|
|
|
# URL: https://github.com/luceneplusplus/LucenePlusPlus
|
|
|
|
|
# Paketçi: milisarge
|
2018-01-12 21:07:15 +01:00
|
|
|
|
# Gerekler: boost cmake subversion
|
2018-01-12 20:57:02 +01:00
|
|
|
|
# Grup: kütüphane
|
|
|
|
|
|
|
|
|
|
isim=lucenepp
|
|
|
|
|
surum=3.0.7
|
|
|
|
|
devir=1
|
|
|
|
|
kaynak=(https://github.com/luceneplusplus/LucenePlusPlus/archive/master.tar.gz::$isim-$surum.tar.gz)
|
|
|
|
|
|
|
|
|
|
derle() {
|
|
|
|
|
mkdir build
|
|
|
|
|
sed -i \
|
|
|
|
|
-e 's#SET(LUCENE++_VERSION_REVISION.*#SET(LUCENE++_VERSION_REVISION "5")#' \
|
|
|
|
|
-e 's#SET(LUCENE++_VERSION_PATCH.*#SET(LUCENE++_VERSION_PATCH "0")#' \
|
|
|
|
|
"$SRC"/LucenePlusPlus-master/CMakeLists.txt
|
|
|
|
|
cd build
|
|
|
|
|
cmake ../LucenePlusPlus-master \
|
|
|
|
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
|
|
|
|
-DLIB_DESTINATION=/usr/lib \
|
|
|
|
|
-DBoost_LIBRARY_DIR=/usr/lib \
|
|
|
|
|
-DENABLE_CUSTOM_ALLOCATOR='FALSE' \
|
|
|
|
|
-DCMAKE_CXX_FLAGS='-DBOOST_VARIANT_USE_RELAXED_GET_BY_DEFAULT'
|
|
|
|
|
# RELAXED for boost 1.58 breakage, remove when lucene++ updates
|
|
|
|
|
make
|
|
|
|
|
make DESTDIR="$PKG" install
|
|
|
|
|
}
|