wok-next view libboost/receipt @ rev 20712

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