wok view libboost-dev/receipt @ rev 8028

up: xfdesktop* (4.8.0)
author Eric Joseph-Alexandre <erjo@slitaz.org>
date Thu Jan 20 02:18:47 2011 +0100 (2011-01-20)
parents bcfa054d147e
children 99ced85ef4cb
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 if [ -d $WGET_SOURCE ] ; then
45 mv -f $WGET_SOURCE $src
46 else
47 rm -r -f $src/_pkg
48 fi
50 cd $src
51 ./bootstrap.sh \
52 --prefix=$src/_pkg/usr \
53 --exec-prefix=$src/_pkg/usr \
54 --libdir=$src/_pkg/usr/lib \
55 --includedir=$src/_pkg/usr/include \
56 --without-icu &&
57 EXPAT_INCLUDE=/usr/include \
58 EXPAT_LIBPATH=/usr/lib \
59 ./bjam \
60 --prefix=$src/_pkg/usr \
61 --exec-prefix=$src/_pkg/usr \
62 --libdir=$src/_pkg/usr/lib \
63 --includedir=$src/_pkg/usr/include \
64 --build-type=minimal \
65 install
66 mv $src/_pkg/usr/include/boost-1_45/boost $src/_pkg/usr/include &&
67 rm -r -f $src/_pkg/usr/include/boost-1_45
69 # create the missing links to the shared libs
70 cd $src/_pkg/usr/lib
71 for i in `ls *-mt.so`; do
72 boost_tmp=`echo $i | sed s/-gcc.*-mt//g`
73 boost_tmp_mt=`echo $i | sed s/-gcc.*-mt/-mt/g`
74 ln -s $i $boost_tmp
75 ln -s $i $boost_tmp_mt
76 done
77 for i in `ls *-mt.a`; do
78 boost_tmp=`echo $i | sed s/-gcc.*-mt//g`
79 boost_tmp_mt=`echo $i | sed s/-gcc.*-mt/-mt/g`
80 ln -s $i $boost_tmp
81 ln -s $i $boost_tmp_mt
82 done
83 }
85 # Rules to gen a SliTaz package suitable for Tazpkg.
86 genpkg_rules()
87 {
88 mkdir -p $fs/usr
89 cp -a $_pkg/usr/lib $fs/usr
90 cp -a $_pkg/usr/include $fs/usr
92 for i in $RELOCATE_LIBS; do
93 rm -f $fs/usr/lib/*$i*
94 rm -r -f $fs/usr/include/boost/*$i*
95 done
96 }