wok annotate libboost-dev/receipt @ rev 12652

codeblocks, compiz-core: add LDFLAGS for Binutils 2.22
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Apr 30 09:47:26 2012 +0200 (2012-04-30)
parents d80becd997d7
children 53223f0259b4
rev   line source
pascal@1136 1 # SliTaz package receipt.
pascal@1136 2
pascal@1136 3 # Boost is a set of two types of libraries. Most of them are just
pascal@1136 4 # headers with inline functions, these are included in this package
pascal@1136 5 # named libboost-dev. Some few set of libraries require build and
pascal@1136 6 # installation steps. These will be relocated and have their own two
pascal@1136 7 # packages : libboost-name and libboost-name-dev.
pascal@1136 8
pascal@1136 9 # We have to do it this way because of the underscores
pascal@1136 10 # to get a package with the slitaz version numbering
pascal@1136 11 PACKAGE="libboost-dev"
pascal@1136 12 SOURCE="boost"
slaxemulator@7471 13 VERSION="1.45.0"
slaxemulator@7471 14 WGET_SOURCE="boost_1_45_0"
pascal@1136 15
pascal@1136 16 CATEGORY="development"
pascal@1136 17 SHORT_DESC="Free peer-reviewed portable C++ source libraries."
pascal@1136 18 MAINTAINER="chadi.elahmad@gmail.com"
pascal@1136 19
pascal@1136 20 TARBALL="$WGET_SOURCE.tar.bz2"
pascal@1136 21 WEB_SITE="http://www.boost.org/"
rcx@3702 22 WGET_URL="$SF_MIRROR/$SOURCE/$TARBALL"
pascal@1136 23
pascal@5003 24 DEPENDS="gcc-lib-base"
slaxemulator@6725 25 BUILD_DEPENDS="python python-dev expat-dev expat zlib-dev bzip2-dev"
pascal@1136 26 RELOCATE_LIBS="{ date_time filesystem graph iostreams \
rcx@3702 27 math program_options python regex serialization \
rcx@3702 28 signal system test thread tr1 wave }"
pascal@1136 29
pascal@1136 30
pascal@1136 31 # Rules to configure and make the package.
pascal@1136 32 # Uses boost:build building tool for the compilation:
pascal@1136 33 # Doesn't use DESTDIR.
pascal@1136 34 # Doesn't recognize the $CONFIGURE_ARGS, gives an error back
pascal@1136 35 # Have to add some params to get static libs compiled too
pascal@1136 36 compile_rules()
pascal@1136 37 {
rcx@3702 38 # Determine if TOOLPREFIX has been defined in tazwok.conf as it should
rcx@3702 39 if [ -z "$TOOLPREFIX" ] ; then
rcx@3702 40 # Provide a default TOOLPREFIX value
rcx@3702 41 TOOLPREFIX=i486-pc-linux-gnu-
rcx@3702 42 fi
rcx@3702 43
pascal@1136 44 cd $src
rcx@3702 45 ./bootstrap.sh \
gokhlayeh@8305 46 --prefix=$DESTDIR/usr \
gokhlayeh@8305 47 --exec-prefix=$DESTDIR/usr \
gokhlayeh@8305 48 --libdir=$DESTDIR/usr/lib \
gokhlayeh@8305 49 --includedir=$DESTDIR/usr/include \
rcx@3702 50 --without-icu &&
rcx@3702 51 EXPAT_INCLUDE=/usr/include \
rcx@3702 52 EXPAT_LIBPATH=/usr/lib \
rcx@3702 53 ./bjam \
gokhlayeh@8305 54 --prefix=$DESTDIR/usr \
gokhlayeh@8305 55 --exec-prefix=$DESTDIR/usr \
gokhlayeh@8305 56 --libdir=$DESTDIR/usr/lib \
gokhlayeh@8305 57 --includedir=$DESTDIR/usr/include \
rcx@3702 58 --build-type=minimal \
rcx@3702 59 install
rcx@3702 60
pascal@1136 61 # create the missing links to the shared libs
gokhlayeh@8305 62 cd $DESTDIR/usr/lib
rcx@3702 63 for i in `ls *-mt.so`; do
rcx@3702 64 boost_tmp=`echo $i | sed s/-gcc.*-mt//g`
rcx@3702 65 boost_tmp_mt=`echo $i | sed s/-gcc.*-mt/-mt/g`
rcx@3702 66 ln -s $i $boost_tmp
rcx@3702 67 ln -s $i $boost_tmp_mt
rcx@3702 68 done
rcx@3702 69 for i in `ls *-mt.a`; do
rcx@3702 70 boost_tmp=`echo $i | sed s/-gcc.*-mt//g`
rcx@3702 71 boost_tmp_mt=`echo $i | sed s/-gcc.*-mt/-mt/g`
rcx@3702 72 ln -s $i $boost_tmp
rcx@3702 73 ln -s $i $boost_tmp_mt
pascal@1136 74 done
pascal@1136 75 }
pascal@1136 76
pascal@1136 77 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@1136 78 genpkg_rules()
pascal@1136 79 {
pascal@1136 80 mkdir -p $fs/usr
pascal@1136 81 cp -a $_pkg/usr/lib $fs/usr
pascal@1136 82 cp -a $_pkg/usr/include $fs/usr
pascal@1136 83 for i in $RELOCATE_LIBS; do
gokhlayeh@8305 84 rm -f $fs/usr/lib/*$i*
gokhlayeh@8305 85 rm -r -f $fs/usr/include/boost/*$i*
pascal@1136 86 done
pascal@1136 87 }