boost: cross build support (missing -{jam,python} subpkgs).
This commit is contained in:
parent
f72e3365ba
commit
bb62580975
|
@ -1,15 +1,9 @@
|
||||||
# Template file for 'boost-build'.
|
# Template file for 'boost-build'.
|
||||||
#
|
#
|
||||||
conf_files="/etc/site-config.jam"
|
|
||||||
noarch=yes
|
noarch=yes
|
||||||
|
conf_files="/etc/site-config.jam"
|
||||||
depends="boost-jam>=$version boost-devel>=$version"
|
depends="boost-jam>=$version boost-devel>=$version"
|
||||||
short_desc="${short_desc} (Boost.Build framework)"
|
short_desc="${short_desc} - Boost.Build framework"
|
||||||
long_desc="
|
|
||||||
Boost is a set of free, peer-reviewed, C++ libraries. The emphasis is on
|
|
||||||
portable libraries which work well with the ISO C++ Standard Library.
|
|
||||||
|
|
||||||
This package provides the Boost.Build module, which includes bjam. This
|
|
||||||
is the tool used to build Boost itself, and is based on Perforce Jam."
|
|
||||||
|
|
||||||
do_install() {
|
do_install() {
|
||||||
mkdir -p ${DESTDIR}/usr/share
|
mkdir -p ${DESTDIR}/usr/share
|
||||||
|
|
|
@ -1,16 +1,9 @@
|
||||||
# Template file for 'boost-devel'.
|
# Template file for 'boost-devel'.
|
||||||
#
|
#
|
||||||
depends="libstdc++-devel zlib-devel bzip2-devel python-devel boost"
|
depends="libstdc++-devel boost-${version}_${revision}"
|
||||||
short_desc="${sourcepkg} development files"
|
short_desc="${short_desc} - development files"
|
||||||
long_desc="${long_desc}
|
|
||||||
|
|
||||||
This package contains files for development, headers, static libs, etc."
|
do_install() {
|
||||||
|
|
||||||
noverifyrdeps=yes
|
|
||||||
|
|
||||||
|
|
||||||
do_install()
|
|
||||||
{
|
|
||||||
mkdir -p ${DESTDIR}/usr/lib
|
mkdir -p ${DESTDIR}/usr/lib
|
||||||
mv ${SRCPKGDESTDIR}/usr/include ${DESTDIR}/usr
|
mv ${SRCPKGDESTDIR}/usr/include ${DESTDIR}/usr
|
||||||
mv ${SRCPKGDESTDIR}/usr/lib/lib*.a ${DESTDIR}/usr/lib
|
mv ${SRCPKGDESTDIR}/usr/lib/lib*.a ${DESTDIR}/usr/lib
|
||||||
|
|
|
@ -1,12 +1,6 @@
|
||||||
# Template file for 'boost-jam'.
|
# Template file for 'boost-jam'.
|
||||||
#
|
#
|
||||||
short_desc="${short_desc} (Boost.Jam utility)"
|
short_desc="${short_desc} - Boost.Jam utility"
|
||||||
long_desc="
|
|
||||||
Boost is a set of free, peer-reviewed, C++ libraries. The emphasis is on
|
|
||||||
portable libraries which work well with the ISO C++ Standard Library.
|
|
||||||
|
|
||||||
This package provides the Boost.Jam module, a make-like utility. This
|
|
||||||
is the tool used to build Boost itself, and is based on Perforce Jam."
|
|
||||||
|
|
||||||
do_install() {
|
do_install() {
|
||||||
mkdir -p ${DESTDIR}/usr/bin
|
mkdir -p ${DESTDIR}/usr/bin
|
||||||
|
|
|
@ -1,13 +1,7 @@
|
||||||
# Template file for 'boost-python'.
|
# Template file for 'boost-python'.
|
||||||
#
|
#
|
||||||
depends="boost>=$version python"
|
depends="boost>=${version} python"
|
||||||
short_desc="${short_desc} - python bindings"
|
short_desc="${short_desc} - python bindings"
|
||||||
long_desc="
|
|
||||||
Boost is a set of free, peer-reviewed, C++ libraries. The emphasis is on
|
|
||||||
portable libraries which work well with the ISO C++ Standard Library.
|
|
||||||
|
|
||||||
This package adds static and shared binary libraries providing support for
|
|
||||||
the Boost Python library."
|
|
||||||
|
|
||||||
do_install() {
|
do_install() {
|
||||||
mkdir -p ${DESTDIR}/usr/lib
|
mkdir -p ${DESTDIR}/usr/lib
|
||||||
|
|
|
@ -13,27 +13,46 @@ license="Boost Software License 1.0"
|
||||||
distfiles="${SOURCEFORGE_SITE}/$pkgname/${pkgname}_${_boostver}.tar.bz2"
|
distfiles="${SOURCEFORGE_SITE}/$pkgname/${pkgname}_${_boostver}.tar.bz2"
|
||||||
checksum=c9ace2b8c81fa6703d1d17c7e478de3bc51101c5adbdeb3f6cb72cf3045a8529
|
checksum=c9ace2b8c81fa6703d1d17c7e478de3bc51101c5adbdeb3f6cb72cf3045a8529
|
||||||
long_desc="
|
long_desc="
|
||||||
boost is a library for applications dealing with netlink sockets.
|
The Boost web site provides free peer-reviewed portable C++ source libraries.
|
||||||
The library provides an interface for raw netlink messaging and various
|
The emphasis is on libraries which work well with the C++ Standard Library.
|
||||||
netlink family specific interfaces."
|
The libraries are intended to be widely useful, and are in regular use by
|
||||||
|
thousands of programmers across a broad spectrum of applications."
|
||||||
|
|
||||||
|
disable_debug=yes
|
||||||
|
|
||||||
|
if [ -n "$XBPS_CROSS_BUILD" ]; then
|
||||||
|
# XXX boost-jam and boost-python subpkgs.
|
||||||
|
unset makedepends
|
||||||
|
subpackages="boost-build boost-devel"
|
||||||
|
crossmakedepends="zlib-devel icu-devel>=49.1"
|
||||||
|
fi
|
||||||
|
|
||||||
do_build() {
|
do_build() {
|
||||||
|
if [ -n "$XBPS_CROSS_BUILD" ]; then
|
||||||
|
echo "using gcc : arm : ${XBPS_CROSS_TRIPLET}-g++ ;" > \
|
||||||
|
tools/build/v2/user-config.jam
|
||||||
|
fi
|
||||||
./bootstrap.sh -prefix=${DESTDIR}/usr
|
./bootstrap.sh -prefix=${DESTDIR}/usr
|
||||||
./bjam cflags=-fno-strict-aliasing ${makejobs}
|
./bjam toolset=gcc-arm cflags="-fno-strict-aliasing $CFLAGS" ${makejobs}
|
||||||
}
|
}
|
||||||
|
|
||||||
do_install() {
|
do_install() {
|
||||||
# Install bjam
|
# Install bjam
|
||||||
|
if [ "$XBPS_MACHINE" = "i686" ]; then
|
||||||
_bindir="bin.linuxx86"
|
_bindir="bin.linuxx86"
|
||||||
[ "${XBPS_MACHINE}" = "x86_64" ] && _bindir="bin.linuxx86_64"
|
elif [ "$XBPS_MACHINE" = "x86_64" ]; then
|
||||||
vinstall bjam 755 usr/bin
|
_bindir="bin.linuxx86_64"
|
||||||
|
elif [ "$XBPS_MACHINE" = "armv6l" ]; then
|
||||||
|
_bindir="bin.linuxarm"
|
||||||
|
fi
|
||||||
|
[ -z "$XBPS_CROSS_BUILD" ] && vinstall bjam 755 usr/bin
|
||||||
|
|
||||||
# Install headers/libs
|
# Install headers/libs
|
||||||
./bjam --prefix=${DESTDIR}/usr install
|
./bjam --prefix=${DESTDIR}/usr install
|
||||||
|
|
||||||
# Install Boost.Build stuff.
|
# Install Boost.Build stuff.
|
||||||
install -d ${DESTDIR}/usr/share/boost-build
|
vmkdir usr/share/boost-build
|
||||||
cd $wrksrc/tools/build/v2 && cp -a . ${DESTDIR}/usr/share/boost-build
|
cd ${wrksrc}/tools/build/v2 && cp -a . ${DESTDIR}/usr/share/boost-build
|
||||||
find ${DESTDIR}/usr/share/boost-build \
|
find ${DESTDIR}/usr/share/boost-build \
|
||||||
-type f -name \*.orig -exec rm -f {} \;
|
-type f -name \*.orig -exec rm -f {} \;
|
||||||
( echo '# System wide configuration file for Boost.Build.' ; \
|
( echo '# System wide configuration file for Boost.Build.' ; \
|
||||||
|
|
Loading…
Reference in New Issue