Blame docker-builder-data/build/script/packet/freeglut-3.0.0.sh

Ivan Mahonin 3b09af
DEPS_NATIVE="cmake-3.6.2"
Ivan Mahonin 69b66f
Ivan Mahonin 69b66f
PK_DIRNAME="freeglut-3.0.0"
Ivan Mahonin 69b66f
PK_ARCHIVE="$PK_DIRNAME.tar.gz"
Ivan Mahonin 69b66f
PK_URL="http://prdownloads.sourceforge.net/freeglut/$PK_ARCHIVE?download"
Ivan Mahonin 69b66f
Ivan Mahonin 99b145
source $INCLUDE_SCRIPT_DIR/inc-pkall-default.sh
Ivan Mahonin 69b66f
Ivan Mahonin 69b66f
pkbuild() {
Ivan Mahonin 69b66f
    cd "$BUILD_PACKET_DIR/$PK_DIRNAME"
Ivan Mahonin 69b66f
    
Ivan Mahonin 69b66f
	if ! check_packet_function $NAME build.cunfigure; then
Ivan Mahonin cf8c28
        local LOCAL_OPTIONS=
Ivan Mahonin cf8c28
        if [ ! -z "$HOST" ]; then
Ivan Mahonin cf8c28
            LOCAL_OPTIONS="$LOCAL_OPTIONS -DGNU_HOST=$HOST"
Ivan Mahonin cf8c28
        fi
Ivan Mahonin cf8c28
        if [ "$PLATFORM" = "win" ]; then
Ivan Mahonin cf8c28
            LOCAL_OPTIONS="$LOCAL_OPTIONS -DCMAKE_TOOLCHAIN_FILE=mingw_cross_toolchain.cmake"
Ivan Mahonin cf8c28
        fi
Ivan Mahonin cf8c28
    	cmake \
Ivan Mahonin cf8c28
    	   -DCMAKE_INSTALL_PREFIX=$INSTALL_PACKET_DIR \
Ivan Mahonin cf8c28
    	   $LOCAL_OPTIONS . \
Ivan Mahonin cf8c28
    	 || return 1
Ivan Mahonin 69b66f
		set_done $NAME build.cunfigure
Ivan Mahonin 69b66f
    fi
Ivan Mahonin 69b66f
    
Ivan Mahonin cf8c28
    make -j${THREADS} || return 1
Ivan Mahonin 69b66f
}
Ivan Mahonin 69b66f