Blame env-builder-data/build/script/packet/lensfun-0.3.95.sh

f08c03
DEPS_NATIVE="cmake-3.6.2"
f08c03
f08c03
PK_DIRNAME="lensfun-0.3.95"
f08c03
PK_ARCHIVE="$PK_DIRNAME.tar.gz"
f08c03
PK_URL="https://sourceforge.net/projects/lensfun/files/0.3.95/$PK_ARCHIVE"
f08c03
PK_LICENSE_FILES="README.md"
f08c03
f08c03
source $INCLUDE_SCRIPT_DIR/inc-pkall-default.sh
f08c03
f08c03
pkbuild() {
f08c03
    cd "$BUILD_PACKET_DIR/$PK_DIRNAME"
f08c03
    
f08c03
    if ! check_packet_function $NAME build.cunfigure; then
f08c03
        local LOCAL_OPTIONS=
f08c03
        if [ ! -z "$HOST" ]; then
f08c03
            LOCAL_OPTIONS="$LOCAL_OPTIONS -DGNU_HOST=$HOST"
f08c03
        fi
f08c03
        if [ "$PLATFORM" = "win" ]; then
f08c03
            LOCAL_OPTIONS="$LOCAL_OPTIONS -DCMAKE_TOOLCHAIN_FILE=mingw_cross_toolchain.cmake"
f08c03
        fi
f08c03
        cmake \
f08c03
           -DCMAKE_INSTALL_PREFIX=$INSTALL_PACKET_DIR \
f08c03
           $LOCAL_OPTIONS . \
f08c03
         || return 1
f08c03
        set_done $NAME build.cunfigure
f08c03
    fi
f08c03
    
f08c03
    make -j${THREADS} || return 1
f08c03
}