summaryrefslogtreecommitdiff
path: root/contrib/get-cryptominisat4
blob: 5c7cdd95839ced36df822c7fc5f4270e2ad22a90 (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
#!/bin/bash
#
source "$(dirname "$0")/get-script-header.sh"

if [ -e cryptominisat4 ]; then
  echo 'error: file or directory "cryptominisat4" exists; please move it out of the way.' >&2
  exit 1
fi

version="4.2.0"

mkdir cryptominisat4
cd cryptominisat4
CRYPTOMINISAT_PATH=`pwd`

webget https://github.com/msoos/cryptominisat/archive/$version.tar.gz cryptominisat-$version.tar.gz
gunzip -f cryptominisat-$version.tar.gz
tar xfv cryptominisat-$version.tar
cd cryptominisat-$version

patch -p0 < ../../contrib/cryptominisat-4.2.0.patch
patch -p0 < ../../contrib/cryptominisat-4.2.0.second.patch 

mkdir ../build
cd ../build

cmake -DCMAKE_INSTALL_PREFIX:PATH=$CRYPTOMINISAT_PATH/install -DSTATICCOMPILE="ON" -DNOM4RI="ON"  ../cryptominisat-$version
make install -j$(nproc)

cd ../

echo
echo ===================== Now configure CVC4 with =====================
echo ./configure --with-cryptominisat --with-cryptominisat-dir=`pwd`
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback