mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-04 20:29:09 +01:00
academic/Xyce: Updated for version 6.4.
Big thanks to Thomas Morper!! Signed-off-by: David Spencer <baildon.research@googlemail.com>
This commit is contained in:
parent
6d036ceded
commit
a4f1aee003
2 changed files with 28 additions and 27 deletions
|
@ -23,13 +23,12 @@
|
||||||
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
|
|
||||||
PRGNAM=Xyce
|
PRGNAM=Xyce
|
||||||
VERSION=${VERSION:-6.3}
|
VERSION=${VERSION:-6.4}
|
||||||
BUILD=${BUILD:-1}
|
BUILD=${BUILD:-1}
|
||||||
TAG=${TAG:-_SBo}
|
TAG=${TAG:-_SBo}
|
||||||
|
|
||||||
SRCNAM="$PRGNAM"
|
SRCNAM="$PRGNAM"
|
||||||
|
|
||||||
|
|
||||||
if [ -z "$ARCH" ]; then
|
if [ -z "$ARCH" ]; then
|
||||||
case "$( uname -m )" in
|
case "$( uname -m )" in
|
||||||
i?86) ARCH=i486 ;;
|
i?86) ARCH=i486 ;;
|
||||||
|
@ -66,14 +65,15 @@ rm -rf $SRCNAM-$VERSION
|
||||||
tar xvf $CWD/$SRCNAM-$VERSION.tar.gz
|
tar xvf $CWD/$SRCNAM-$VERSION.tar.gz
|
||||||
tar xvf $CWD/$SRCNAM\_Docs-$VERSION.tar.gz
|
tar xvf $CWD/$SRCNAM\_Docs-$VERSION.tar.gz
|
||||||
tar xvf $CWD/$SRCNAM\_Regression-$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
|
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
|
if [ "${NONFREE:-no}" == yes ]; then
|
||||||
COPT_DEPS="-DXyce_NONFREE_MODEL=ON"
|
COPT_DEPS="-DXyce_NONFREE_MODEL=ON"
|
||||||
|
@ -88,17 +88,18 @@ else
|
||||||
COPT_DEPS="$COPTS_DEPS -DXyce_PARALLEL_MPI=OFF"
|
COPT_DEPS="$COPTS_DEPS -DXyce_PARALLEL_MPI=OFF"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
mkdir BUILD
|
mkdir -p build
|
||||||
cmake \
|
cd build
|
||||||
-DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
|
cmake \
|
||||||
-DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \
|
-DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
|
||||||
-DCMAKE_INSTALL_PREFIX=/opt/$PRGNAM \
|
-DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS -std=c++11 -DXyce_NOX_SIZETYPE" \
|
||||||
$COPT_DEPS \
|
-DCMAKE_INSTALL_PREFIX=/opt/$PRGNAM \
|
||||||
-DXyce_ENABLE_SHARED=yes \
|
$COPT_DEPS \
|
||||||
-DCMAKE_BUILD_TYPE=Release
|
-DXyce_ENABLE_SHARED=yes \
|
||||||
|
-DCMAKE_BUILD_TYPE=Release ..
|
||||||
make
|
make
|
||||||
make install DESTDIR=$PKG
|
make install DESTDIR=$PKG
|
||||||
|
cd ..
|
||||||
|
|
||||||
# Install the test suite manually
|
# Install the test suite manually
|
||||||
mv $TMP/$PRGNAM\_Regression-$VERSION \
|
mv $TMP/$PRGNAM\_Regression-$VERSION \
|
||||||
|
|
|
@ -1,12 +1,12 @@
|
||||||
PRGNAM="Xyce"
|
PRGNAM="Xyce"
|
||||||
VERSION="6.3"
|
VERSION="6.4"
|
||||||
HOMEPAGE="https://xyce.sandia.gov/index.html"
|
HOMEPAGE="https://xyce.sandia.gov/index.html"
|
||||||
DOWNLOAD="https://xyce.sandia.gov/downloads/_assets/documents/Xyce-6.3.tar.gz \
|
DOWNLOAD="https://xyce.sandia.gov/downloads/_assets/documents/Xyce-6.4.tar.gz \
|
||||||
https://xyce.sandia.gov/downloads/_assets/documents/Xyce_Docs-6.3.tar.gz \
|
https://xyce.sandia.gov/downloads/_assets/documents/Xyce_Docs-6.4.tar.gz \
|
||||||
https://xyce.sandia.gov/downloads/_assets/documents/Xyce_Regression-6.3.tar.gz"
|
https://xyce.sandia.gov/downloads/_assets/documents/Xyce_Regression-6.4.tar.gz"
|
||||||
MD5SUM="0d390539254cc240967b8df1eee74808 \
|
MD5SUM="4e80808b72593cdc04ab26b47a0844a1 \
|
||||||
7f0cdb4029c3b713af355641f985f4ca \
|
f2f3ace727f3bcea7d6881254d730eab \
|
||||||
2bdd10c498f134934910d7cc46b81837"
|
f12df54c999a7bc22b6e8103276fad0e"
|
||||||
DOWNLOAD_x86_64=""
|
DOWNLOAD_x86_64=""
|
||||||
MD5SUM_x86_64=""
|
MD5SUM_x86_64=""
|
||||||
REQUIRES="trilinos"
|
REQUIRES="trilinos"
|
||||||
|
|
Loading…
Reference in a new issue