academic/pianobooster: Fix build (remove unneeded flag)

Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
This commit is contained in:
Willy Sudiarto Raharjo 2012-09-15 11:09:45 -05:00 committed by dsomero
parent 1fb3922c8c
commit 175325edf4
1 changed files with 9 additions and 1 deletions

View File

@ -3,10 +3,11 @@
# Slackware build script for pianobooster
# Written by B. Watson (yalhcru@gmail.com)
# Modified by Willy Sudiarto Raharjo <willysr@slackware-id.org>
PRGNAM=pianobooster
VERSION=${VERSION:-0.6.4b}
BUILD=${BUILD:-1}
BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
@ -51,12 +52,19 @@ find . \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \;
# remove unneeded flag
sed -i '/mwindows/d' src/CMakeLists.txt
cd build
cmake \
-DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
-DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_BUILD_TYPE=Release ../src
# DSO GL and pthread fix
sed -i "s/$/-lGL -lpthread/" CMakeFiles/pianobooster.dir/link.txt
make VERBOSE=1
make install/strip DESTDIR=$PKG
cd ..