diff --git a/srcpkgs/libcmis/template b/srcpkgs/libcmis/template index 8f8e80b90b4..30bde594840 100644 --- a/srcpkgs/libcmis/template +++ b/srcpkgs/libcmis/template @@ -1,7 +1,7 @@ # Template file for 'libcmis' pkgname=libcmis version=0.5.0 -revision=4 +revision=5 build_style=gnu-configure hostmakedepends="pkg-config libtool automake" makedepends="libcurl-devel libxml2-devel libcppunit-devel boost-devel" @@ -13,14 +13,14 @@ distfiles="${SOURCEFORGE_SITE}/$pkgname/$pkgname-${version}.tar.gz" checksum=a87e02913dee3ee659db5abf6d7dafcfcd85dd4b24bf4389d8d4afe8c8dcf9b6 configure_args="--without-man" -do_configure() { +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 - LIBS="-L${XBPS_CROSS_BASE}/usr/lib -lboost_system \ - -lboost_date_time -lboost_program_options" \ - ./configure ${configure_args} } libcmis-devel_package() {