Blame docker-builder-data/build/script/packet/openblas-master.sh

e14835
DEPS=""
e14835
e14835
PK_DIRNAME="OpenBLAS"
e14835
PK_URL="https://github.com/xianyi/$PK_DIRNAME.git"
99b145
PK_LICENSE_FILES="LICENSE CONTRIBUTORS.md BACKERS.md"
e14835
99b145
source $INCLUDE_SCRIPT_DIR/inc-pkall-git.sh
e14835
e14835
pkbuild() {
e14835
    cd "$BUILD_PACKET_DIR/$PK_DIRNAME"
cf8c28
    
cf8c28
    local LOCAL_BINARY_OPTION=
cf8c28
    if [ "$ARCH" = "32" ]; then
cf8c28
        LOCAL_BINARY_OPTION="BINARY=$ARCH"
10e43d
    fi
cf8c28
cf8c28
rm -f Makefile.rule
cf8c28
cat > Makefile.rule << EOF
cf8c28
PREFIX                     = ${INSTALL_PACKET_DIR}
cf8c28
VERSION                    = 0.2.20.dev
cf8c28
CC                         = ${CC:-gcc}
cf8c28
FC                         = ${FORTRAN:-gfortran}
cf8c28
TARGET                     = generic
cf8c28
${LOCAL_BINARY_OPTION}
cf8c28
HOSTCC                     = PATH=${INITIAL_PATH} /usr/bin/gcc
cf8c28
USE_THREAD                 = 1
cf8c28
NUM_THREADS                = 24
cf8c28
BUILD_LAPACK_DEPRECATED    = 1
cf8c28
NO_WARMUP                  = 1
cf8c28
NO_AFFINITY                = 1
cf8c28
COMMON_PROF                = -pg
cf8c28
EOF
cf8c28
cf8c28
    if ! make -j${THREADS}; then
e14835
        return 1
e14835
    fi
e14835
}
e14835
e14835
pkinstall() {
e14835
    cd "$BUILD_PACKET_DIR/$PK_DIRNAME"
e14835
    if ! PREFIX=${INSTALL_PACKET_DIR} make install; then
e14835
        return 1
e14835
    fi
e14835
}