summaryrefslogtreecommitdiff
path: root/development/extra-cmake-modules/extra-cmake-modules.SlackBuild
diff options
context:
space:
mode:
authorFellype do Nascimento <fellype(at)gmail.com>2017-05-31 22:14:05 +0100
committerDavid Spencer <idlemoor@slackbuilds.org>2017-05-31 22:14:05 +0100
commit8f16d7cf3d35156ed2caf33f21fd9fa8edd6f2cf (patch)
tree6e4de1f1a412f450bdbfd1a9f6ceb948c456c03a /development/extra-cmake-modules/extra-cmake-modules.SlackBuild
parent4249bdcc0b92320c00e0b195853864c9edb942ba (diff)
downloadslackbuilds-8f16d7cf3d35156ed2caf33f21fd9fa8edd6f2cf.tar.gz
development/extra-cmake-modules: Updated for version 5.34.0.
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
Diffstat (limited to 'development/extra-cmake-modules/extra-cmake-modules.SlackBuild')
-rw-r--r--development/extra-cmake-modules/extra-cmake-modules.SlackBuild30
1 files changed, 16 insertions, 14 deletions
diff --git a/development/extra-cmake-modules/extra-cmake-modules.SlackBuild b/development/extra-cmake-modules/extra-cmake-modules.SlackBuild
index 2a0db1114a..17a4788b6d 100644
--- a/development/extra-cmake-modules/extra-cmake-modules.SlackBuild
+++ b/development/extra-cmake-modules/extra-cmake-modules.SlackBuild
@@ -25,17 +25,16 @@
# Adapted by Fellype do Nascimento - fellype(at)gmail.com
PRGNAM=extra-cmake-modules
-VERSION=${VERSION:-5.31.0}
+VERSION=${VERSION:-5.34.0}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
- case "$(uname -m)" in
+ case "$( uname -m )" in
i?86) ARCH=i586 ;;
- arm*) readelf /usr/bin/file -A | egrep -q "Tag_CPU.*[4,5]" && ARCH=arm || ARCH=armv7hl ;;
- *) ARCH=$(uname -m) ;;
+ arm*) ARCH=arm ;;
+ *) ARCH=$( uname -m ) ;;
esac
- export ARCH
fi
CWD=$(pwd)
@@ -43,24 +42,27 @@ TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
-
if [ "$ARCH" = "i586" ]; then
- SLKCFLAGS="-O2 -m32 -march=i586 -mtune=i686"
-elif [ "$ARCH" = "s390" ]; then
- SLKCFLAGS="-O2"
+ SLKCFLAGS="-O2 -march=i586 -mtune=i686"
+ LIBDIRSUFFIX=""
+elif [ "$ARCH" = "i686" ]; then
+ SLKCFLAGS="-O2 -march=i686 -mtune=i686"
+ LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC"
+ LIBDIRSUFFIX="64"
else
SLKCFLAGS="-O2"
+ LIBDIRSUFFIX=""
fi
set -e
rm -rf $PKG
-mkdir -p $TMP $PKG
+mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
-tar xvf $CWD/$PRGNAM-$VERSION.tar.xz*
+tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
cd $PRGNAM-$VERSION
chown -R root:root .
find -L . \
@@ -76,9 +78,9 @@ cd build
-DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \
-DCMAKE_INSTALL_PREFIX=/usr \
-DMAN_INSTALL_DIR=/usr/man \
- ..
- make
- make install DESTDIR=$PKG
+ -DCMAKE_BUILD_TYPE=Release ..
+ make
+ make install DESTDIR=$PKG
cd -
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \