derle.sh 1018 B

12345678910111213141516171819202122232425
  1. cd "${SRC}"/${isim}-core-${surum}
  2. # add missing contrib-libs needed by LibO 3.6, patch by FC
  3. patch -Np1 -i "${SRC}"/clucene-core-$surum-install_contribs_lib.patch
  4. # pkgconfig file is missing clucene-shared (upstream ID: 3461512), patch by FC
  5. patch -Np1 -i "${SRC}"/clucene-core-$surum-pkgconfig.patch
  6. # one upstream postrelease commit for proper zlib detection
  7. patch -Np1 -i "${SRC}"/fix_zlib_detections.diff
  8. # LibreOffice patches http://cgit.freedesktop.org/libreoffice/core/tree/clucene/patches
  9. patch -Np0 -i "${SRC}"/clucene-warnings.patch
  10. patch -Np0 -i "${SRC}"/clucene-gcc-atomics.patch
  11. patch -Np0 -i "${SRC}"/clucene-debug.patch
  12. patch -Np0 -i "${SRC}"/clucene-narrowing-conversions.patch
  13. patch -Np0 -i "${SRC}"/clucene-multimap-put.patch
  14. mkdir build
  15. pushd build
  16. cmake .. \
  17. -DCMAKE_INSTALL_PREFIX=/usr \
  18. -DENABLE_ASCII_MODE=OFF -DENABLE_PACKAGING=OFF \
  19. -DBUILD_CONTRIBS_LIB:BOOL=ON -DLIB_DESTINATION:PATH=/usr/lib \
  20. -DLUCENE_SYS_INCLUDES:PATH=/usr/include -DDISABLE_MULTITHREADING=OFF
  21. popd
  22. make -C build