wok view libboost-dev/receipt @ rev 15800

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