wok view libboost-dev/receipt @ rev 19485

Add libunistring
author Aleksej Bobylev <al.bobylev@gmail.com>
date Fri Nov 04 13:04:07 2016 +0200 (2016-11-04)
parents a05bf0bcba3b
children 86790a278e70
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 # We have to do it this way because of the underscores
10 # to get a package with the slitaz version numbering
11 PACKAGE="libboost-dev"
12 SOURCE="boost"
13 VERSION="1.50.0"
14 WGET_SOURCE="boost_1_50_0"
16 CATEGORY="development"
17 SHORT_DESC="Free peer-reviewed portable C++ source libraries."
18 MAINTAINER="chadi.elahmad@gmail.com"
19 LICENSE="MIT"
21 TARBALL="$WGET_SOURCE.tar.bz2"
22 EXTRA_SOURCE_FILES="boost_changeset_75540.u"
23 WEB_SITE="http://www.boost.org/"
24 WGET_URL="$SF_MIRROR/$SOURCE/$TARBALL"
26 DEPENDS="gcc-lib-base libboost-math-dev libboost-date-time-dev \
27 libboost-chrono-dev"
28 BUILD_DEPENDS="python python-dev expat-dev expat zlib-dev bzip2-dev"
29 RELOCATE_LIBS="{ date_time filesystem graph iostreams \
30 math program_options python regex serialization \
31 signal system test thread tr1 wave }"
34 # Rules to configure and make the package.
35 # Uses boost:build building tool for the compilation:
36 # Doesn't use DESTDIR.
37 # Doesn't recognize the $CONFIGURE_ARGS, gives an error back
38 # Have to add some params to get static libs compiled too
39 compile_rules()
40 {
41 # Determine if TOOLPREFIX has been defined in tazwok.conf as it should
42 if [ -z "$TOOLPREFIX" ] ; then
43 # Provide a default TOOLPREFIX value
44 TOOLPREFIX=$ARCH-pc-linux-gnu-
45 fi
47 cd $src
48 [ -s $SOURCES_REPOSITORY/boost_changeset_75540.u ] ||
49 wget -O $SOURCES_REPOSITORY/boost_changeset_75540.u --no-check-certificate \
50 'https://svn.boost.org/trac/boost/changeset/75540?format=diff&new=75540'
51 patch -p2 < $SOURCES_REPOSITORY/boost_changeset_75540.u || return 1
52 ./bootstrap.sh \
53 --prefix=$DESTDIR/usr \
54 --exec-prefix=$DESTDIR/usr \
55 --libdir=$DESTDIR/usr/lib \
56 --includedir=$DESTDIR/usr/include \
57 --without-icu &&
58 EXPAT_INCLUDE=/usr/include \
59 EXPAT_LIBPATH=/usr/lib \
60 ./bjam \
61 --prefix=$DESTDIR/usr \
62 --exec-prefix=$DESTDIR/usr \
63 --libdir=$DESTDIR/usr/lib \
64 --includedir=$DESTDIR/usr/include \
65 --build-type=minimal \
66 install
68 # create the missing links to the shared libs
69 cd $DESTDIR/usr/lib
70 #for i in `ls *-mt.so`; do
71 # boost_tmp=`echo $i | sed s/-gcc.*-mt//g`
72 # boost_tmp_mt=`echo $i | sed s/-gcc.*-mt/-mt/g`
73 # ln -s $i $boost_tmp
74 # ln -s $i $boost_tmp_mt
75 #done
76 #for i in `ls *-mt.a`; do
77 # boost_tmp=`echo $i | sed s/-gcc.*-mt//g`
78 # boost_tmp_mt=`echo $i | sed s/-gcc.*-mt/-mt/g`
79 # ln -s $i $boost_tmp
80 # ln -s $i $boost_tmp_mt
81 #done
82 }
84 # Rules to gen a SliTaz package suitable for Tazpkg.
85 genpkg_rules()
86 {
87 mkdir -p $fs/usr
88 cp -a $install/usr/lib $fs/usr
89 cp -a $install/usr/include $fs/usr
90 for i in $RELOCATE_LIBS; do
91 rm -f $fs/usr/lib/*$i*
92 rm -r -f $fs/usr/include/boost/*$i*
93 done
94 # libboost-chrono{-dev}
95 rm $fs/usr/lib/libboost_chrono*
96 rm $fs/usr/include/boost/chrono*
97 rm -r $fs/usr/include/boost/chrono
98 }