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.SlackBuild25
1 files changed, 20 insertions, 5 deletions
diff --git a/academic/STAR/STAR.SlackBuild b/academic/STAR/STAR.SlackBuild
index f5abdc97dd..c72e15ed31 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-2022 Rob van Nues <sborg63@disroot.org>
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -25,10 +25,18 @@
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=STAR
-VERSION=${VERSION:-2.7.9a}
+VERSION=${VERSION:-2.7.10a}
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
@@ -55,7 +63,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,9 +91,16 @@ 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}"