wok-next view lucene++/receipt @ rev 20252

Up linux-cloop (4.12)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Nov 07 13:45:24 2017 +0100 (2017-11-07)
parents 2f3aba6cc31e
children a244e109372e
line source
1 # SliTaz package receipt v2.
3 PACKAGE="lucene++"
4 VERSION="3.0.7"
5 CATEGORY="utilities"
6 SHORT_DESC="C++ port of the Java Lucene library"
7 MAINTAINER="al.bobylev@gmail.com"
8 LICENSE="Apache"
9 WEB_SITE="https://github.com/luceneplusplus/LucenePlusPlus"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="$WEB_SITE/archive/rel_$VERSION.tar.gz"
14 BUILD_DEPENDS="cmake libboost-dev libboost-date-time libboost-filesystem \
15 libboost-regex libboost-thread libboost-iostreams python"
16 SPLIT="lucene++-dev"
18 compile_rules() {
19 mkdir build; cd build
20 cmake \
21 -DCMAKE_INSTALL_PREFIX=/usr \
22 -DLIB_DESTINATION=/usr/lib \
23 -DBoost_LIBRARY_DIR=/usr/lib \
24 -DENABLE_CUSTOM_ALLOCATOR='FALSE' \
25 -DCMAKE_CXX_FLAGS='-DBOOST_VARIANT_USE_RELAXED_GET_BY_DEFAULT' \
26 .. &&
27 make &&
28 make install
29 }
31 genpkg_rules() {
32 case $PACKAGE in
33 lucene++)
34 copy @std
35 DEPENDS="libboost-date-time libboost-filesystem libboost-iostreams \
36 libboost-regex libboost-system libboost-thread libboost-chrono"
37 ;;
38 *-dev)
39 copy @dev
40 DEPENDS="libboost-dev libboost-date-time libboost-filesystem \
41 libboost-iostreams libboost-regex libboost-system libboost-thread \
42 libboost-chrono"
43 ;;
44 esac
45 }