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

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