summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilly Sudiarto Raharjo <willysr@gmail.com>2012-09-15 11:09:45 -0500
committerdsomero <xgizzmo@slackbuilds.org>2012-09-16 19:45:34 -0400
commit175325edf45d62f8d1408ed7e2faee75d2448203 (patch)
tree1f602025332d7f4f1971f38999ba0d238413cd7a
parent1fb3922c8c7c3583c0784f4e1e9e50eef7a6eed2 (diff)
downloadslackbuilds-175325edf45d62f8d1408ed7e2faee75d2448203.tar.gz
academic/pianobooster: Fix build (remove unneeded flag)
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
-rw-r--r--academic/pianobooster/pianobooster.SlackBuild10
1 files changed, 9 insertions, 1 deletions
diff --git a/academic/pianobooster/pianobooster.SlackBuild b/academic/pianobooster/pianobooster.SlackBuild
index d8af17f95f..db36beccaf 100644
--- a/academic/pianobooster/pianobooster.SlackBuild
+++ b/academic/pianobooster/pianobooster.SlackBuild
@@ -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 ..