void-packages/srcpkgs/libcmis/template

45 lines
1.2 KiB
Bash

# Template file for 'libcmis'
pkgname=libcmis
version=0.5.0
revision=7
build_style=gnu-configure
hostmakedepends="pkg-config libtool automake"
makedepends="libcurl-devel libxml2-devel libcppunit-devel boost-devel"
short_desc="C++ client library for the CMIS interface"
maintainer="Enno Boland <gottox@voidlinux.eu>"
license="GPL,LGPL,MPL"
homepage="http://sourceforge.net/projects/libcmis/"
distfiles="${SOURCEFORGE_SITE}/$pkgname/$pkgname-${version}.tar.gz"
checksum=a87e02913dee3ee659db5abf6d7dafcfcd85dd4b24bf4389d8d4afe8c8dcf9b6
configure_args="--without-man --disable-werror"
CXXFLAGS="-Wno-deprecated"
pre_configure() {
# Use newer boost.m4 from https://github.com/tsuna/boost.m4
# which fixes the build with gcc6
cp -v ${FILESDIR}/boost.m4 m4
# Insert the new command BOOST_REQUIRE to define boost.m4 functions
sed -i configure.ac \
-e '/m4_pattern_allow(\[\^BOOST_\])/a BOOST_REQUIRE'
autoreconf -fi
}
libcmis-devel_package() {
depends="libcmis>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove "usr/lib/*.a"
vmove "usr/lib/*.so"
}
}
libcmis-tools_package() {
short_desc+=" - tools"
pkg_install() {
vmove usr/bin
}
}