wok-current view libboost-dev/receipt @ rev 22614
updated connman, connman-dev and connman-tools (1.21 -> 1.37)
author | Hans-G?nter Theisgen |
---|---|
date | Sat Jan 11 17:07:11 2020 +0100 (2020-01-11) |
parents | 86790a278e70 |
children | 65d7d867e0c1 |
line source
1 # SliTaz package receipt.
3 # Boost is a set of two types of libraries. Most of them are just
4 # headers with inline functions, these are included in this package
5 # named libboost-dev. Some few set of libraries require build and
6 # installation steps. These will be relocated and have their own two
7 # packages : libboost-name and libboost-name-dev.
9 PACKAGE="libboost-dev"
10 VERSION="1.69.0"
11 CATEGORY="development"
12 SHORT_DESC="Free peer-reviewed portable C++ source libraries."
13 MAINTAINER="chadi.elahmad@gmail.com"
14 LICENSE="MIT"
15 WEB_SITE="https://www.boost.org/"
17 # We have to do it this way because of the underscores
18 # to get a package with the slitaz version numbering
19 SOURCE="boost"
20 WGET_SOURCE="boost_1_69_0"
21 TARBALL="$WGET_SOURCE.tar.bz2"
22 #EXTRA_SOURCE_FILES="boost_changeset_75540.u"
23 WGET_URL="$SF_MIRROR/$SOURCE/$TARBALL"
25 DEPENDS="gcc-lib-base libboost-chrono-dev libboost-date-time-dev \
26 libboost-math-dev"
27 BUILD_DEPENDS="bzip2-dev expat expat-dev python python-dev zlib-dev"
28 RELOCATE_LIBS="{ date_time filesystem graph iostreams \
29 math program_options python regex serialization \
30 signal system test thread tr1 wave }"
33 # Rules to configure and make the package.
34 # Uses boost:build building tool for the compilation:
35 # Doesn't use DESTDIR.
36 # Doesn't recognize the $CONFIGURE_ARGS, gives an error back
37 # Have to add some params to get static libs compiled too
38 compile_rules()
39 {
40 # Determine if TOOLPREFIX has been defined in tazwok.conf as it should
41 if [ -z "$TOOLPREFIX" ] ; then
42 # Provide a default TOOLPREFIX value
43 TOOLPREFIX=$ARCH-pc-linux-gnu-
44 fi
46 # [ -s $SOURCES_REPOSITORY/boost_changeset_75540.u ] ||
47 # wget -O $SOURCES_REPOSITORY/boost_changeset_75540.u --no-check-certificate \
48 # 'https://svn.boost.org/trac/boost/changeset/75540?format=diff&new=75540'
49 # patch -p2 < $SOURCES_REPOSITORY/boost_changeset_75540.u || return 1
51 ./bootstrap.sh \
52 --prefix=$DESTDIR/usr \
53 --exec-prefix=$DESTDIR/usr \
54 --libdir=$DESTDIR/usr/lib \
55 --includedir=$DESTDIR/usr/include \
56 --without-icu &&
57 EXPAT_INCLUDE=/usr/include \
58 EXPAT_LIBPATH=/usr/lib \
59 ./bjam \
60 --prefix=$DESTDIR/usr \
61 --exec-prefix=$DESTDIR/usr \
62 --libdir=$DESTDIR/usr/lib \
63 --includedir=$DESTDIR/usr/include \
64 --build-type=minimal \
65 install
67 # create the missing links to the shared libs
68 cd $DESTDIR/usr/lib
69 #for i in `ls *-mt.so`; do
70 # boost_tmp=`echo $i | sed s/-gcc.*-mt//g`
71 # boost_tmp_mt=`echo $i | sed s/-gcc.*-mt/-mt/g`
72 # ln -s $i $boost_tmp
73 # ln -s $i $boost_tmp_mt
74 #done
75 #for i in `ls *-mt.a`; do
76 # boost_tmp=`echo $i | sed s/-gcc.*-mt//g`
77 # boost_tmp_mt=`echo $i | sed s/-gcc.*-mt/-mt/g`
78 # ln -s $i $boost_tmp
79 # ln -s $i $boost_tmp_mt
80 #done
81 }
83 # Rules to gen a SliTaz package suitable for Tazpkg.
84 genpkg_rules()
85 {
86 mkdir -p $fs/usr
88 cp -a $install/usr/lib $fs/usr
89 cp -a $install/usr/include $fs/usr
91 for i in $RELOCATE_LIBS; do
92 rm -f $fs/usr/lib/*$i*
93 rm -r -f $fs/usr/include/boost/*$i*
94 done
96 # libboost-chrono{-dev}
97 rm $fs/usr/lib/libboost_chrono*
98 rm $fs/usr/include/boost/chrono*
99 rm -r $fs/usr/include/boost/chrono
100 }