1 # Contributor : Dan Vratil <dan@progdan.cz>
2 # Maintainer : andy123 < ajs AT online DOT de >
4 pkgname=lib32-boost-libs
8 pkgdesc="Free peer-reviewed portable C++ source libraries - Runtime (32
11 url="http://www.boost.org"
14 depends=('lib32-bzip2' 'lib32-zlib' 'lib32-gcc-libs')
15 makedepends=('icu' 'bzip2' 'lib32-zlib' 'openmpi' 'gcc-multilib')
16 source=(http://downloads.sourceforge.net/sourceforge/boost/boost_${_boostver}.tar.gz)
17 md5sums=('313a11e97eb56eb7efd18325354631be')
18 sha1sums=('2199cc3e745a61d45e292ec33af9847252101a46')
20 _stagedir="${srcdir}/stagedir"
27 export CXXFLAGS="-m32"
28 export PKG_CONFIG_PATH="/usr/lib32/pkgconfig"
30 # set python path for bjam
31 cd "${srcdir}/boost_${_boostver}/tools"
32 # echo "using python : 2.7 : /usr/bin/python2 ;" >> build/v2/user-config.jam
33 # echo "using python : 3.2 : /usr/bin/python3.2 : /usr/include/python3.2mu :
34 # /usr/lib32 ;" >> build/v2/user-config.jam
35 # echo "using mpi ;" >> build/v2/user-config.jam
38 cd "${srcdir}/boost_${_boostver}/tools/build/v2/engine"
41 _bindir="bin.linuxx86"
43 install -d "${_stagedir}"/usr/bin
44 install ${_bindir}/bjam "${_stagedir}"/usr/bin/bjam
47 cd "${srcdir}/boost_${_boostver}/tools/bcp"
48 ../build/v2/engine/${_bindir}/bjam --toolset=gcc
49 install -m755 "${srcdir}/boost_${_boostver}/dist/bin/bcp" \
50 ${_stagedir}/usr/bin/bcp
53 cd "${srcdir}/boost_${_boostver}"
55 # default "minimal" install: "release link=shared,static
56 # runtime-link=shared threading=single,multi"
57 # --layout=tagged will add the "-mt" suffix for multithreaded libraries
58 # and installs includes in /usr/include/boost.
59 # --layout=system no longer adds the -mt suffix for multi-threaded libs.
60 # install to ${_stagedir} in preparation for split packaging
62 ./tools/build/v2/engine/${_bindir}/bjam \
63 release debug-symbols=off threading=multi \
64 runtime-link=shared link=shared,static \
65 cflags=-fno-strict-aliasing \
70 --prefix="${_stagedir}" \
79 install -d "${pkgdir}/usr/lib32"
82 cp -r "${_stagedir}"/lib/*.so{,.*} "${pkgdir}/usr/lib32/"
85 install -D -m644 "${srcdir}/boost_${_boostver}/LICENSE_1_0.txt" \
86 "${pkgdir}"/usr/share/licenses/lib32-boost-libs/LICENSE_1_0.txt