diff --git a/docker-builder-data/build/script/packet/blas-3.7.0.sh b/docker-builder-data/build/script/packet/blas-3.7.0.sh new file mode 100644 index 0000000..20bbd63 --- /dev/null +++ b/docker-builder-data/build/script/packet/blas-3.7.0.sh @@ -0,0 +1,22 @@ +DEPS="" + +PK_DIRNAME="BLAS-3.7.0" +PK_ARCHIVE="blas-3.7.0.tgz" +PK_URL="http://www.netlib.org/blas/$PK_ARCHIVE" + +source $INCLUDE_SCRIPT_DIR/inc-pkallunpack-default.sh +source $INCLUDE_SCRIPT_DIR/inc-pkinstall_release-default.sh + +pkbuild() { + cd "$BUILD_PACKET_DIR/$PK_DIRNAME" + if ! make; then + return 1 + fi +} + +pkinstall() { + mkdir -p "$INSTALL_PACKET_DIR/lib" + if ! cp --remove-destination -r "$BUILD_PACKET_DIR/$PK_DIRNAME/blas_LINUX.a" "$INSTALL_PACKET_DIR/lib/libblas.a"; then + return 1 + fi +} diff --git a/docker-builder-data/build/script/packet/opentoonz-master.sh b/docker-builder-data/build/script/packet/opentoonz-master.sh index 1123e33..7899c4e 100644 --- a/docker-builder-data/build/script/packet/opentoonz-master.sh +++ b/docker-builder-data/build/script/packet/opentoonz-master.sh @@ -1,4 +1,4 @@ -DEPS="jpeg-9b png-1.6.26 lz4-master glew-2.0.0 usb-1.0.20 sdl-2.0.5 superlu-4.3 cmake-3.6.2 freeglut-3.0.0 openblas-master boost-1.61.0 qt-5.7" +DEPS="jpeg-9b png-1.6.26 lz4-master glew-2.0.0 usb-1.0.20 sdl-2.0.5 superlu-5.2.1 cmake-3.6.2 freeglut-3.0.0 openblas-master boost-1.61.0 qt-5.7" PK_VERSION="1.1.2" PK_DIRNAME="opentoonz" @@ -28,8 +28,9 @@ pkbuild() { set_done $NAME build.libtiff fi - cp --remove-destination "$ENVDEPS_PACKET_DIR/lib/libsuperlu_4.3.a" "$BUILD_PACKET_DIR/$PK_DIRNAME/thirdparty/superlu/libsuperlu_4.1.a" || return 1 - cp --remove-destination $ENVDEPS_PACKET_DIR/include/superlu-4.3/* "$BUILD_PACKET_DIR/$PK_DIRNAME/thirdparty/superlu/SuperLU_4.1/include/" || return 1 + cp --remove-destination "$ENVDEPS_PACKET_DIR/lib/libsuperlu_5.2.1.a" "$BUILD_PACKET_DIR/$PK_DIRNAME/thirdparty/superlu/libsuperlu_4.1.a" || return 1 + rm -rf $BUILD_PACKET_DIR/$PK_DIRNAME/thirdparty/superlu/SuperLU_4.1/include/* + cp --remove-destination $ENVDEPS_PACKET_DIR/include/superlu-5.2.1/* "$BUILD_PACKET_DIR/$PK_DIRNAME/thirdparty/superlu/SuperLU_4.1/include/" || return 1 mkdir -p "$BUILD_PACKET_DIR/$PK_DIRNAME/toonz/build" cd "$BUILD_PACKET_DIR/$PK_DIRNAME/toonz/build" diff --git a/docker-builder-data/build/script/packet/superlu-5.2.1.files/make.inc b/docker-builder-data/build/script/packet/superlu-5.2.1.files/make.inc new file mode 100644 index 0000000..bdcb4d9 --- /dev/null +++ b/docker-builder-data/build/script/packet/superlu-5.2.1.files/make.inc @@ -0,0 +1,65 @@ +############################################################################ +# +# Program: SuperLU +# +# Module: make.inc +# +# Purpose: Top-level Definitions +# +# Creation date: October 2, 1995 +# +# Modified: February 4, 1997 Version 1.0 +# November 15, 1997 Version 1.1 +# September 1, 1999 Version 2.0 +# +############################################################################ +# +# The machine (platform) identifier to append to the library names +# +PLAT = _linux + +# +# The name of the libraries to be created/linked to +# +SuperLUroot = $(HOME)/SuperLU_5.2.1 +SUPERLULIB = $(SuperLUroot)/lib/libsuperlu_5.2.1.a + +#BLASLIB = $(SuperLUroot)/lib/libblas.a + +## ATLAS BLAS causes single-precision to fail +BLASDEF = -DUSE_VENDOR_BLAS +BLASLIB = $(LDFLAGS) -lblas -lgfortran + +## This BLAS causes single-precision to fail the test in SuperLU +#BLASDEF = -DUSE_VENDOR_BLAS +#BLASLIB = -L/usr/lib -lblas + +TMGLIB = libtmglib.a +LIBS = $(SUPERLULIB) $(BLASLIB) + +# +# The archiver and the flag(s) to use when building archive (library) +# If your system has no ranlib, set RANLIB = echo. +# +ARCH = ar +ARCHFLAGS = cr +RANLIB = ranlib + +CC = gcc +CFLAGS = -O3 -fPIC +NOOPTS = -fPIC +FORTRAN = gfortran +FFLAGS = -O2 -fPIC +LOADER = $(CC) +LOADOPTS = + +# +# C preprocessor defs for compilation for the Fortran interface +# (-DNoChange, -DAdd_, -DAdd__, or -DUpCase) +# +CDEFS = -DAdd_ +# +# The directory in which Matlab is installed +# +MATLAB = /usr/sww/matlab + diff --git a/docker-builder-data/build/script/packet/superlu-5.2.1.files/mc64ad.c b/docker-builder-data/build/script/packet/superlu-5.2.1.files/mc64ad.c new file mode 100644 index 0000000..b24ad13 --- /dev/null +++ b/docker-builder-data/build/script/packet/superlu-5.2.1.files/mc64ad.c @@ -0,0 +1,16 @@ +#include +#include + +void mc64id_(int *a) +{ + fprintf(stderr, "SuperLU: MC64 functionality not available (it uses non-free code). Aborting.\n"); + abort(); +} + +void mc64ad_(int *a, int *b, int *c, int d[], int e[], double f[], + int *g, int h[], int *i, int j[], int *k, double l[], + int m[], int n[]) +{ + fprintf(stderr, "SuperLU: MC64 functionality not available (it uses non-free code). Aborting.\n"); + abort(); +} diff --git a/docker-builder-data/build/script/packet/superlu-5.2.1.sh b/docker-builder-data/build/script/packet/superlu-5.2.1.sh new file mode 100644 index 0000000..3a1500c --- /dev/null +++ b/docker-builder-data/build/script/packet/superlu-5.2.1.sh @@ -0,0 +1,27 @@ +DEPS="blas-3.7.0" + +PK_DIRNAME="SuperLU_5.2.1" +PK_ARCHIVE="superlu_5.2.1.tar.gz" +PK_URL="http://crd-legacy.lbl.gov/~xiaoye/SuperLU/$PK_ARCHIVE" + +source $INCLUDE_SCRIPT_DIR/inc-pkallunpack-default.sh +source $INCLUDE_SCRIPT_DIR/inc-pkinstall_release-default.sh + +pkbuild() { + cd "$BUILD_PACKET_DIR/$PK_DIRNAME" + + if ! (cp --remove-destination "$FILES_PACKET_DIR/mc64ad.c" "$BUILD_PACKET_DIR/$PK_DIRNAME/SRC/" \ + && cp --remove-destination "$FILES_PACKET_DIR/make.inc" "$BUILD_PACKET_DIR/$PK_DIRNAME/"); then + return 1 + fi + + if ( ! HOME=$BUILD_PACKET_DIR make); then + return 1 + fi +} + +pkinstall() { + cp --remove-destination -r "$BUILD_PACKET_DIR/$PK_DIRNAME/lib" "$INSTALL_PACKET_DIR" || return 1 + mkdir -p "$INSTALL_PACKET_DIR/include/superlu-5.2.1" + cp --remove-destination $BUILD_PACKET_DIR/$PK_DIRNAME/SRC/*.h "$INSTALL_PACKET_DIR/include/superlu-5.2.1" || return 1 +}