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