summaryrefslogtreecommitdiffstats
path: root/academic/STAR/STAR.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'academic/STAR/STAR.SlackBuild')
-rw-r--r--academic/STAR/STAR.SlackBuild36
1 files changed, 25 insertions, 11 deletions
diff --git a/academic/STAR/STAR.SlackBuild b/academic/STAR/STAR.SlackBuild
index 560a3b130e..bc4913730e 100644
--- a/academic/STAR/STAR.SlackBuild
+++ b/academic/STAR/STAR.SlackBuild
@@ -2,7 +2,7 @@
# Slackware build script for STAR
-# Copyright 2018-2021 Rob van Nues <sborg63@disroot.org>
+# Copyright 2018-2023 Rob van Nues <sborg63@disroot.org>
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -25,11 +25,20 @@
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=STAR
-VERSION=${VERSION:-2.7.8a}
+VERSION=${VERSION:-2.7.11b}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
+# This script is set for processors that support "Advanced Vector Extensions",
+# (AVX), included since 2008 in Intel processors (Sandy Bridge) and since 2011
+# in AMD cpus (Bulldozer). AVX is an implementation of "Single Instruction
+# stream-Multiple Data streams" (SIMD) to process vector type data.
+# If no AVX (`cat /proc/cpuinfo | grep 'avx'`) is present, specify the
+# available SIMD architecture (https://en.wikichip.org/wiki/x86/extensions),
+# e.g. with "Streaming SIMD Extensions" use 'sse', and uncomment the next line.
+#SIMD=${SIMD:-sse}; echo "Using ${SIMD} as SIMD"
+
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
i?86) ARCH=i586 ;;
@@ -38,9 +47,6 @@ if [ -z "$ARCH" ]; then
esac
fi
-# If the variable PRINT_PACKAGE_NAME is set, then this script will report what
-# the name of the created package would be, and then exit. This information
-# could be useful to other scripts.
if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
exit 0
@@ -55,7 +61,7 @@ if [ "$ARCH" = "x86_64" ]; then
LIBDIRSUFFIX="64"
else
echo "Sorry, this program does not run/compile on your architecture ($ARCH)"
- exit 1
+ exit 0
fi
set -e
@@ -83,16 +89,23 @@ find -L . \
# https://github.com/alexdobin/STAR/issues/447
#so let's forget about this for now
+#For processors that do not support AVX extensions, specify the target SIMD architecture
+#make STAR CXXFLAGS_SIMD=sse
cd source
-
- make ${PRGNAM} CFLAGS="$SLKCFLAGS" CXXFLAGSextra="$SLKCFLAGS"
+ if [ ! -z "${SIMD}" ]; then
+ echo "make with CXXFLAG_SIMD=${SIMD}"
+ make ${PRGNAM} CFLAGS="$SLKCFLAGS" CXXFLAGSextra="$SLKCFLAGS" CXXFLAGS_SIMD="$SIMD"
+ else
+ echo "default make"
+ make ${PRGNAM} CFLAGS="$SLKCFLAGS" CXXFLAGSextra="$SLKCFLAGS"
+ fi
mkdir -p $PKG/usr/bin
install -Dm755 $PRGNAM "$PKG/usr/bin/${PRGNAM}"
- make clean
- make ${PRGNAM}long CXXFLAGSextra="$CXXFLAGS"
- install -Dm755 ${PRGNAM}long "$PKG/usr/bin/${PRGNAM}long"
+ #make clean
+ #make ${PRGNAM}long CXXFLAGSextra="$CXXFLAGS"
+ #install -Dm755 ${PRGNAM}long "$PKG/usr/bin/${PRGNAM}long"
cd ..
@@ -104,6 +117,7 @@ cp -a \
source/parametersDefault doc/${PRGNAM}manual.pdf CHANGES.md LICENSE README.md RELEASEnotes.md \
$PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
+chmod 644 $PKG/usr/doc/$PRGNAM-$VERSION/parametersDefault
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc