Blame docker-builder-data/build/script/packet/blas-3.7.0.sh

6675b2
DEPS=""
6675b2
6675b2
PK_DIRNAME="BLAS-3.7.0"
6675b2
PK_ARCHIVE="blas-3.7.0.tgz"
6675b2
PK_URL="http://www.netlib.org/blas/$PK_ARCHIVE"
6675b2
99b145
source $INCLUDE_SCRIPT_DIR/inc-pkall-default.sh
6675b2
6675b2
pkbuild() {
6675b2
    cd "$BUILD_PACKET_DIR/$PK_DIRNAME"
cf8c28
cf8c28
rm -f make.inc
cf8c28
cat > make.inc << EOF
cf8c28
SHELL     = /bin/sh
cf8c28
FORTRAN   = ${FORTRAN:-gfortran}
cf8c28
OPTS      = -O3
cf8c28
DRVOPTS   = \$(OPTS)
cf8c28
NOOPT     =
cf8c28
LOADER    = \$(FORTRAN)
cf8c28
LOADOPTS  =
cf8c28
ARCH      = ${AR:-ar}
cf8c28
ARCHFLAGS = cr
cf8c28
RANLIB    = ${RANLIB:-ranlib}
cf8c28
BLASLIB   = libblas.a
cf8c28
EOF
cf8c28
		
cf8c28
	make || return 1
6675b2
}
6675b2
6675b2
pkinstall() {
6675b2
	mkdir -p "$INSTALL_PACKET_DIR/lib"
cf8c28
	cp --remove-destination -r "$BUILD_PACKET_DIR/$PK_DIRNAME/libblas.a" "$INSTALL_PACKET_DIR/lib/" || return 1
6675b2
}