Blame docker-builder-data/build/script/packet/boost-1.61.0.sh

Ivan Mahonin e14835
DEPS=""
Ivan Mahonin e14835
Ivan Mahonin e14835
PK_DIRNAME="boost_1_61_0"
Ivan Mahonin e14835
PK_ARCHIVE="$PK_DIRNAME.tar.bz2"
Ivan Mahonin e14835
PK_URL="https://sourceforge.net/projects/boost/files/boost/1.61.0/$PK_ARCHIVE/download"
Ivan Mahonin 99b145
PK_LICENSE_FILES="LICENSE_1_0.txt"
Ivan Mahonin e14835
Ivan Mahonin 99b145
source $INCLUDE_SCRIPT_DIR/inc-pkall-default.sh
Ivan Mahonin e14835
Ivan Mahonin ce0d6b
pkbuild() {
Ivan Mahonin ce0d6b
    cd "$BUILD_PACKET_DIR/$PK_DIRNAME"
Ivan Mahonin 3b09af
    if ! check_packet_function $NAME build.configure; then
Ivan Mahonin 3b09af
        local LOCAL_PREFIX=$INSTALL_PACKET_DIR
Ivan Mahonin cf8c28
        native_at_place ./bootstrap.sh --prefix=$LOCAL_PREFIX --without-libraries=python || return 1
Ivan Mahonin 3b09af
        set_done $NAME build.configure
Ivan Mahonin 3b09af
    fi
Ivan Mahonin 3b09af
    
Ivan Mahonin 3b09af
    local LOCAL_OPTIONS=
Ivan Mahonin 3b09af
    if [ "$PLATFORM" = "win" ]; then
Ivan Mahonin e0593e
        LOCAL_OPTIONS="variant=release runtime-link=shared toolset=gcc-win binary-format=pe abi=ms target-os=windows --user-config=$BUILD_PACKET_DIR/$PK_DIRNAME/user-config.jam"
Ivan Mahonin 3b09af
        echo "using gcc : win : $CXX : cflags=$CFLAGS cxxflags=$CXXFLAGS linkflags=$LDFLAGS ;" > user-config.jam
Ivan Mahonin 3b09af
    fi
Ivan Mahonin e0593e
    ./b2 -j${THREADS} $LOCAL_OPTIONS || return 1
Ivan Mahonin ce0d6b
}
Ivan Mahonin ce0d6b
Ivan Mahonin e14835
pkinstall() {
Ivan Mahonin ce0d6b
    cd "$BUILD_PACKET_DIR/$PK_DIRNAME"
Ivan Mahonin 3b09af
    local LOCAL_OPTIONS=
Ivan Mahonin 3b09af
    if [ "$PLATFORM" = "win" ]; then
Ivan Mahonin e0593e
        LOCAL_OPTIONS="variant=release runtime-link=shared toolset=gcc-win binary-format=pe abi=ms target-os=windows --user-config=$BUILD_PACKET_DIR/$PK_DIRNAME/user-config.jam"
Ivan Mahonin e14835
    fi
Ivan Mahonin e0593e
    ./b2 $LOCAL_OPTIONS install || return 1
Ivan Mahonin 1d4d1c
    rm -rf "$INSTALL_RELEASE_PACKET_DIR/include"
Ivan Mahonin 1d4d1c
    remove_recursive "$INSTALL_RELEASE_PACKET_DIR/lib" *.a
Ivan Mahonin e14835
}