aboutsummaryrefslogtreecommitdiff
path: root/academic/Xyce/Xyce.SlackBuild
diff options
context:
space:
mode:
authorDavid Spencer <baildon.research@googlemail.com>2016-06-05 18:51:52 +0100
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2016-06-08 08:33:37 +0700
commita4f1aee003a0940aba0e6d541397e369e8a8c3a3 (patch)
tree11cd4335750aa3db53d42fa7b6bc7ec8bc6b6e13 /academic/Xyce/Xyce.SlackBuild
parent6d036ceded4ccf806277c46057c85febf80093e7 (diff)
academic/Xyce: Updated for version 6.4.
Big thanks to Thomas Morper!! Signed-off-by: David Spencer <baildon.research@googlemail.com>
Diffstat (limited to 'academic/Xyce/Xyce.SlackBuild')
-rw-r--r--academic/Xyce/Xyce.SlackBuild41
1 files changed, 21 insertions, 20 deletions
diff --git a/academic/Xyce/Xyce.SlackBuild b/academic/Xyce/Xyce.SlackBuild
index b6390a8af78e1..c6a139bd2b377 100644
--- a/academic/Xyce/Xyce.SlackBuild
+++ b/academic/Xyce/Xyce.SlackBuild
@@ -23,13 +23,12 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=Xyce
-VERSION=${VERSION:-6.3}
+VERSION=${VERSION:-6.4}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
SRCNAM="$PRGNAM"
-
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
i?86) ARCH=i486 ;;
@@ -66,14 +65,15 @@ rm -rf $SRCNAM-$VERSION
tar xvf $CWD/$SRCNAM-$VERSION.tar.gz
tar xvf $CWD/$SRCNAM\_Docs-$VERSION.tar.gz
tar xvf $CWD/$SRCNAM\_Regression-$VERSION.tar.gz
+for d in $SRCNAM-$VERSION $SRCNAM\_Docs-$VERSION $SRCNAM\_Regression-$VERSION ; do
+ chown -R root:root $d
+ find -L $d \
+ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
+ -o -perm 511 \) -exec chmod 755 {} \; -o \
+ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
+ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
+done
cd $SRCNAM-$VERSION
-chown -R root:root .
-find -L . \
- \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
- -o -perm 511 \) -exec chmod 755 {} \; -o \
- \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
- -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
-
if [ "${NONFREE:-no}" == yes ]; then
COPT_DEPS="-DXyce_NONFREE_MODEL=ON"
@@ -88,17 +88,18 @@ else
COPT_DEPS="$COPTS_DEPS -DXyce_PARALLEL_MPI=OFF"
fi
-mkdir BUILD
-cmake \
- -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
- -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \
- -DCMAKE_INSTALL_PREFIX=/opt/$PRGNAM \
- $COPT_DEPS \
- -DXyce_ENABLE_SHARED=yes \
- -DCMAKE_BUILD_TYPE=Release
-
-make
-make install DESTDIR=$PKG
+mkdir -p build
+cd build
+ cmake \
+ -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
+ -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS -std=c++11 -DXyce_NOX_SIZETYPE" \
+ -DCMAKE_INSTALL_PREFIX=/opt/$PRGNAM \
+ $COPT_DEPS \
+ -DXyce_ENABLE_SHARED=yes \
+ -DCMAKE_BUILD_TYPE=Release ..
+ make
+ make install DESTDIR=$PKG
+cd ..
# Install the test suite manually
mv $TMP/$PRGNAM\_Regression-$VERSION \