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

libboost-dev: typo in build deps
author Christophe Lincoln <pankso@slitaz.org>
date Mon Aug 04 20:29:04 2008 +0200 (2008-08-04)
parents 8c8d1dfb63df
children 82fdbbcbcc41
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"
pascal@1136 13 VERSION="1.35.0"
pascal@1136 14 WGET_SOURCE="boost_1_35_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/"
pascal@1136 22 WGET_URL="http://garr.dl.sourceforge.net/sourceforge/boost/$TARBALL"
pascal@1136 23
pascal@1136 24 DEPENDS=" "
pankso@1190 25 BUILD_DEPENDS="python python-dev icu-dev "
pascal@1136 26 RELOCATE_LIBS="{ date_time filesystem graph iostreams \
pascal@1136 27 program_options python regex serialization signal \
pascal@1136 28 system test thread 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 {
pascal@1136 38 cd $src/..
pascal@1136 39 if test -d $WGET_SOURCE ; then mv -f $WGET_SOURCE $SOURCE-$VERSION ; fi
pascal@1136 40
pascal@1136 41 cd $src
pascal@1136 42 TAZ_BJAM_CONF=" \
pascal@1136 43 --build-type=single \
pascal@1136 44 variant=release \
pascal@1136 45 threading=multi \
pascal@1136 46 link=shared,static "
pascal@1136 47
pascal@1136 48 ./configure \
pascal@1136 49 --prefix=/usr \
pascal@1136 50 --with-libraries=all
pascal@1136 51
pascal@1136 52 make $TAZ_BJAM_CONF
pascal@1136 53 make $TAZ_BJAM_CONF \
pascal@1136 54 PREFIX=$src/_pkg/usr \
pascal@1136 55 EPREFIX=$src/_pkg/usr/lib \
pascal@1136 56 LIBDIR=$src/_pkg/usr/lib \
pascal@1136 57 INCLUDEDIR=$src/_pkg/usr/include install
pascal@1136 58
pascal@1136 59 # move it to the standard include folder
pascal@1136 60 cd $src/_pkg/usr/include/$SOURCE*
pascal@1136 61 mv -f $SOURCE ..
pascal@1136 62
pascal@1136 63 # create the missing links to the shared libs
pascal@1136 64 cd $src/_pkg/usr/lib
pascal@1136 65 for i in `ls *mt.so`; do
pascal@1136 66 tmp=`echo $i | sed s/-gcc.*mt//g`
pascal@1136 67 ln -s $i $tmp
pascal@1136 68 done
pascal@1136 69 }
pascal@1136 70
pascal@1136 71 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@1136 72 genpkg_rules()
pascal@1136 73 {
pascal@1136 74 mkdir -p $fs/usr
pascal@1136 75 cp -a $_pkg/usr/lib $fs/usr
pascal@1136 76 cp -a $_pkg/usr/include $fs/usr
pascal@1136 77
pascal@1136 78 for i in $RELOCATE_LIBS; do
pascal@1136 79 rm -f $fs/usr/lib/*$i*
pascal@1136 80 rm -rf $fs/usr/include/*$i*
pascal@1136 81 done
pascal@1136 82 }