wok-current view libboost-dev/receipt @ rev 2083
Add diffutils
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Jan 27 10:29:56 2009 +0000 (2009-01-27) |
parents | ff3a4d06671b |
children | 5fc24facdb9f |
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.35.0"
14 WGET_SOURCE="boost_1_35_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="http://garr.dl.sourceforge.net/sourceforge/boost/$TARBALL"
24 DEPENDS=" "
25 BUILD_DEPENDS="python python-dev icu-dev "
26 RELOCATE_LIBS="{ date_time filesystem graph iostreams \
27 program_options python regex serialization signal \
28 system test thread 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 cd $src/..
39 if test -d $WGET_SOURCE ; then mv -f $WGET_SOURCE $SOURCE-$VERSION ; fi
41 cd $src
42 TAZ_BJAM_CONF=" \
43 build-type=single \
44 variant=release \
45 threading=multi \
46 link=shared,static "
48 ./configure \
49 --prefix=/usr \
50 --with-libraries=all
52 make $TAZ_BJAM_CONF
53 make $TAZ_BJAM_CONF \
54 PREFIX=$src/_pkg/usr \
55 EPREFIX=$src/_pkg/usr/lib \
56 LIBDIR=$src/_pkg/usr/lib \
57 INCLUDEDIR=$src/_pkg/usr/include install
59 # move it to the standard include folder
60 cd $src/_pkg/usr/include/$SOURCE*
61 mv -f $SOURCE ..
63 # create the missing links to the shared libs
64 cd $src/_pkg/usr/lib
65 for i in `ls *mt.so`; do
66 tmp=`echo $i | sed s/-gcc.*mt//g`
67 ln -s $i $tmp
68 done
69 }
71 # Rules to gen a SliTaz package suitable for Tazpkg.
72 genpkg_rules()
73 {
74 mkdir -p $fs/usr
75 cp -a $_pkg/usr/lib $fs/usr
76 cp -a $_pkg/usr/include $fs/usr
78 for i in $RELOCATE_LIBS; do
79 rm -f $fs/usr/lib/*$i*
80 rm -rf $fs/usr/include/*$i*
81 done
82 }