summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorponce <matteo.bernardini@gmail.com>2012-07-25 12:55:36 +0200
committerRobby Workman <rworkman@slackbuilds.org>2012-08-22 08:56:55 -0500
commitc20fbd65f7ddcfbb3ecd5ec7cf352e8a977741ff (patch)
tree3a468155ae89ca24c50a63e06f25875e1970cc95
parent26de7100a2190908642efc22580ce2d62d33f663 (diff)
downloadslackbuilds-c20fbd65f7ddcfbb3ecd5ec7cf352e8a977741ff.tar.gz
audio/portmidi: Fixed building with openjdk.
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
-rw-r--r--audio/portmidi/portmidi.SlackBuild4
1 files changed, 4 insertions, 0 deletions
diff --git a/audio/portmidi/portmidi.SlackBuild b/audio/portmidi/portmidi.SlackBuild
index f88f9f8123..f8e60e0a12 100644
--- a/audio/portmidi/portmidi.SlackBuild
+++ b/audio/portmidi/portmidi.SlackBuild
@@ -87,6 +87,10 @@ cmake . \
-DCMAKE_CACHEFILE_DIR=$(pwd) \
-DJAVA_JVM_LIBRARY="/usr/lib$LIBDIRSUFFIX/libjvm.so"
+# some wrong paths expose with openjdk, fix them
+# https://bugs.archlinux.org/task/29214
+sed -i "s|pm_java/pm_java|pm_java|" pm_java/CMakeFiles/pmdefaults_target.dir/build.make
+
make all \
CFLAGS="-fPIC" \
PMFLAGS="-DNEWBUFFER"