This repository has been archived by the owner on Jan 30, 2023. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#22817 : package cryptominisat 5.0.1
- Loading branch information
Thierry Monteil
committed
May 3, 2017
1 parent
7177ef5
commit 67f23e7
Showing
5 changed files
with
23 additions
and
77 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
tarball=cryptominisat-VERSION.tar.gz | ||
sha1=3566754f4e1eb5aefec703f7806c74e4c3edda80 | ||
md5=6fdabd54dc9076e0e2f28f489f5eab64 | ||
cksum=2155609827 | ||
sha1=f270bc232dbf273d5059f4c0cb704df7cf1f507d | ||
md5=45203be947368de75b44cf734cbac1d7 | ||
cksum=1496245059 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
2.9.6 | ||
5.0.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,76 +1,21 @@ | ||
#!/usr/bin/env bash | ||
|
||
if [ "$SAGE_LOCAL" = "" ]; then | ||
echo "SAGE_LOCAL undefined ... exiting" | ||
echo "Maybe run 'sage -sh'?" | ||
exit 1 | ||
fi | ||
|
||
unset RM | ||
|
||
INCLUDES="-I$SAGE_LOCAL/include" | ||
LIBDIRS="-L$SAGE_LOCAL/lib" | ||
|
||
CXXFLAGS="$CXXFLAGS $INCLUDES $LIBDIRS -g" | ||
|
||
COMPILER=`testcc.sh $CC` | ||
|
||
if [ "x$COMPILER" = "xGNU" ] ; then | ||
CXXFLAGS="$CXXFLAGS -fPIC -Wall -pedantic" | ||
elif [ "x$COMPILER" = "xSun_on_Solaris" ] ; then | ||
CXXFLAGS="$CXXFLAGS -Kpic" | ||
elif [ "x$COMPILER" = "xHP_on_HPUX" ] ; then | ||
CXXFLAGS="$CXXFLAGS + z" | ||
fi | ||
|
||
CPPFLAGS="$INCLUDES" | ||
|
||
if [ "x$SAGE_DEBUG" = "xyes" ]; then | ||
CXXFLAGS="$CXXFLAGS -O0" | ||
ENABLE_DEBUG="--enable-debug" | ||
else | ||
CXXFLAGS="$CXXFLAGS -O2" | ||
ENABLE_DEBUG="" | ||
fi | ||
fail () { | ||
echo -e >&2 $1 | ||
exit 1 | ||
} | ||
|
||
if [ "x$SAGE64" = "xyes" ]; then | ||
CXXFLAGS="$CXXFLAGS -m64" | ||
CPPFLAGS="$CPPFLAGS -m64" | ||
# FIXME: Do we need LDFLAGS here, too? | ||
# But looks as if all linking is performed by libtool/ | ||
# gcc, so we do not really need it here. | ||
if [ "$SAGE_LOCAL" = "" ]; then | ||
fail "SAGE_LOCAL undefined ... exiting\nMaybe run 'sage -sh'?" | ||
fi | ||
|
||
export CXXFLAGS | ||
export CPPFLAGS | ||
|
||
|
||
#build CryptoMiniSat | ||
|
||
cd src | ||
|
||
$MAKE clean | ||
|
||
./configure --prefix=$SAGE_LOCAL $ENABLE_DEBUG | ||
|
||
if [ $? -ne 0 ]; then | ||
echo "Error configuring cryptominisat" | ||
exit 1 | ||
fi | ||
cmake -DCMAKE_INSTALL_PREFIX="${SAGE_LOCAL}" -DUSE_GAUSS='ON' . || fail 'Error configuring cryptominisat' | ||
|
||
$MAKE | ||
$MAKE || fail 'Error building cryptominisat' | ||
|
||
if [ $? -ne 0 ]; then | ||
echo "Error building cryptominisat" | ||
exit 1 | ||
fi | ||
|
||
$MAKE install | ||
|
||
if [ $? -ne 0 ]; then | ||
echo "Error installing cryptominisat" | ||
exit 1 | ||
fi | ||
$MAKE install || fail 'Error installing cryptominisat' | ||
|
||
cd .. | ||
exit 0 | ||
|