wok view libboost-dev/receipt @ rev 10684

vidalia: update bdeps
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri May 27 16:47:30 2011 +0200 (2011-05-27)
parents d80becd997d7
children 53223f0259b4
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.45.0"
14 WGET_SOURCE="boost_1_45_0"
16 CATEGORY="development"
17 SHORT_DESC="Free peer-reviewed portable C++ source libraries."
18 MAINTAINER="chadi.elahmad@gmail.com"
20 TARBALL="$WGET_SOURCE.tar.bz2"
21 WEB_SITE="http://www.boost.org/"
22 WGET_URL="$SF_MIRROR/$SOURCE/$TARBALL"
24 DEPENDS="gcc-lib-base"
25 BUILD_DEPENDS="python python-dev expat-dev expat zlib-dev bzip2-dev"
26 RELOCATE_LIBS="{ date_time filesystem graph iostreams \
27 math program_options python regex serialization \
28 signal system test thread tr1 wave }"
31 # Rules to configure and make the package.
32 # Uses boost:build building tool for the compilation:
33 # Doesn't use DESTDIR.
34 # Doesn't recognize the $CONFIGURE_ARGS, gives an error back
35 # Have to add some params to get static libs compiled too
36 compile_rules()
37 {
38 # Determine if TOOLPREFIX has been defined in tazwok.conf as it should
39 if [ -z "$TOOLPREFIX" ] ; then
40 # Provide a default TOOLPREFIX value
41 TOOLPREFIX=i486-pc-linux-gnu-
42 fi
44 cd $src
45 ./bootstrap.sh \
46 --prefix=$DESTDIR/usr \
47 --exec-prefix=$DESTDIR/usr \
48 --libdir=$DESTDIR/usr/lib \
49 --includedir=$DESTDIR/usr/include \
50 --without-icu &&
51 EXPAT_INCLUDE=/usr/include \
52 EXPAT_LIBPATH=/usr/lib \
53 ./bjam \
54 --prefix=$DESTDIR/usr \
55 --exec-prefix=$DESTDIR/usr \
56 --libdir=$DESTDIR/usr/lib \
57 --includedir=$DESTDIR/usr/include \
58 --build-type=minimal \
59 install
61 # create the missing links to the shared libs
62 cd $DESTDIR/usr/lib
63 for i in `ls *-mt.so`; do
64 boost_tmp=`echo $i | sed s/-gcc.*-mt//g`
65 boost_tmp_mt=`echo $i | sed s/-gcc.*-mt/-mt/g`
66 ln -s $i $boost_tmp
67 ln -s $i $boost_tmp_mt
68 done
69 for i in `ls *-mt.a`; 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 }
77 # Rules to gen a SliTaz package suitable for Tazpkg.
78 genpkg_rules()
79 {
80 mkdir -p $fs/usr
81 cp -a $_pkg/usr/lib $fs/usr
82 cp -a $_pkg/usr/include $fs/usr
83 for i in $RELOCATE_LIBS; do
84 rm -f $fs/usr/lib/*$i*
85 rm -r -f $fs/usr/include/boost/*$i*
86 done
87 }