boost: convert to new package format

Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
Stephan Raue 2014-01-12 02:03:47 +01:00
parent 24ed049867
commit 03d339a962
4 changed files with 50 additions and 114 deletions

View File

@ -1,29 +0,0 @@
#!/bin/sh
################################################################################
# This file is part of OpenELEC - http://www.openelec.tv
# Copyright (C) 2009-2014 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/>.
################################################################################
. config/options $1
$SCRIPTS/unpack boost
setup_toolchain host
cd $BUILD/boost*/tools/build/v2/engine
sh build.sh
cp bin.*/bjam $ROOT/$TOOLCHAIN/bin

View File

@ -1,34 +0,0 @@
################################################################################
# This file is part of OpenELEC - http://www.openelec.tv
# Copyright (C) 2009-2014 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-jam"
PKG_VERSION=""
PKG_REV="1"
PKG_ARCH="any"
PKG_LICENSE="OSS"
PKG_SITE="http://www.boost.org/"
PKG_URL=""
PKG_DEPENDS=""
PKG_BUILD_DEPENDS="toolchain"
PKG_PRIORITY="optional"
PKG_SECTION="devel"
PKG_SHORTDESC="boost: Peer-reviewed STL style libraries for C++"
PKG_LONGDESC="Boost provides free peer-reviewed portable C++ source libraries. The emphasis is on libraries which work well with the C++ Standard Library. One goal is to establish existing practice and provide reference implementations so that the Boost libraries are suitable for eventual standardization. Some of the libraries have already been proposed for inclusion in the C++ Standards Committee's upcoming C++ Standard Library Technical Report."
PKG_IS_ADDON="no"
PKG_AUTORECONF="no"

View File

@ -1,48 +0,0 @@
#!/bin/sh
################################################################################
# This file is part of OpenELEC - http://www.openelec.tv
# Copyright (C) 2009-2014 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/>.
################################################################################
. config/options $1
# boost fails building with LTO support
strip_lto
CFLAGS="$CFLAGS -fPIC"
CXXFLAGS="$CXXFLAGS -fPIC"
LDFLAGS="$LDFLAGS -fPIC"
cd $PKG_BUILD
sh bootstrap.sh \
--prefix=/usr \
--with-bjam=$ROOT/$TOOLCHAIN/bin/bjam \
--with-python=$ROOT/$TOOLCHAIN/bin/python \
echo "using gcc : `$TARGET_CC -v 2>&1 | tail -n 1 |awk '{print $3}'` : $TARGET_CC : <compileflags>\"$CFLAGS\" <linkflags>\"$LDFLAGS\" ;" \
> tools/build/v2/user-config.jam
$ROOT/$TOOLCHAIN/bin/bjam -d2 --toolset=gcc link=static \
--prefix=$SYSROOT_PREFIX/usr \
--layout=system \
--with-thread \
--with-iostreams \
--with-system \
--with-serialization \
--with-filesystem \
--with-regex -sICU_PATH="$SYSROOT_PREFIX/usr" \
install

View File

@ -24,12 +24,59 @@ PKG_LICENSE="OSS"
PKG_SITE="http://www.boost.org/" PKG_SITE="http://www.boost.org/"
PKG_URL="$SOURCEFORGE_SRC/boost/boost/1.55.0/${PKG_NAME}_${PKG_VERSION}.tar.bz2" PKG_URL="$SOURCEFORGE_SRC/boost/boost/1.55.0/${PKG_NAME}_${PKG_VERSION}.tar.bz2"
PKG_SOURCE_DIR="${PKG_NAME}_${PKG_VERSION}" PKG_SOURCE_DIR="${PKG_NAME}_${PKG_VERSION}"
PKG_DEPENDS="zlib bzip2" PKG_DEPENDS_HOST=""
PKG_BUILD_DEPENDS="toolchain boost-jam Python-host zlib bzip2" PKG_DEPENDS_TARGET="zlib bzip2"
PKG_BUILD_DEPENDS_HOST="toolchain"
PKG_BUILD_DEPENDS_TARGET="toolchain boost:host Python-host zlib bzip2"
PKG_PRIORITY="optional" PKG_PRIORITY="optional"
PKG_SECTION="devel" PKG_SECTION="devel"
PKG_SHORTDESC="boost: Peer-reviewed STL style libraries for C++" PKG_SHORTDESC="boost: Peer-reviewed STL style libraries for C++"
PKG_LONGDESC="Boost provides free peer-reviewed portable C++ source libraries. The emphasis is on libraries which work well with the C++ Standard Library. One goal is to establish existing practice and provide reference implementations so that the Boost libraries are suitable for eventual standardization. Some of the libraries have already been proposed for inclusion in the C++ Standards Committee's upcoming C++ Standard Library Technical Report." PKG_LONGDESC="Boost provides free peer-reviewed portable C++ source libraries. The emphasis is on libraries which work well with the C++ Standard Library. One goal is to establish existing practice and provide reference implementations so that the Boost libraries are suitable for eventual standardization. Some of the libraries have already been proposed for inclusion in the C++ Standards Committee's upcoming C++ Standard Library Technical Report."
PKG_IS_ADDON="no"
PKG_IS_ADDON="no"
PKG_AUTORECONF="no" PKG_AUTORECONF="no"
make_host() {
cd tools/build/v2/engine
sh build.sh
}
makeinstall_host() {
mkdir -p $ROOT/$TOOLCHAIN/bin
cp bin.*/bjam $ROOT/$TOOLCHAIN/bin
}
pre_configure_target() {
# boost fails building with LTO support
strip_lto
export CFLAGS="$CFLAGS -fPIC"
export CXXFLAGS="$CXXFLAGS -fPIC"
export LDFLAGS="$LDFLAGS -fPIC"
}
configure_target() {
sh bootstrap.sh --prefix=/usr \
--with-bjam=$ROOT/$TOOLCHAIN/bin/bjam \
--with-python=$ROOT/$TOOLCHAIN/bin/python \
echo "using gcc : `$TARGET_CC -v 2>&1 | tail -n 1 |awk '{print $3}'` : $TARGET_CC : <compileflags>\"$CFLAGS\" <linkflags>\"$LDFLAGS\" ;" \
> tools/build/v2/user-config.jam
}
make_target() {
: # nothing todo, we use makeinstall_target()
}
makeinstall_target() {
$ROOT/$TOOLCHAIN/bin/bjam -d2 --toolset=gcc link=static \
--prefix=$SYSROOT_PREFIX/usr \
--layout=system \
--with-thread \
--with-iostreams \
--with-system \
--with-serialization \
--with-filesystem \
--with-regex -sICU_PATH="$SYSROOT_PREFIX/usr" \
install
}