File tree 17 files changed +67
-77
lines changed
17 files changed +67
-77
lines changed Original file line number Diff line number Diff line change 71
71
#
72
72
# - sdh_cmake [...]
73
73
#
74
- # Runs `cmake` in the current directory with the given arguments, as well as
75
- # additional arguments passed to cmake (assuming packages are using the
76
- # GNUInstallDirs module) so that `CMAKE_INSTALL_PREFIX` and
77
- # `CMAKE_INSTALL_LIBDIR` are set correctly.
74
+ # Runs `cmake` with the given arguments, as well as additional arguments
75
+ # (assuming packages are using the GNUInstallDirs module) so that
76
+ # `CMAKE_INSTALL_PREFIX` and `CMAKE_INSTALL_LIBDIR` are set correctly.
78
77
#
79
78
# - sdh_install [-T] SRC [SRC...] DEST
80
79
#
@@ -416,9 +415,9 @@ sdh_pip_uninstall() {
416
415
417
416
sdh_cmake () {
418
417
echo " Configuring $PKG_NAME with cmake"
419
- cmake . -DCMAKE_INSTALL_PREFIX=" ${SAGE_INST_LOCAL} " \
420
- -DCMAKE_INSTALL_LIBDIR=lib \
421
- " $@ "
418
+ cmake -DCMAKE_INSTALL_PREFIX=" ${SAGE_INST_LOCAL} " \
419
+ -DCMAKE_INSTALL_LIBDIR=lib \
420
+ " $@ "
422
421
if [ $? -ne 0 ]; then
423
422
if [ -f " $( pwd) /CMakeFiles/CMakeOutput.log" ]; then
424
423
sdh_die << _EOF_
Original file line number Diff line number Diff line change @@ -3,6 +3,6 @@ if [ "$UNAME" = "Darwin" ]; then
3
3
export LDFLAGS
4
4
fi
5
5
cd src
6
- sdh_cmake -DUSE_GMP=OFF -DCMAKE_VERBOSE_MAKEFILE=ON
6
+ sdh_cmake -DUSE_GMP=OFF -DCMAKE_VERBOSE_MAKEFILE=ON .
7
7
sdh_make
8
8
sdh_make_install
Original file line number Diff line number Diff line change 1
- tarball =ccache-VERSION.tar.bz2
2
- sha1 =3653e0765f01697c449f7026c479fbd9526323a7
3
- sha256 =fa9d7f38367431bc86b19ad107d709ca7ecf1574fdacca01698bdf0a47cd8567
1
+ tarball =ccache-VERSION.tar.xz
2
+ sha1 =cff97f7592f5042eb43cb54a6d12a1ce7e49da62
3
+ sha256 =c0b85ddfc1a3e77b105ec9ada2d24aad617fa0b447c6a94d55890972810f0f5a
4
+ upstream_url =https://github.com/ccache/ccache/releases/download/vVERSION/ccache-VERSION.tar.xz
Original file line number Diff line number Diff line change 1
- zlib
1
+ cmake xz
2
2
3
3
----------
4
4
All lines of this file are ignored except the first.
Original file line number Diff line number Diff line change
1
+ ccache
Original file line number Diff line number Diff line change 1
- 3.3.4
1
+ 4.10.2
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
1
cd src
2
2
3
- # Use newer version of config.guess and config.sub (see Issue #23710)
4
- cp "$SAGE_ROOT"/config/config.* .
5
-
6
- export CPPFLAGS="-I$SAGE_LOCAL/include $CPPFLAGS"
7
- sdh_configure
3
+ mkdir build
4
+ cd build
5
+ sdh_cmake -DCMAKE_BUILD_TYPE=Release \
6
+ -DENABLE_TESTING=OFF \
7
+ -DREDIS_STORAGE_BACKEND=OFF \
8
+ ..
8
9
sdh_make
9
10
sdh_make_install
10
11
11
-
12
12
set -e
13
13
14
14
mkdir -p "$SAGE_LOCAL/libexec/ccache"
@@ -21,4 +21,4 @@ ln -sf ../../bin/ccache "$SAGE_LOCAL/libexec/ccache/clang++"
21
21
22
22
# Copy a reasonable default configuration for Sage
23
23
# (cache size of 4G and compression enabled)
24
- cp -p ../ccache.conf "$SAGE_LOCAL/etc"
24
+ cp -p ../../ ccache.conf "$SAGE_LOCAL/etc"
Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ sdh_cmake -DCMAKE_BUILD_TYPE=Release \
5
5
-DBUILD_SHARED_LIBS=ON \
6
6
-DBLA_VENDOR=OpenBLAS \
7
7
-DBLAS_LIBRARIES="$(pkg-config --libs blas)" \
8
- -DLAPACK_LIBRARIES="$(pkg-config --libs lapack)"
8
+ -DLAPACK_LIBRARIES="$(pkg-config --libs lapack)" \
9
+ .
9
10
sdh_make
10
11
sdh_make_install
Original file line number Diff line number Diff line change @@ -36,6 +36,7 @@ sdh_cmake -DCMAKE_VERBOSE_MAKEFILE=ON \
36
36
-DCMAKE_FIND_ROOT_PATH_MODE_LIBRARY=BOTH \
37
37
-DCMAKE_INSTALL_PREFIX=$SAGE_LOCAL \
38
38
-DWITH_POPCNT=OFF \
39
+ . \
39
40
&& sdh_make_install
40
41
}
41
42
Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ sdh_cmake -DCMAKE_VERBOSE_MAKEFILE=ON \
9
9
-DBUILD_STATIC_LIBS=OFF \
10
10
-DBUILD_SHARED_LIBS=ON \
11
11
-DBUILD_TESTS=ON \
12
- ${EXTRA_OPTS}
12
+ ${EXTRA_OPTS} \
13
+ .
13
14
14
15
sdh_make_install
Original file line number Diff line number Diff line change 1
1
cd src/
2
2
3
3
sdh_cmake -DCMAKE_VERBOSE_MAKEFILE=ON \
4
- -DLIB_INSTALL_DIR="${SAGE_LOCAL}"/lib
4
+ -DLIB_INSTALL_DIR="${SAGE_LOCAL}"/lib \
5
+ .
5
6
6
7
sdh_make
7
8
Original file line number Diff line number Diff line change 2
2
mkdir build
3
3
cd build
4
4
sdh_cmake -DCMAKE_INSTALL_LIBDIR=lib \
5
- -DCMAKE_VERBOSE_MAKEFILE=ON \
6
- -DCMAKE_BUILD_WITH_INSTALL_NAME_DIR=ON \
7
- -DGMP_DIR="${SAGE_GMP_PREFIX}" \
8
- -DReadline_ROOT_DIR=$(pkg-config --variable=prefix readline) \
9
- -DHistory_ROOT_DIR=$(pkg-config --variable=prefix readline) \
10
- -DIPOPT=off \
11
- -DPAPILO=on -DPAPILO_DIR="${SAGE_LOCAL}" \
12
- -DZIMPL=off \
13
- -DAMPL=off \
14
- -DSYM=bliss \
15
- ..
5
+ -DCMAKE_VERBOSE_MAKEFILE=ON \
6
+ -DCMAKE_BUILD_WITH_INSTALL_NAME_DIR=ON \
7
+ -DGMP_DIR="${SAGE_GMP_PREFIX}" \
8
+ -DReadline_ROOT_DIR=$(pkg-config --variable=prefix readline) \
9
+ -DHistory_ROOT_DIR=$(pkg-config --variable=prefix readline) \
10
+ -DIPOPT=off \
11
+ -DPAPILO=on -DPAPILO_DIR="${SAGE_LOCAL}" \
12
+ -DZIMPL=off \
13
+ -DAMPL=off \
14
+ -DSYM=bliss \
15
+ ..
16
16
sdh_make
17
17
sdh_make_install
Original file line number Diff line number Diff line change 2
2
mkdir build
3
3
cd build
4
4
sdh_cmake -DCMAKE_INSTALL_LIBDIR=lib \
5
- -DCMAKE_VERBOSE_MAKEFILE=ON \
6
- -DCMAKE_BUILD_WITH_INSTALL_NAME_DIR=ON \
7
- -DBLA_VENDOR=OpenBLAS \
8
- -DBLAS_LIBRARIES="$(pkg-config --libs blas)" \
9
- -DLAPACK_LIBRARIES="$(pkg-config --libs lapack)" \
10
- -DSCIP_DIR="${SAGE_LOCAL}" \
11
- -DSYM=bliss \
12
- -DSDPS=dsdp \
13
- ..
5
+ -DCMAKE_VERBOSE_MAKEFILE=ON \
6
+ -DCMAKE_BUILD_WITH_INSTALL_NAME_DIR=ON \
7
+ -DBLA_VENDOR=OpenBLAS \
8
+ -DBLAS_LIBRARIES="$(pkg-config --libs blas)" \
9
+ -DLAPACK_LIBRARIES="$(pkg-config --libs lapack)" \
10
+ -DSCIP_DIR="${SAGE_LOCAL}" \
11
+ -DSYM=bliss \
12
+ -DSDPS=dsdp \
13
+ ..
14
14
sdh_make
15
15
sdh_make_install
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ echo "Configuring suitesparse"
5
5
# Hopefully these sill be normalised in the future.
6
6
# * SUITESPARSE_INCLUDEDIR_POSTFIX sets the subfolder in which to install headers.
7
7
# It default to "suitesparse" if not defined, which currently breaks dependencies.
8
- # * SUITESPARSE_USE_FORTRAN make sure the fortran interface is off. There is trouble when
8
+ # * SUITESPARSE_USE_FORTRAN make sure the fortran interface is off. There is trouble when
9
9
# gcc and gfortran version are not matching.
10
10
# * SUITESPARSE_ENABLE_PROJECTS semi column separated list of the desired packages. Default is
11
11
# all the packages in the suitesparse tarball.
@@ -16,6 +16,7 @@ sdh_cmake -DCMAKE_VERBOSE_MAKEFILE=ON \
16
16
-DNSTATIC=ON \
17
17
-DSUITESPARSE_USE_FORTRAN=OFF \
18
18
-DSUITESPARSE_INCLUDEDIR_POSTFIX="" \
19
- -DSUITESPARSE_ENABLE_PROJECTS="suitesparse_config;amd;camd;ccolamd;colamd;cholmod;umfpack"
19
+ -DSUITESPARSE_ENABLE_PROJECTS="suitesparse_config;amd;camd;ccolamd;colamd;cholmod;umfpack" \
20
+ .
20
21
21
22
sdh_make_install
Original file line number Diff line number Diff line change 2
2
mkdir build
3
3
cd build
4
4
sdh_cmake -DCMAKE_PREFIX_PATH="$SAGE_LOCAL" \
5
- -DWITH_SYMENGINE_THREAD_SAFE=yes \
6
- -DWITH_ECM=yes \
7
- -DWITH_FLINT=yes \
8
- -DWITH_ARB=yes \
9
- -DWITH_MPFR=yes \
10
- -DWITH_MPC=yes \
11
- -DWITH_LLVM=no \
12
- -DINTEGER_CLASS="flint" \
13
- -DBUILD_BENCHMARKS=no \
14
- -DBUILD_SHARED_LIBS=yes \
15
- -DBUILD_TESTS=yes \
16
- ..
5
+ -DWITH_SYMENGINE_THREAD_SAFE=yes \
6
+ -DWITH_ECM=yes \
7
+ -DWITH_FLINT=yes \
8
+ -DWITH_ARB=yes \
9
+ -DWITH_MPFR=yes \
10
+ -DWITH_MPC=yes \
11
+ -DWITH_LLVM=no \
12
+ -DINTEGER_CLASS="flint" \
13
+ -DBUILD_BENCHMARKS=no \
14
+ -DBUILD_SHARED_LIBS=yes \
15
+ -DBUILD_TESTS=yes \
16
+ ..
17
17
18
18
sdh_make
19
19
sdh_make install
Original file line number Diff line number Diff line change @@ -497,11 +497,10 @@ should not need to add it yourself.
497
497
498
498
The following are also available, but rarely used.
499
499
500
- - ` ` sdh_cmake [...]` ` : Runs ` ` cmake` ` in the current directory with
501
- the given arguments, as well as additional arguments passed to
502
- cmake (assuming packages are using the GNUInstallDirs module) so
503
- that ` ` CMAKE_INSTALL_PREFIX` ` and ` ` CMAKE_INSTALL_LIBDIR` ` are set
504
- correctly.
500
+ - ` ` sdh_cmake [...]` ` : Runs ` ` cmake` ` in the current directory with the given
501
+ arguments, as well as additional arguments (assuming packages are using the
502
+ GNUInstallDirs module) so that ` ` CMAKE_INSTALL_PREFIX` ` and
503
+ ` ` CMAKE_INSTALL_LIBDIR` ` are set correctly.
505
504
506
505
- ` ` sdh_preload_lib EXECUTABLE SONAME` ` : (Linux only -- no-op on other
507
506
platforms.) Check shared libraries loaded by ` ` EXECUTABLE` ` (may be a
You can’t perform that action at this time.
0 commit comments