wok-next view libboost/receipt @ rev 19830
Up cookutils, libdv, ntk-dev
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Sat Aug 05 05:00:03 2017 +0300 (2017-08-05) |
parents | 25d841c90c4a |
children | ab7c63b80420 |
line source
1 # SliTaz package receipt v2.
3 PACKAGE="libboost"
4 VERSION="1.63.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/"
11 TARBALL="boost-$VERSION.tar.bz2"
12 WGET_URL="$SF_MIRROR/boost/boost_${VERSION//./_}.tar.bz2"
14 BUILD_DEPENDS="icu-dev zlib-dev bzip2-dev python-dev"
15 l="libboost"
16 SPLIT="$l-atomic $l-chrono $l-container $l-context $l-coroutine $l-date-time \
17 $l-fiber $l-filesystem $l-graph $l-iostreams $l-locale $l-log $l-math \
18 $l-math-tr1 $l-prg-exec-monitor $l-program-options $l-python $l-random \
19 $l-regex $l-serialization $l-signals $l-system $l-thread $l-timer \
20 $l-type-erasure $l-unit-test-framework $l-wave $l-wserialization $l-doc $l-dev"
22 # About splitting: there's complex relationships between header files.
23 # Previously, for example, the /usr/include/boost/chrono/* files were packed
24 # into libboost-chrono-dev package. And so on for many /usr/include/boost/*/
25 #
26 # But, for example:
27 # 1. /usr/include/boost/chrono/config.hpp (former libboost-chrono-dev package)
28 # includes <boost/config.hpp> (libboost-dev package)
29 # 2. /usr/include/boost/compute/detail/duration.hpp (former libboost-dev package)
30 # includes <boost/chrono/duration.hpp> (libboost-chrono package)
31 #
32 # And many other circular dependencies between libboost-dev and libboost-*-dev
33 # packages.
34 #
35 # Solution: make single solid big libboost-dev package with all development
36 # files.
37 #
38 # How to change dependencies of packages that depends on libboost: substitute
39 # libboost-x-dev by the pair libboost-x and libboost-dev.
42 # Rules to configure and make the package.
43 compile_rules()
44 {
45 ./bootstrap.sh --prefix=$install/usr &&
46 ./b2 stage threading=multi link=shared &&
47 ./b2 install threading=multi link=shared &&
49 docdir=$install/share/doc/boost-$VERSION &&
50 mkdir -p $docdir &&
51 cp -a $src/doc/html/* $docdir &&
52 chown -R root:root $docdir &&
53 find $docdir -type f -exec chmod 644 '{}' \;
55 find $install -name '*.hpp' -exec chmod 644 '{}' \;
56 }
58 # Rules to gen a SliTaz package suitable for Tazpkg.
59 genpkg_rules()
60 {
61 DEPENDS=" "
62 case $PACKAGE in
63 *-chrono) DEPENDS="$l-system";;
64 *-coroutine) DEPENDS="$l-chrono $l-context $l-system $l-thread";;
65 *-fiber) DEPENDS="$l-context";;
66 *-filesystem) DEPENDS="$l-system";;
67 *-graph) DEPENDS="$l-regex icu";;
68 *-iostreams) DEPENDS="bzlib zlib";;
69 *-locale) DEPENDS="$l-chrono $l-system $l-thread icu";;
70 *-log) DEPENDS="$l-atomic $l-chrono $l-date-time $l-filesystem $l-regex $l-system $l-thread icu";;
71 *-prg-exec-monitor) DEPENDS="$l-system $l-timer";;
72 *-random) DEPENDS="$l-system";;
73 *-regex) DEPENDS="icu";;
74 *-thread) DEPENDS="$l-system";;
75 *-timer) DEPENDS="$l-chrono $l-system";;
76 *-type-erasure) DEPENDS="$l-chrono $l-system $l-thread";;
77 *-unit-test-framework) DEPENDS="$l-system $l-timer";;
78 *-wave) DEPENDS="$l-chrono $l-date-time $l-filesystem $l-system $l-thread";;
79 *-wserialization) DEPENDS="$l-serialization";;
80 esac
82 case $PACKAGE in
83 libboost)
84 DEPENDS="$l-date-time $l-iostreams $l-regex $l-serialization \
85 $l-system $l-thread"
86 CAT="meta|meta-package to install base modules"
87 ;;
88 *-doc)
89 copy doc/
90 CAT="doc|documentation"
91 ;;
92 libboost-dev)
93 copy @dev
94 remove_already_packed
95 ;;
96 *)
97 p=${PACKAGE#*-}
98 copy libboost_${p//-/_}*.so*
99 CAT="libdevel|${PACKAGE#*-}"
100 ;;
101 esac
103 case $PACKAGE in
104 *-math) rm -f $fs/usr/lib/*math_tr1*.so*;;
105 esac
106 }