wok-current view libboost-dev/receipt @ rev 15324
Up tcpdump (4.4.0)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Sep 27 21:57:38 2013 +0000 (2013-09-27) |
parents | b2a632fc9587 |
children | 6c3718ca17b6 |
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 EXTRA_SOURCE_FILES="boost_changeset_75540.u"
22 WEB_SITE="http://www.boost.org/"
23 WGET_URL="$SF_MIRROR/$SOURCE/$TARBALL"
25 DEPENDS="gcc-lib-base libboost-math-dev libboost-date-time-dev"
26 BUILD_DEPENDS="python python-dev expat-dev expat zlib-dev bzip2-dev"
27 RELOCATE_LIBS="{ date_time filesystem graph iostreams \
28 math program_options python regex serialization \
29 signal system test thread tr1 wave }"
32 # Rules to configure and make the package.
33 # Uses boost:build building tool for the compilation:
34 # Doesn't use DESTDIR.
35 # Doesn't recognize the $CONFIGURE_ARGS, gives an error back
36 # Have to add some params to get static libs compiled too
37 compile_rules()
38 {
39 # Determine if TOOLPREFIX has been defined in tazwok.conf as it should
40 if [ -z "$TOOLPREFIX" ] ; then
41 # Provide a default TOOLPREFIX value
42 TOOLPREFIX=$ARCH-pc-linux-gnu-
43 fi
45 cd $src
46 [ -s $SOURCES_REPOSITORY/boost_changeset_75540.u ] ||
47 wget -O $SOURCES_REPOSITORY/boost_changeset_75540.u --no-check-certificate \
48 'https://svn.boost.org/trac/boost/changeset/75540?format=diff&new=75540'
49 patch -p2 < $SOURCES_REPOSITORY/boost_changeset_75540.u || return 1
50 ./bootstrap.sh \
51 --prefix=$DESTDIR/usr \
52 --exec-prefix=$DESTDIR/usr \
53 --libdir=$DESTDIR/usr/lib \
54 --includedir=$DESTDIR/usr/include \
55 --without-icu &&
56 EXPAT_INCLUDE=/usr/include \
57 EXPAT_LIBPATH=/usr/lib \
58 ./bjam \
59 --prefix=$DESTDIR/usr \
60 --exec-prefix=$DESTDIR/usr \
61 --libdir=$DESTDIR/usr/lib \
62 --includedir=$DESTDIR/usr/include \
63 --build-type=minimal \
64 install
66 # create the missing links to the shared libs
67 cd $DESTDIR/usr/lib
68 #for i in `ls *-mt.so`; do
69 # boost_tmp=`echo $i | sed s/-gcc.*-mt//g`
70 # boost_tmp_mt=`echo $i | sed s/-gcc.*-mt/-mt/g`
71 # ln -s $i $boost_tmp
72 # ln -s $i $boost_tmp_mt
73 #done
74 #for i in `ls *-mt.a`; do
75 # boost_tmp=`echo $i | sed s/-gcc.*-mt//g`
76 # boost_tmp_mt=`echo $i | sed s/-gcc.*-mt/-mt/g`
77 # ln -s $i $boost_tmp
78 # ln -s $i $boost_tmp_mt
79 #done
80 }
82 # Rules to gen a SliTaz package suitable for Tazpkg.
83 genpkg_rules()
84 {
85 mkdir -p $fs/usr
86 cp -a $install/usr/lib $fs/usr
87 cp -a $install/usr/include $fs/usr
88 for i in $RELOCATE_LIBS; do
89 rm -f $fs/usr/lib/*$i*
90 rm -r -f $fs/usr/include/boost/*$i*
91 done
92 }