#!/bin/bash ## src2pkg script for: boost ## Auto-generated by src2pkg-1.9.4 ## src2pkg Copyright 2005-2008 Gilbert Ashley SOURCE_URL='http://dl.sourceforge.net/boost/boost_1_34_1.tar.gz' EXTRA_SOURCES='http://distro.ibiblio.org/pub/linux/distributions/amigolinux/download/Libs/boost-1.34.1/boost_bjam-gcc42.patch http://distro.ibiblio.org/pub/linux/distributions/amigolinux/download/Libs/boost-1.34.1/boost_1_34_1_function.patch.gz ' SOURCE_NAME='boost_1_34_1.tar.gz' ALT_NAME='boost' ALT_VERSION='1.34.1' #ARCH='x86_64' ARCH='i486' BUILD='1' PRE_FIX='usr' # Any extra options go here # EXTRA_CONFIGS='' DOCLIST='README LICENSE_1_0.txt people wiki' PATCHLIST='boost_1_34_1_function.patch.gz boost_bjam-gcc42.patch ' # Get the functions and configs . /usr/libexec/src2pkg/FUNCTIONS ; # do_all_processes can substitute these 16 steps: pre_process find_source make_dirs unpack_source fix_source_perms #configure_source #compile_source #fake_install # This is the python we build against: PYTHON_VERSION=$(python -c 'import sys; print sys.version[:3]') PYTHON_FLAGS="-sPYTHON_ROOT=/usr -sPYTHON_VERSION=$PYTHON_VERSION" cd $SRC_DIR ; # First build bjam, the boost build system: ( cd tools/jam/src ./build.sh gcc 2>&1 ) || exit $? BJAM=$(find tools/jam/src/ -name bjam -a -type f) # Create build subdirectory mkdir obj # Next, we build boost using bjam echo "Building boost now..." $BJAM \ release \ "-sBUILD=speed full single/multi" \ "-sNO_COMPRESSION=0" "-sZLIB_INCLUDE=/usr/include" "-sZLIB_LIBPATH=/usr/lib" \ "-sBZIP2_INCLUDE=/usr/include" "-sBZIP2_LIBPATH=/usr/lib" \ --toolset=gcc --layout=system --builddir=obj \ --prefix=/usr \ $PYTHON_FLAGS \ stage 2>&1 # And then install boost.. mkdir -p $PKG_DIR/usr/{bin,lib,include} echo "Installing boost now..." $BJAM \ release \ --toolset=gcc --layout=system --builddir=obj \ --prefix=$PKG_DIR/usr \ $PYTHON_FLAGS \ install 2>&1 # Install the bjam binary: cp -a $BJAM $PKG_DIR/usr/bin ## Move incorrectly installed include files if [ -d $PKG_DIR/usr/include/$NAME_$VERSION ]; then mv $PKG_DIR/usr/include/$NAME_$VERSION/boost $PKG_DIR/usr/include/ rmdir $PKG_DIR/usr/include/$NAME_$VERSION fi fix_pkg_perms strip_bins create_docs compress_man_pages make_description make_doinst make_package post_process # src2pkg - Copyright 2005-2008 Gilbert Ashley ## See the documentation for more help and examples. Below are some of # the most common Extras and Options for easy cut-and-paste use. # EXTRA_CONFIGS='' PRE_FIX='' DOCLIST='' # MAKE_COMMAND='' INSTALL_LINE='' # SHELL_INSTALL='YES' CORRECT_PERMS='NO' # When editing src2pkg scripts to add custom code, use these variables # to refer to the current directory, the sources or the package tree: # $CWD (current directory), $SRC_DIR (sources), $PKG_DIR (package tree)