wok-current view libboost-dev/receipt @ rev 13893

Add firefox-langpak-it (thanks ernia)
author Richard Dunbar <mojo@slitaz.org>
date Fri Jan 18 00:51:04 2013 +0000 (2013-01-18)
parents e9126ce12858
children b2a632fc9587
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"
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 libboost-math-dev libboost-date-time-dev"
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=$ARCH-pc-linux-gnu-
42 fi
44 cd $src
45 [ -s $SOURCES_REPOSITORY/boost_changeset_75540.u ] ||
46 wget -O $SOURCES_REPOSITORY/boost_changeset_75540.u --no-check-certificate \
47 'https://svn.boost.org/trac/boost/changeset/75540?format=diff&new=75540'
48 patch -p2 < $SOURCES_REPOSITORY/boost_changeset_75540.u || return 1
49 ./bootstrap.sh \
50 --prefix=$DESTDIR/usr \
51 --exec-prefix=$DESTDIR/usr \
52 --libdir=$DESTDIR/usr/lib \
53 --includedir=$DESTDIR/usr/include \
54 --without-icu &&
55 EXPAT_INCLUDE=/usr/include \
56 EXPAT_LIBPATH=/usr/lib \
57 ./bjam \
58 --prefix=$DESTDIR/usr \
59 --exec-prefix=$DESTDIR/usr \
60 --libdir=$DESTDIR/usr/lib \
61 --includedir=$DESTDIR/usr/include \
62 --build-type=minimal \
63 install
65 # create the missing links to the shared libs
66 cd $DESTDIR/usr/lib
67 for i in `ls *-mt.so`; do
68 boost_tmp=`echo $i | sed s/-gcc.*-mt//g`
69 boost_tmp_mt=`echo $i | sed s/-gcc.*-mt/-mt/g`
70 ln -s $i $boost_tmp
71 ln -s $i $boost_tmp_mt
72 done
73 for i in `ls *-mt.a`; do
74 boost_tmp=`echo $i | sed s/-gcc.*-mt//g`
75 boost_tmp_mt=`echo $i | sed s/-gcc.*-mt/-mt/g`
76 ln -s $i $boost_tmp
77 ln -s $i $boost_tmp_mt
78 done
79 }
81 # Rules to gen a SliTaz package suitable for Tazpkg.
82 genpkg_rules()
83 {
84 mkdir -p $fs/usr
85 cp -a $install/usr/lib $fs/usr
86 cp -a $install/usr/include $fs/usr
87 for i in $RELOCATE_LIBS; do
88 rm -f $fs/usr/lib/*$i*
89 rm -r -f $fs/usr/include/boost/*$i*
90 done
91 }