wok-next annotate boost/receipt @ rev 21724

busybox: update configs
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Sep 01 11:04:25 2020 +0000 (2020-09-01)
parents d5aab818505e
children
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@21020 7 MAINTAINER="devel@slitaz.org"
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@21020 18 SPLIT="\
al@21020 19 $PACKAGE-atomic $PACKAGE-chrono $PACKAGE-container \
al@21020 20 $PACKAGE-context $PACKAGE-contract $PACKAGE-coroutine \
al@21020 21 $PACKAGE-date-time $PACKAGE-fiber $PACKAGE-filesystem \
al@21020 22 $PACKAGE-graph $PACKAGE-iostreams $PACKAGE-locale \
al@21020 23 $PACKAGE-log $PACKAGE-math $PACKAGE-math-tr1 \
al@21020 24 $PACKAGE-prg-exec-monitor $PACKAGE-program-options $PACKAGE-python \
al@21020 25 $PACKAGE-random $PACKAGE-regex $PACKAGE-serialization \
al@21020 26 $PACKAGE-signals $PACKAGE-stacktrace $PACKAGE-system \
al@21020 27 $PACKAGE-thread $PACKAGE-timer $PACKAGE-type-erasure \
al@21020 28 $PACKAGE-unit-test-framework $PACKAGE-wave $PACKAGE-wserialization \
al@21020 29 $PACKAGE-dev"
al@20915 30
al@20915 31 # About splitting: there's complex relationships between header files.
al@20915 32 # Previously, for example, the /usr/include/boost/chrono/* files were packed
al@20915 33 # into libboost-chrono-dev package. And so on for many /usr/include/boost/*/
al@20915 34 #
al@20915 35 # But, for example:
al@20915 36 # 1. /usr/include/boost/chrono/config.hpp (former boost-chrono-dev package)
al@20915 37 # includes <boost/config.hpp> (boost-dev package)
al@20915 38 # 2. /usr/include/boost/compute/detail/duration.hpp (former boost-dev package)
al@20915 39 # includes <boost/chrono/duration.hpp> (boost-chrono package)
al@20915 40 #
al@20915 41 # And many other circular dependencies between boost-dev and boost-*-dev
al@20915 42 # packages.
al@20915 43 #
al@20915 44 # Solution: make single solid big boost-dev package with all development
al@20915 45 # files.
al@20915 46 #
al@20915 47 # How to change dependencies of packages that depends on boost?
al@20915 48 # Substitute boost-?-dev by the pair: boost-? and boost-dev.
al@20915 49
al@20915 50
al@20915 51 compile_rules() {
al@20915 52 ./bootstrap.sh --prefix=$install/usr &&
al@20915 53 ./b2 stage threading=multi link=shared &&
al@20915 54 ./b2 install threading=multi link=shared || return 1
al@20915 55
al@20915 56 cook_pick_docs doc/html/*
al@20915 57
al@20915 58 find $install -name '*.hpp' -exec chmod 644 '{}' \;
al@20915 59 }
al@20915 60
al@20915 61 genpkg_rules() {
al@21020 62 b="boost"
al@20915 63 DEPENDS=" "
al@20915 64 case $PACKAGE in
al@20916 65 boost) DEPENDS="$b-date-time $b-iostreams $b-regex $b-serialization $b-system $b-thread";;
al@20915 66 *-chrono) DEPENDS="$b-system";;
al@20916 67 *-contract) DEPENDS="$b-system";;
al@20915 68 *-coroutine) DEPENDS="$b-chrono $b-context $b-system $b-thread";;
al@20915 69 *-fiber) DEPENDS="$b-context $b-filesystem $b-system";;
al@20915 70 *-filesystem) DEPENDS="$b-system";;
al@20915 71 *-graph) DEPENDS="$b-regex icu libicu";;
al@21105 72 *-iostreams) DEPENDS="libbzip2 zlib";;
al@20915 73 *-locale) DEPENDS="$b-chrono $b-system $b-thread icu libicu";;
al@20915 74 *-log) DEPENDS="$b-atomic $b-chrono $b-date-time $b-filesystem $b-regex $b-system $b-thread icu libicu";;
al@20915 75 *-prg-exec-monitor) DEPENDS="$b-system $b-timer";;
al@20915 76 *-random) DEPENDS="$b-system";;
al@20915 77 *-regex) DEPENDS="icu libicu";;
al@20915 78 *-thread) DEPENDS="$b-system";;
al@20915 79 *-timer) DEPENDS="$b-chrono $b-system";;
al@20915 80 *-type-erasure) DEPENDS="$b-chrono $b-system $b-thread";;
al@20915 81 *-unit-test-framework) DEPENDS="$b-system $b-timer";;
al@20915 82 *-wave) DEPENDS="$b-chrono $b-date-time $b-filesystem $b-system $b-thread";;
al@20915 83 *-wserialization) DEPENDS="$b-serialization";;
al@20915 84 esac
al@20915 85
al@20915 86 case $PACKAGE in
al@20915 87 boost)
al@20915 88 CAT="meta|meta-package to install base modules"
al@20915 89 ;;
al@20915 90 boost-dev)
al@20915 91 copy @dev @rm
al@20915 92 ;;
al@20915 93 *)
al@20915 94 p=${PACKAGE#*-}
al@20915 95 copy libboost_${p//-/_}*.so*
al@20915 96 CAT="libdevel|${PACKAGE#*-}"
al@20915 97 ;;
al@20915 98 esac
al@20915 99
al@20915 100 case $PACKAGE in
al@20915 101 *-math) rm -f $fs/usr/lib/*math_tr1*.so*;;
al@20915 102 esac
al@20915 103 }