wok-6.x annotate libboost-dev/receipt @ rev 7883

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