wok diff libboost-dev/receipt @ rev 3886
perdition: ensure pidfile are valid
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Aug 12 18:13:06 2009 +0200 (2009-08-12) |
parents | 82fdbbcbcc41 |
children | 57b293b6e114 |
line diff
1.1 --- a/libboost-dev/receipt Tue Aug 12 17:05:59 2008 +0200 1.2 +++ b/libboost-dev/receipt Wed Aug 12 18:13:06 2009 +0200 1.3 @@ -10,8 +10,8 @@ 1.4 # to get a package with the slitaz version numbering 1.5 PACKAGE="libboost-dev" 1.6 SOURCE="boost" 1.7 -VERSION="1.35.0" 1.8 -WGET_SOURCE="boost_1_35_0" 1.9 +VERSION="1.39.0" 1.10 +WGET_SOURCE="boost_1_39_0" 1.11 1.12 CATEGORY="development" 1.13 SHORT_DESC="Free peer-reviewed portable C++ source libraries." 1.14 @@ -19,13 +19,13 @@ 1.15 1.16 TARBALL="$WGET_SOURCE.tar.bz2" 1.17 WEB_SITE="http://www.boost.org/" 1.18 -WGET_URL="http://garr.dl.sourceforge.net/sourceforge/boost/$TARBALL" 1.19 +WGET_URL="$SF_MIRROR/$SOURCE/$TARBALL" 1.20 1.21 -DEPENDS=" " 1.22 -BUILD_DEPENDS="python python-dev icu-dev " 1.23 +DEPENDS="" 1.24 +BUILD_DEPENDS="python python-dev expat-dev expat" 1.25 RELOCATE_LIBS="{ date_time filesystem graph iostreams \ 1.26 - program_options python regex serialization signal \ 1.27 - system test thread wave }" 1.28 + math program_options python regex serialization \ 1.29 + signal system test thread tr1 wave }" 1.30 1.31 1.32 # Rules to configure and make the package. 1.33 @@ -35,36 +35,50 @@ 1.34 # Have to add some params to get static libs compiled too 1.35 compile_rules() 1.36 { 1.37 - cd $src/.. 1.38 - if test -d $WGET_SOURCE ; then mv -f $WGET_SOURCE $SOURCE-$VERSION ; fi 1.39 + # Determine if TOOLPREFIX has been defined in tazwok.conf as it should 1.40 + if [ -z "$TOOLPREFIX" ] ; then 1.41 + # Provide a default TOOLPREFIX value 1.42 + TOOLPREFIX=i486-pc-linux-gnu- 1.43 + fi 1.44 + 1.45 + if [ -d $WGET_SOURCE ] ; then 1.46 + mv -f $WGET_SOURCE $src 1.47 + else 1.48 + rm -r -f $src/_pkg 1.49 + fi 1.50 1.51 cd $src 1.52 - TAZ_BJAM_CONF=" \ 1.53 - build-type=single \ 1.54 - variant=release \ 1.55 - threading=multi \ 1.56 - link=shared,static " 1.57 - 1.58 - ./configure \ 1.59 - --prefix=/usr \ 1.60 - --with-libraries=all 1.61 - 1.62 - make $TAZ_BJAM_CONF 1.63 - make $TAZ_BJAM_CONF \ 1.64 - PREFIX=$src/_pkg/usr \ 1.65 - EPREFIX=$src/_pkg/usr/lib \ 1.66 - LIBDIR=$src/_pkg/usr/lib \ 1.67 - INCLUDEDIR=$src/_pkg/usr/include install 1.68 - 1.69 - # move it to the standard include folder 1.70 - cd $src/_pkg/usr/include/$SOURCE* 1.71 - mv -f $SOURCE .. 1.72 - 1.73 + ./bootstrap.sh \ 1.74 + --prefix=$src/_pkg/usr \ 1.75 + --exec-prefix=$src/_pkg/usr \ 1.76 + --libdir=$src/_pkg/usr/lib \ 1.77 + --includedir=$src/_pkg/usr/include \ 1.78 + --without-icu && 1.79 + EXPAT_INCLUDE=/usr/include \ 1.80 + EXPAT_LIBPATH=/usr/lib \ 1.81 + ./bjam \ 1.82 + --prefix=$src/_pkg/usr \ 1.83 + --exec-prefix=$src/_pkg/usr \ 1.84 + --libdir=$src/_pkg/usr/lib \ 1.85 + --includedir=$src/_pkg/usr/include \ 1.86 + --build-type=minimal \ 1.87 + install 1.88 + mv $src/_pkg/usr/include/boost-1_39/boost $src/_pkg/usr/include && 1.89 + rm -r -f $src/_pkg/usr/include/boost-1_39 1.90 + 1.91 # create the missing links to the shared libs 1.92 cd $src/_pkg/usr/lib 1.93 - for i in `ls *mt.so`; do 1.94 - tmp=`echo $i | sed s/-gcc.*mt//g` 1.95 - ln -s $i $tmp 1.96 + for i in `ls *-mt.so`; do 1.97 + boost_tmp=`echo $i | sed s/-gcc.*-mt//g` 1.98 + boost_tmp_mt=`echo $i | sed s/-gcc.*-mt/-mt/g` 1.99 + ln -s $i $boost_tmp 1.100 + ln -s $i $boost_tmp_mt 1.101 + done 1.102 + for i in `ls *-mt.a`; do 1.103 + boost_tmp=`echo $i | sed s/-gcc.*-mt//g` 1.104 + boost_tmp_mt=`echo $i | sed s/-gcc.*-mt/-mt/g` 1.105 + ln -s $i $boost_tmp 1.106 + ln -s $i $boost_tmp_mt 1.107 done 1.108 } 1.109 1.110 @@ -77,6 +91,6 @@ 1.111 1.112 for i in $RELOCATE_LIBS; do 1.113 rm -f $fs/usr/lib/*$i* 1.114 - rm -rf $fs/usr/include/*$i* 1.115 + rm -r -f $fs/usr/include/boost/*$i* 1.116 done 1.117 }