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

31c087
DEPS="zlib-1.2.11 bzip2-1.0.6"
e14835
e14835
PK_DIRNAME="boost_1_61_0"
e14835
PK_ARCHIVE="$PK_DIRNAME.tar.bz2"
e14835
PK_URL="https://sourceforge.net/projects/boost/files/boost/1.61.0/$PK_ARCHIVE/download"
99b145
PK_LICENSE_FILES="LICENSE_1_0.txt"
e14835
99b145
source $INCLUDE_SCRIPT_DIR/inc-pkall-default.sh
e14835
ce0d6b
pkbuild() {
ce0d6b
    cd "$BUILD_PACKET_DIR/$PK_DIRNAME"
3b09af
    if ! check_packet_function $NAME build.configure; then
3b09af
        local LOCAL_PREFIX=$INSTALL_PACKET_DIR
cf8c28
        native_at_place ./bootstrap.sh --prefix=$LOCAL_PREFIX --without-libraries=python || return 1
3b09af
        set_done $NAME build.configure
3b09af
    fi
3b09af
    
3b09af
    local LOCAL_OPTIONS=
3b09af
    if [ "$PLATFORM" = "win" ]; then
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"
31c087
        echo "using gcc : win : $CXX : <cflags>$CFLAGS <cxxflags>$CXXFLAGS <linkflags>$LDFLAGS ;" > user-config.jam</linkflags></cxxflags></cflags>
3b09af
    fi
e0593e
    ./b2 -j${THREADS} $LOCAL_OPTIONS || return 1
ce0d6b
}
ce0d6b
e14835
pkinstall() {
ce0d6b
    cd "$BUILD_PACKET_DIR/$PK_DIRNAME"
3b09af
    local LOCAL_OPTIONS=
3b09af
    if [ "$PLATFORM" = "win" ]; then
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"
e14835
    fi
e0593e
    ./b2 $LOCAL_OPTIONS install || return 1
1d4d1c
    rm -rf "$INSTALL_RELEASE_PACKET_DIR/include"
1d4d1c
    remove_recursive "$INSTALL_RELEASE_PACKET_DIR/lib" *.a
e14835
}