audio/portmidi: Fixed building with openjdk.

Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
This commit is contained in:
ponce 2012-07-25 12:55:36 +02:00 committed by Robby Workman
parent 26de7100a2
commit c20fbd65f7

View file

@ -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"