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 }