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

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