wok-next annotate boost/receipt @ rev 21017
Some maintenance
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Tue Oct 16 16:46:05 2018 +0300 (2018-10-16) |
parents | cfe02a64e56a |
children | d5aab818505e |
rev | line source |
---|---|
al@20915 | 1 # SliTaz package receipt v2. |
al@20915 | 2 |
al@20915 | 3 PACKAGE="boost" |
al@20915 | 4 VERSION="1.68.0" |
al@20915 | 5 CATEGORY="meta" |
al@20915 | 6 SHORT_DESC="Boost C++ libraries" |
al@20915 | 7 MAINTAINER="chadi.elahmad@gmail.com" |
al@20915 | 8 LICENSE="MIT" |
al@20915 | 9 WEB_SITE="https://www.boost.org/" |
al@21017 | 10 LFS="http://www.linuxfromscratch.org/blfs/view/svn/general/boost.html" |
al@20915 | 11 |
al@20915 | 12 TARBALL="$PACKAGE-$VERSION.tar.bz2" |
al@20915 | 13 WGET_URL="https://dl.bintray.com/boostorg/release/$VERSION/source/${PACKAGE}_${VERSION//./_}.tar.bz2" |
al@20915 | 14 # https://www.boost.org/users/download/ |
al@20915 | 15 TARBALL_SHA256="7f6130bc3cf65f56a618888ce9d5ea704fa10b462be126ad053e80e553d6d8b7" |
al@20915 | 16 |
al@20915 | 17 BUILD_DEPENDS="icu-dev zlib-dev bzip2-dev python-dev" |
al@20915 | 18 b="boost" |
al@20916 | 19 SPLIT="$b-atomic $b-chrono $b-container $b-context $b-contract $b-coroutine \ |
al@20916 | 20 $b-date-time $b-fiber $b-filesystem $b-graph $b-iostreams $b-locale $b-log \ |
al@20916 | 21 $b-math $b-math-tr1 $b-prg-exec-monitor $b-program-options $b-python $b-random \ |
al@20916 | 22 $b-regex $b-serialization $b-signals $b-stacktrace $b-system $b-thread \ |
al@20916 | 23 $b-timer $b-type-erasure $b-unit-test-framework $b-wave $b-wserialization \ |
al@20916 | 24 $b-dev" |
al@20915 | 25 |
al@20915 | 26 # About splitting: there's complex relationships between header files. |
al@20915 | 27 # Previously, for example, the /usr/include/boost/chrono/* files were packed |
al@20915 | 28 # into libboost-chrono-dev package. And so on for many /usr/include/boost/*/ |
al@20915 | 29 # |
al@20915 | 30 # But, for example: |
al@20915 | 31 # 1. /usr/include/boost/chrono/config.hpp (former boost-chrono-dev package) |
al@20915 | 32 # includes <boost/config.hpp> (boost-dev package) |
al@20915 | 33 # 2. /usr/include/boost/compute/detail/duration.hpp (former boost-dev package) |
al@20915 | 34 # includes <boost/chrono/duration.hpp> (boost-chrono package) |
al@20915 | 35 # |
al@20915 | 36 # And many other circular dependencies between boost-dev and boost-*-dev |
al@20915 | 37 # packages. |
al@20915 | 38 # |
al@20915 | 39 # Solution: make single solid big boost-dev package with all development |
al@20915 | 40 # files. |
al@20915 | 41 # |
al@20915 | 42 # How to change dependencies of packages that depends on boost? |
al@20915 | 43 # Substitute boost-?-dev by the pair: boost-? and boost-dev. |
al@20915 | 44 |
al@20915 | 45 |
al@20915 | 46 compile_rules() { |
al@20915 | 47 ./bootstrap.sh --prefix=$install/usr && |
al@20915 | 48 ./b2 stage threading=multi link=shared && |
al@20915 | 49 ./b2 install threading=multi link=shared || return 1 |
al@20915 | 50 |
al@20915 | 51 cook_pick_docs doc/html/* |
al@20915 | 52 |
al@20915 | 53 find $install -name '*.hpp' -exec chmod 644 '{}' \; |
al@20915 | 54 } |
al@20915 | 55 |
al@20915 | 56 genpkg_rules() { |
al@20915 | 57 DEPENDS=" " |
al@20915 | 58 case $PACKAGE in |
al@20916 | 59 boost) DEPENDS="$b-date-time $b-iostreams $b-regex $b-serialization $b-system $b-thread";; |
al@20915 | 60 *-chrono) DEPENDS="$b-system";; |
al@20916 | 61 *-contract) DEPENDS="$b-system";; |
al@20915 | 62 *-coroutine) DEPENDS="$b-chrono $b-context $b-system $b-thread";; |
al@20915 | 63 *-fiber) DEPENDS="$b-context $b-filesystem $b-system";; |
al@20915 | 64 *-filesystem) DEPENDS="$b-system";; |
al@20915 | 65 *-graph) DEPENDS="$b-regex icu libicu";; |
al@20915 | 66 *-iostreams) DEPENDS="bzlib zlib";; |
al@20915 | 67 *-locale) DEPENDS="$b-chrono $b-system $b-thread icu libicu";; |
al@20915 | 68 *-log) DEPENDS="$b-atomic $b-chrono $b-date-time $b-filesystem $b-regex $b-system $b-thread icu libicu";; |
al@20915 | 69 *-prg-exec-monitor) DEPENDS="$b-system $b-timer";; |
al@20915 | 70 *-random) DEPENDS="$b-system";; |
al@20915 | 71 *-regex) DEPENDS="icu libicu";; |
al@20915 | 72 *-thread) DEPENDS="$b-system";; |
al@20915 | 73 *-timer) DEPENDS="$b-chrono $b-system";; |
al@20915 | 74 *-type-erasure) DEPENDS="$b-chrono $b-system $b-thread";; |
al@20915 | 75 *-unit-test-framework) DEPENDS="$b-system $b-timer";; |
al@20915 | 76 *-wave) DEPENDS="$b-chrono $b-date-time $b-filesystem $b-system $b-thread";; |
al@20915 | 77 *-wserialization) DEPENDS="$b-serialization";; |
al@20915 | 78 esac |
al@20915 | 79 |
al@20915 | 80 case $PACKAGE in |
al@20915 | 81 boost) |
al@20915 | 82 CAT="meta|meta-package to install base modules" |
al@20915 | 83 ;; |
al@20915 | 84 boost-dev) |
al@20915 | 85 copy @dev @rm |
al@20915 | 86 ;; |
al@20915 | 87 *) |
al@20915 | 88 p=${PACKAGE#*-} |
al@20915 | 89 copy libboost_${p//-/_}*.so* |
al@20915 | 90 CAT="libdevel|${PACKAGE#*-}" |
al@20915 | 91 ;; |
al@20915 | 92 esac |
al@20915 | 93 |
al@20915 | 94 case $PACKAGE in |
al@20915 | 95 *-math) rm -f $fs/usr/lib/*math_tr1*.so*;; |
al@20915 | 96 esac |
al@20915 | 97 } |