void-packages/srcpkgs/clucene/template

40 lines
1.4 KiB
Bash
Raw Normal View History

# Template file for 'clucene'
pkgname=clucene
version=2.3.3.4
2015-08-16 04:40:07 +02:00
revision=5
wrksrc=${pkgname}-core-${version}
build_style=cmake
configure_args="-DENABLE_ASCII_MODE=OFF -DENABLE_PACKAGING=OFF
-DBUILD_CONTRIBS_LIB:BOOL=ON -DLIB_DESTINATION:PATH=/usr/lib
-DLUCENE_SYS_INCLUDES:PATH=/usr/include -DDISABLE_MULTITHREADING=OFF"
hostmakedepends="cmake pkg-config"
2014-02-18 16:11:26 +01:00
makedepends="zlib-devel boost-devel"
short_desc="Text search engine written in C++"
homepage="http://clucene.sourceforge.net/"
license="LGPL-2+/ASL-2.0"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-core-${version}.tar.gz"
checksum=ddfdc433dd8ad31b5c5819cc4404a8d2127472a3b720d3e744e8c51d79732eab
2015-08-16 04:40:07 +02:00
case "$XBPS_TARGET_MACHINE" in
*-musl) configure_args="-DICONV_SECOND_ARGUMENT_IS_CONST=0"
esac
if [ "$CROSS_BUILD" ]; then
configure_args+=" -D_CL_HAVE_PTHREAD_MUTEX_RECURSIVE_EXITCODE=0"
configure_args+=" -D_CL_HAVE_GCC_ATOMIC_FUNCTIONS_EXITCODE=0"
configure_args+=" -D_CL_HAVE_TRY_BLOCKS_EXITCODE=0"
configure_args+=" -D_CL_HAVE_NAMESPACES_EXITCODE=0"
configure_args+=" -D_CL_HAVE_NO_SNPRINTF_BUG_EXITCODE=0"
configure_args+=" -DLUCENE_STATIC_CONSTANT_SYNTAX_EXITCODE=0"
fi
clucene-devel_package() {
depends="libstdc++-devel ${sourcepkg}>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove "usr/lib/*.so"
vmove usr/lib/CLuceneConfig.cmake
vmove usr/lib/pkgconfig
}
}