wok-next annotate libboost/receipt @ rev 20042
pigz, pxe-kexec: update bdeps
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Oct 22 20:53:07 2017 +0200 (2017-10-22) |
parents | 25d841c90c4a |
children | ab7c63b80420 |
rev | line source |
---|---|
al@19765 | 1 # SliTaz package receipt v2. |
pankso@15955 | 2 |
pankso@15955 | 3 PACKAGE="libboost" |
al@19765 | 4 VERSION="1.63.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@19765 | 12 WGET_URL="$SF_MIRROR/boost/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@19765 | 42 # Rules to configure and make the package. |
al@19765 | 43 compile_rules() |
al@19765 | 44 { |
al@19765 | 45 ./bootstrap.sh --prefix=$install/usr && |
al@19765 | 46 ./b2 stage threading=multi link=shared && |
al@19765 | 47 ./b2 install threading=multi link=shared && |
al@19765 | 48 |
al@19765 | 49 docdir=$install/share/doc/boost-$VERSION && |
al@19765 | 50 mkdir -p $docdir && |
al@19765 | 51 cp -a $src/doc/html/* $docdir && |
al@19765 | 52 chown -R root:root $docdir && |
al@19765 | 53 find $docdir -type f -exec chmod 644 '{}' \; |
al@19765 | 54 |
al@19765 | 55 find $install -name '*.hpp' -exec chmod 644 '{}' \; |
al@19765 | 56 } |
al@19765 | 57 |
al@19765 | 58 # Rules to gen a SliTaz package suitable for Tazpkg. |
al@19765 | 59 genpkg_rules() |
al@19765 | 60 { |
al@19765 | 61 DEPENDS=" " |
al@19765 | 62 case $PACKAGE in |
al@19765 | 63 *-chrono) DEPENDS="$l-system";; |
al@19765 | 64 *-coroutine) DEPENDS="$l-chrono $l-context $l-system $l-thread";; |
al@19765 | 65 *-fiber) DEPENDS="$l-context";; |
al@19765 | 66 *-filesystem) DEPENDS="$l-system";; |
al@19765 | 67 *-graph) DEPENDS="$l-regex icu";; |
al@19765 | 68 *-iostreams) DEPENDS="bzlib zlib";; |
al@19765 | 69 *-locale) DEPENDS="$l-chrono $l-system $l-thread icu";; |
al@19765 | 70 *-log) DEPENDS="$l-atomic $l-chrono $l-date-time $l-filesystem $l-regex $l-system $l-thread icu";; |
al@19765 | 71 *-prg-exec-monitor) DEPENDS="$l-system $l-timer";; |
al@19765 | 72 *-random) DEPENDS="$l-system";; |
al@19765 | 73 *-regex) DEPENDS="icu";; |
al@19765 | 74 *-thread) DEPENDS="$l-system";; |
al@19765 | 75 *-timer) DEPENDS="$l-chrono $l-system";; |
al@19765 | 76 *-type-erasure) DEPENDS="$l-chrono $l-system $l-thread";; |
al@19765 | 77 *-unit-test-framework) DEPENDS="$l-system $l-timer";; |
al@19765 | 78 *-wave) DEPENDS="$l-chrono $l-date-time $l-filesystem $l-system $l-thread";; |
al@19765 | 79 *-wserialization) DEPENDS="$l-serialization";; |
al@19765 | 80 esac |
al@19765 | 81 |
al@19765 | 82 case $PACKAGE in |
al@19765 | 83 libboost) |
al@19765 | 84 DEPENDS="$l-date-time $l-iostreams $l-regex $l-serialization \ |
al@19765 | 85 $l-system $l-thread" |
al@19765 | 86 CAT="meta|meta-package to install base modules" |
al@19765 | 87 ;; |
al@19765 | 88 *-doc) |
al@19765 | 89 copy doc/ |
al@19765 | 90 CAT="doc|documentation" |
al@19765 | 91 ;; |
al@19765 | 92 libboost-dev) |
al@19765 | 93 copy @dev |
al@19765 | 94 remove_already_packed |
al@19765 | 95 ;; |
al@19765 | 96 *) |
al@19765 | 97 p=${PACKAGE#*-} |
al@19765 | 98 copy libboost_${p//-/_}*.so* |
al@19765 | 99 CAT="libdevel|${PACKAGE#*-}" |
al@19765 | 100 ;; |
al@19765 | 101 esac |
al@19765 | 102 |
al@19765 | 103 case $PACKAGE in |
al@19765 | 104 *-math) rm -f $fs/usr/lib/*math_tr1*.so*;; |
al@19765 | 105 esac |
al@19765 | 106 } |