boost-1.70: Fix cmake reported static file location

This commit is contained in:
Alexander von Gluck IV
2021-02-04 12:30:33 -06:00
parent 1c8f8af8b2
commit cd5e8fd289

View File

@@ -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
}