Browse Source

xap/compucell3d: Upgraded to compucell3d-4.2.0.

current-20191101
parent
commit
bc04842f5f
  1. 1
      xap/compucell3d/CompuCell3D-4.2.0.tar.gz.sha256
  2. 21
      xap/compucell3d/compucell3d.SlackBuild

1
xap/compucell3d/CompuCell3D-4.2.0.tar.gz.sha256

@ -0,0 +1 @@
0f1c739ebe917588e45788ec8ae3f22d2c52a214817239958eafa29fb7e0a3dd CompuCell3D-4.2.0.tar.gz

21
xap/compucell3d/compucell3d.SlackBuild

@ -30,10 +30,9 @@
# Source package infos
NAMESRC=${NAMESRC:-CompuCell3D}
VERSION=${VERSION:-4.1.1}
REPOSITORY=${REPOSITORY:-https://github.com/CompuCell3D/CompuCell3D.git}
COMMIT=${COMMIT:-c89d387903c2571c9d38a082618c5b050e28f388}
VERSION=${VERSION:-4.2.0}
ARCHIVE=${ARCHIVE:-$NAMESRC-$VERSION.tar.gz}
WGET=${WGET:-https://github.com/CompuCell3D/CompuCell3D/archive/$VERSION.tar.gz}
# Build infos
NAMEPKG=${NAMEPKG:-compucell3d}
@ -61,14 +60,12 @@ if [ ! -d $TMP ]; then
fi
# Compilation flags
LIBDIRSUFFIX=""
case "$ARCH" in
i?86)
CPUOPT="-O2 -march=$ARCH -mtune=i686"
;;
x86_64)
CPUOPT="-O2 -fPIC"
LIBDIRSUFFIX="64"
;;
*)
CPUOPT="-O2"
@ -78,12 +75,11 @@ esac
# Get and verify the source archive
NAME=$NAMESRC-$VERSION
if [ ! -r $ARCHIVE ]; then
git clone $REPOSITORY CompuCell3D
cd CompuCell3D
git archive --prefix=$NAME/ $COMMIT | gzip -c > ../$ARCHIVE
cd ..
rm -rf CompuCell3D
wget -c -O $ARCHIVE.part "$WGET"
mv $ARCHIVE.part $ARCHIVE
fi
sha256sum -c $ARCHIVE.sha256
NAME=$(tar ft $ARCHIVE | head -n 1 | cut -d / -f 1)
# As of version 4.1.0, CompuCell3D cannot be properly built with
# Swig 4.0.1 as provided by Slackware due to some changes in the
@ -118,7 +114,7 @@ cmake \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/opt/compucell3d \
-DBUILD_PYINTERFACE=ON \
-DBUILD_QT_WRAPPERS=OFF \
-DBUILD_QT_WRAPPERS=ON \
-DCMAKE_CXX_FLAGS="$CPUOPT -fpermissive" \
-DSWIG_EXECUTABLE=$TMP/swig-for-compucell3d/bin/swig \
..
@ -132,8 +128,7 @@ install -m 755 $CWD/twedit++.sh $PKG/usr/bin/twedit++
# Install the documentation
mkdir -p $PKG/usr/doc/$NAME
install -m 644 ChangeLog.txt README-Linux.txt ReleaseNotes.rst \
$PKG/usr/doc/$NAME
install -m 644 ReleaseNotes.rst $PKG/usr/doc/$NAME
# Install desktop files
install -D -m 644 $CWD/compucell3d.desktop $PKG/usr/share/applications/compucell3d.desktop

Loading…
Cancel
Save