46 lines
1.2 KiB
Plaintext
46 lines
1.2 KiB
Plaintext
# Description: Boost python3 binding.
|
|
# URL: https://www.boost.org/
|
|
# Maintainer: Tim Biermann, tbier at posteo dot de
|
|
# Packager: Pedja, predivan at mts dot rs
|
|
# Depends on: boost python3
|
|
|
|
name=py3boost
|
|
version=1.69.0
|
|
release=2
|
|
source=(https://downloads.sourceforge.net/project/${name#py3}/${name#py3}/$version/${name#py3}_${version//./_}.tar.bz2)
|
|
|
|
build() {
|
|
cd ${name#py3}_${version//./_}
|
|
|
|
# these numbers need to be changed according to systems python3 version
|
|
sed -i '19s:=python:=python3.7:' bootstrap.sh
|
|
# here too
|
|
sed -i '20s:=:=3.7:' bootstrap.sh
|
|
|
|
export CPLUS_INCLUDE_PATH="$CPLUS_INCLUDE_PATH:/usr/include/python3"
|
|
|
|
export _stagedir="$SRC/stagedir"
|
|
|
|
./bootstrap.sh \
|
|
--prefix="${_stagedir}" \
|
|
--with-toolset=gcc \
|
|
--with-icu \
|
|
--with-libraries=python
|
|
|
|
./b2 stage \
|
|
variant=release \
|
|
threading=multi \
|
|
runtime-link=shared \
|
|
link=shared,static \
|
|
debug-symbols=off \
|
|
toolset=gcc \
|
|
--prefix="${_stagedir/python3}" \
|
|
--with-python \
|
|
install
|
|
|
|
install -dm 755 $PKG/usr/lib
|
|
cp -a ${_stagedir}/lib/libboost_python3* $PKG/usr/lib
|
|
#https://github.com/boostorg/python/issues/203#issuecomment-391477685
|
|
ln -srL $PKG/usr/lib/libboost_python3{7,}.so
|
|
}
|