aboutsummaryrefslogtreecommitdiff
path: root/academic/cvc4/cvc4.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'academic/cvc4/cvc4.SlackBuild')
-rw-r--r--academic/cvc4/cvc4.SlackBuild41
1 files changed, 20 insertions, 21 deletions
diff --git a/academic/cvc4/cvc4.SlackBuild b/academic/cvc4/cvc4.SlackBuild
index ac0e78979678..ce4b43bebfda 100644
--- a/academic/cvc4/cvc4.SlackBuild
+++ b/academic/cvc4/cvc4.SlackBuild
@@ -23,9 +23,10 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=cvc4
-VERSION=${VERSION:-1.6}
+VERSION=${VERSION:-1.7}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
+SRCNAM=CVC4
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
@@ -59,9 +60,9 @@ set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
-rm -rf $PRGNAM-$VERSION
-tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
-cd $PRGNAM-$VERSION
+rm -rf $SRCNAM-$VERSION
+tar xvf $CWD/$SRCNAM-$VERSION.tar.gz
+cd $SRCNAM-$VERSION
chown -R root:root .
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
@@ -69,33 +70,31 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
-CFLAGS="$SLKCFLAGS" \
-CXXFLAGS="$SLKCFLAGS" \
-CPPFLAGS="-I/usr/include/antlr3" \
-./configure \
- --prefix=/usr \
- --libdir=/usr/lib${LIBDIRSUFFIX} \
- --mandir=/usr/man \
- --docdir=/usr/doc/$PRGNAM-$VERSION \
- --build=$ARCH-slackware-linux \
- --enable-optimized
+sed -i "s/DESTINATION lib/DESTINATION lib${LIBDIRSUFFIX}/" src/CMakeLists.txt src/parser/CMakeLists.txt
+chmod +x $CWD/run-antlr
+
+cmake \
+ -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
+ -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_BUILD_TYPE=Production \
+ -DENABLE_OPTIMIZED=ON \
+ -DANTLR_INCLUDE_DIR=/usr/include/antlr3 \
+ -DANTLR_BINARY="$CWD/run-antlr" \
+ .
-sed -i 's:#!/usr/bin/env python3:#!/usr/bin/env python:' src/options/mkoptions.py
make
make doc
-make install-strip DESTDIR=$PKG
-make install-examples DESTDIR=$PKG
+make install/strip DESTDIR=$PKG
+mv $PKG/usr/share/man $PKG/usr/man
find $PKG/usr/man -type f -exec gzip -9 {} \;
for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a \
- AUTHORS COPYING NEWS README RELEASE-NOTES THANKS \
+ AUTHORS COPYING NEWS README.md THANKS \
$PKG/usr/doc/$PRGNAM-$VERSION
-cp -a \
- doc/doxygen/html \
- $PKG/usr/doc/$PRGNAM-$VERSION/api
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install