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.
This commit is contained in:
parent
d19eefb899
commit
f02555230f
|
@ -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() {
|
||||
|
|
Loading…
Reference in New Issue