From cd5e8fd289ef3edcd74b59cf6842624e2a6b0e63 Mon Sep 17 00:00:00 2001 From: Alexander von Gluck IV Date: Thu, 4 Feb 2021 12:30:33 -0600 Subject: [PATCH] boost-1.70: Fix cmake reported static file location --- dev-libs/boost/boost170-1.70.0.recipe | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/dev-libs/boost/boost170-1.70.0.recipe b/dev-libs/boost/boost170-1.70.0.recipe index 886c9a528..a1bed2bc6 100644 --- a/dev-libs/boost/boost170-1.70.0.recipe +++ b/dev-libs/boost/boost170-1.70.0.recipe @@ -6,7 +6,7 @@ expressions, and unit testing. It contains over eighty individual libraries." HOMEPAGE="https://www.boost.org/" SOURCE_URI="https://dl.bintray.com/boostorg/release/$portVersion/source/boost_${portVersion//./_}.tar.bz2" CHECKSUM_SHA256="430ae8354789de4fd19ee52f3b1f739e1fba576f0aded0897c3c2bc00fb38778" -REVISION="2" +REVISION="3" LICENSE="Boost v1.0" COPYRIGHT="1998-2018 Beman Dawes, David Abrahams, Rene Rivera, et al." SOURCE_DIR="boost_${portVersion//./_}" @@ -122,6 +122,7 @@ BUILD_REQUIRES=" BUILD_PREREQUIRES=" cmd:gcc$secondaryArchSuffix cmd:ld$secondaryArchSuffix + cmd:find cmd:sed cmd:which " @@ -198,6 +199,13 @@ INSTALL() prepareInstalledDevelLibs `echo "$devel_libs" | sed -n \ -e "s/devel:\(.*\)$secondaryArchSuffix =.*/\1/p"` + # Correct boost cmake static files + # https://github.com/boostorg/boost_install/issues/49 + for i in $(find $libDir/cmake -name "libboost_*-variant-static.cmake"); do + echo "Replacing LIBDIR in $i"; + sed -i "s%\${_BOOST_LIBDIR}%$prefix/$relativeDevelopLibDir%g" $i; + done; + packageEntries devel $developDir }