diff --git a/inkscape-1.1.2-0.build.sh b/inkscape-1.1.2-0.build.sh index ccea8d4..74763b8 100755 --- a/inkscape-1.1.2-0.build.sh +++ b/inkscape-1.1.2-0.build.sh @@ -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