mirror of
https://github.com/archr-linux/Arch-R.git
synced 2026-03-31 14:41:55 -07:00
72 lines
2.8 KiB
Makefile
72 lines
2.8 KiB
Makefile
################################################################################
|
|
# This file is part of OpenELEC - http://www.openelec.tv
|
|
# Copyright (C) 2009-2016 Stephan Raue (stephan@openelec.tv)
|
|
#
|
|
# OpenELEC is free software: you can redistribute it and/or modify
|
|
# it under the terms of the GNU General Public License as published by
|
|
# the Free Software Foundation, either version 2 of the License, or
|
|
# (at your option) any later version.
|
|
#
|
|
# OpenELEC is distributed in the hope that it will be useful,
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
# GNU General Public License for more details.
|
|
#
|
|
# You should have received a copy of the GNU General Public License
|
|
# along with OpenELEC. If not, see <http://www.gnu.org/licenses/>.
|
|
################################################################################
|
|
|
|
PKG_NAME="boost"
|
|
PKG_VERSION="1_65_1"
|
|
PKG_SHA256="9807a5d16566c57fd74fb522764e0b134a8bbe6b6e8967b83afefd30dcd3be81"
|
|
PKG_LICENSE="OSS"
|
|
PKG_SITE="http://www.boost.org/"
|
|
PKG_URL="$SOURCEFORGE_SRC/boost/boost/1.65.1/${PKG_NAME}_${PKG_VERSION}.tar.bz2"
|
|
PKG_SOURCE_DIR="${PKG_NAME}_${PKG_VERSION}"
|
|
PKG_DEPENDS_TARGET="toolchain boost:host Python2 zlib bzip2"
|
|
PKG_LONGDESC="boost: Peer-reviewed STL style libraries for C++"
|
|
PKG_TOOLCHAIN="manual"
|
|
|
|
make_host() {
|
|
cd tools/build/src/engine
|
|
sh build.sh
|
|
}
|
|
|
|
makeinstall_host() {
|
|
mkdir -p $TOOLCHAIN/bin
|
|
cp bin.*/bjam $TOOLCHAIN/bin
|
|
}
|
|
|
|
pre_configure_target() {
|
|
export CFLAGS="$CFLAGS -I$SYSROOT_PREFIX/usr/include/$PKG_PYTHON_VERSION -fPIC"
|
|
export CXXFLAGS="$CXXFLAGS -I$SYSROOT_PREFIX/usr/include/$PKG_PYTHON_VERSION -fPIC"
|
|
}
|
|
|
|
configure_target() {
|
|
sh bootstrap.sh --prefix=/usr \
|
|
--with-bjam=$TOOLCHAIN/bin/bjam \
|
|
--with-python=$TOOLCHAIN/bin/python \
|
|
--with-python-root=$SYSROOT_PREFIX/usr
|
|
|
|
echo "using gcc : `$CC -v 2>&1 | tail -n 1 |awk '{print $3}'` : $CC : <compileflags>\"$CFLAGS\" <linkflags>\"$LDFLAGS\" ;" \
|
|
> tools/build/src/user-config.jam
|
|
}
|
|
|
|
makeinstall_target() {
|
|
$TOOLCHAIN/bin/bjam -d2 --ignore-site-config \
|
|
--layout=system \
|
|
--prefix=$SYSROOT_PREFIX/usr \
|
|
--toolset=gcc link=static \
|
|
--with-chrono \
|
|
--with-date_time \
|
|
--with-filesystem \
|
|
--with-iostreams \
|
|
--with-python \
|
|
--with-random \
|
|
--with-regex -sICU_PATH="$SYSROOT_PREFIX/usr" \
|
|
--with-serialization \
|
|
--with-system \
|
|
--with-thread \
|
|
install
|
|
}
|