wok-4.x diff libboost-dev/receipt @ rev 1155

Add openldap
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Jul 27 09:18:17 2008 +0000 (2008-07-27)
parents
children ff3a4d06671b
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/libboost-dev/receipt	Sun Jul 27 09:18:17 2008 +0000
     1.3 @@ -0,0 +1,82 @@
     1.4 +# SliTaz package receipt.
     1.5 +
     1.6 +# Boost is a set of two types of libraries. Most of them are just
     1.7 +# headers with inline functions, these are included in this package
     1.8 +# named libboost-dev. Some few set of libraries require build and 
     1.9 +# installation steps. These will be relocated and have their own two 
    1.10 +# packages : libboost-name and libboost-name-dev.
    1.11 +
    1.12 +# We have to do it this way because of the underscores
    1.13 +# to get a package with the slitaz version numbering
    1.14 +PACKAGE="libboost-dev"
    1.15 +SOURCE="boost"
    1.16 +VERSION="1.35.0"
    1.17 +WGET_SOURCE="boost_1_35_0"
    1.18 +
    1.19 +CATEGORY="development"
    1.20 +SHORT_DESC="Free peer-reviewed portable C++ source libraries."
    1.21 +MAINTAINER="chadi.elahmad@gmail.com"
    1.22 +
    1.23 +TARBALL="$WGET_SOURCE.tar.bz2"
    1.24 +WEB_SITE="http://www.boost.org/"
    1.25 +WGET_URL="http://garr.dl.sourceforge.net/sourceforge/boost/$TARBALL"
    1.26 +
    1.27 +DEPENDS=" "
    1.28 +BUILD_DEPENDS="python python-dev libicu-dev "
    1.29 +RELOCATE_LIBS="{ date_time filesystem graph iostreams \
    1.30 +	program_options python regex serialization signal \
    1.31 +	system test thread wave }"
    1.32 +
    1.33 +
    1.34 +# Rules to configure and make the package.
    1.35 +# Uses boost:build building tool for the compilation:
    1.36 +#   Doesn't use DESTDIR.
    1.37 +#   Doesn't recognize the $CONFIGURE_ARGS, gives an error back
    1.38 +#   Have to add some params to get static libs compiled too
    1.39 +compile_rules()
    1.40 +{
    1.41 +	cd $src/..
    1.42 +	if test -d $WGET_SOURCE ; then mv -f $WGET_SOURCE $SOURCE-$VERSION ; fi
    1.43 +
    1.44 +	cd $src
    1.45 +	TAZ_BJAM_CONF=" \
    1.46 +		--build-type=single \
    1.47 +		variant=release \
    1.48 +		threading=multi \
    1.49 +		link=shared,static "
    1.50 +
    1.51 +	./configure \
    1.52 +		--prefix=/usr \
    1.53 +		--with-libraries=all
    1.54 +
    1.55 +	make $TAZ_BJAM_CONF
    1.56 +	make $TAZ_BJAM_CONF \
    1.57 +		PREFIX=$src/_pkg/usr \
    1.58 +		EPREFIX=$src/_pkg/usr/lib \
    1.59 +		LIBDIR=$src/_pkg/usr/lib \
    1.60 +		INCLUDEDIR=$src/_pkg/usr/include install
    1.61 +
    1.62 +	# move it to the standard include folder
    1.63 +	cd $src/_pkg/usr/include/$SOURCE*
    1.64 +	mv -f $SOURCE ..
    1.65 +
    1.66 +	# create the missing links to the shared libs
    1.67 +	cd $src/_pkg/usr/lib
    1.68 +	for i in `ls *mt.so`; do
    1.69 +	   tmp=`echo $i | sed s/-gcc.*mt//g` 
    1.70 +	   ln -s $i $tmp
    1.71 +	done
    1.72 +}
    1.73 +
    1.74 +# Rules to gen a SliTaz package suitable for Tazpkg.
    1.75 +genpkg_rules()
    1.76 +{
    1.77 +	mkdir -p $fs/usr
    1.78 +	cp -a $_pkg/usr/lib $fs/usr
    1.79 +	cp -a $_pkg/usr/include $fs/usr
    1.80 +
    1.81 +	for i in $RELOCATE_LIBS; do
    1.82 +	   rm -f $fs/usr/lib/*$i*
    1.83 +	   rm -rf $fs/usr/include/*$i*
    1.84 +	done
    1.85 +}