summaryrefslogtreecommitdiff
path: root/contrib/get-glpk-cut-log
blob: 951e106202d7ef764d00b5f56da75b5f4dd93b08 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#!/usr/bin/env bash
#
source "$(dirname "$0")/get-script-header.sh"

# get the full path to the contrib dir; needs to be the full path so we can
# refer the patch from within the 'glpk-cut-log' build directory
contrib_dir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd -P)"

# Get the full path the patch we wish to apply
patch_file=${contrib_dir}/glpk-cut-log.patch

GLPK_DIR="$DEPS_DIR/glpk-cut-log"
version="4.52"

check_dep_dir "$GLPK_DIR"
setup_dep \
  "https://ftp.gnu.org/gnu/glpk/glpk-${version}.tar.gz" \
  "$GLPK_DIR"
cd "$GLPK_DIR"

patch -p1 < ${patch_file}

libtoolize
aclocal
autoheader
autoconf
automake --add-missing

./configure --without-pic --prefix="$INSTALL_DIR" --disable-shared --enable-static --disable-dependency-tracking
make install -j$(nproc)
make distclean
mv "$INSTALL_LIB_DIR/libglpk.a" "$INSTALL_LIB_DIR/libglpk-static.a"

./configure --with-pic --prefix="$INSTALL_DIR" --disable-shared --enable-static --disable-dependency-tracking
make install -j$(nproc)

echo
echo ===================== Now configure CVC4 with =====================
echo ./configure.sh --gpl --glpk
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback