Skip to content

Commit

Permalink
inkscape: Update Boost to 1.75
Browse files Browse the repository at this point in the history
  • Loading branch information
david committed Apr 20, 2022
1 parent 748cc73 commit ca8bf8f
Showing 1 changed file with 27 additions and 17 deletions.
44 changes: 27 additions & 17 deletions inkscape-1.1.2-0.build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -70,32 +70,42 @@ pip3 install serial
pip3 install pytest
cd ..

BOOSTVERSION=1.72.0
BOOSTVERSION_USCORED=1_72_0
BOOSTVERSION=1.75.0
BOOSTVERSION_USCORED=1_75_0
PKGCFLAGS="-O2 -fPIC"

BEEHIVE=https://beehive.molgen.mpg.de/e2b0b1eac302880461bcbef097171758/boost_1_72_0.tar.gz
BEEHIVE=https://beehive.molgen.mpg.de//38813f6feb40387dfe90160debd71251/boost_1_75_0.tar.gz
test -e boost_$BOOSTVERSION_USCORED.tar.gz || wget -nv $BEEHIVE
test -d boost_$BOOSTVERSION_USCORED || tar -xf boost_$BOOSTVERSION_USCORED.tar.gz
cd boost_$BOOSTVERSION_USCORED

sed -e "/using python/ s|;|: ${PREFIX}/include/python${PYTHONVERMAIN} ;|" \
-i bootstrap.sh

./bootstrap.sh \
--prefix=$PREFIX
--with-toolset=gcc \
--with-icu \
--with-python=$PREFIX/bin/python3 \
--with-libraries=filesystem || exit 1

./b2 \
-j $NPROC \
--prefix=$PREFIX \
--enable-shared \
--with-filesystem \
--build-type=minimal \
install

# someday I'll find out how to set LDFLAGS in boost
(
cd $PREFIX/lib
for SO in *$BOOSTVERSION ; do
patchelf --set-rpath $PREFIX/lib $SO
done
)
--layout=system \
--build-dir=build-python3 \
--prefix=$PREFIX \
--libdir=$PREFIX/lib \
--build-type=minimal \
toolset=gcc \
variant=release \
debug-symbols=off \
link=shared \
threading=multi \
runtime-link=shared \
python=$PYTHONVERMAIN \
cflags="$PKGCFLAGS" \
cxxflags="$PKGCFLAGS" \
install || exit 1

cd ..

#BEEHIVE=https://inkscape.org/gallery/item/31668/inkscape-1.1.2.tar.xz
Expand Down

0 comments on commit ca8bf8f

Please sign in to comment.