void-packages/srcpkgs/libcmis/template
Juergen Buchmueller f02555230f libcmis: use boost.m4 as intended
Call BOOST_REQUIRE before the other BOOST_.. commands, as
described on https://github.com/tsuna/boost.m4.
This generates required CFLAGS, LDFLAGS, LIBS etc.
2016-09-14 13:56:57 +02:00

42 lines
1.2 KiB
Bash

# Template file for 'libcmis'
pkgname=libcmis
version=0.5.0
revision=5
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"
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
}
}