aboutsummaryrefslogtreecommitdiff
path: root/audio/gogglesmm/gogglesmm.SlackBuild
diff options
context:
space:
mode:
authorMatteo Bernardini <ponce@slackbuilds.org>2017-07-31 13:18:58 +0200
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2017-08-05 07:07:53 +0700
commit20aa2e3ce6a9c7ee5f90ca6e1c19f07c8035ccee (patch)
treef8999ba81ab0a6b696e0a75ce4206dcd7a11c46e /audio/gogglesmm/gogglesmm.SlackBuild
parent98904044751f0dd834dae2b4a6e927200307e4b4 (diff)
audio/gogglesmm: Updated for version 1.1.9.
Install libraries in /usr/lib$LIBDIRSUFFIX with cmake. This version is also gcc7-friendly Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
Diffstat (limited to 'audio/gogglesmm/gogglesmm.SlackBuild')
-rw-r--r--audio/gogglesmm/gogglesmm.SlackBuild12
1 files changed, 7 insertions, 5 deletions
diff --git a/audio/gogglesmm/gogglesmm.SlackBuild b/audio/gogglesmm/gogglesmm.SlackBuild
index 3b4be8787224..1c09e5baccc0 100644
--- a/audio/gogglesmm/gogglesmm.SlackBuild
+++ b/audio/gogglesmm/gogglesmm.SlackBuild
@@ -22,7 +22,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=gogglesmm
-VERSION=${VERSION:-1.1.8}
+VERSION=${VERSION:-1.1.9}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -43,16 +43,16 @@ OUTPUT=${OUTPUT:-/tmp}
if [ "$ARCH" = "i586" ]; then
SLKCFLAGS="-O2 -march=i586 -mtune=i686"
- LIBDIRCONFIG=""
+ LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
- LIBDIRCONFIG=""
+ LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC"
- LIBDIRCONFIG="--lib64"
+ LIBDIRSUFFIX="64"
else
SLKCFLAGS="-O2"
- LIBDIRCONFIG=""
+ LIBDIRSUFFIX=""
fi
set -e
@@ -70,6 +70,8 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
+sed -i "s|#\ set(CMAKE_INSTALL_LIBDIR\ \"lib|set(CMAKE_INSTALL_LIBDIR \"lib$LIBDIRSUFFIX|" CMakeLists.txt
+
mkdir -p build
cd build
cmake \