portmidi.paketlendi

This commit is contained in:
milisbir 2017-11-22 11:33:39 +02:00
parent 69eddeee60
commit 45964a1192
1 changed files with 21 additions and 16 deletions

View File

@ -7,28 +7,33 @@ isim=portmidi
surum=217 surum=217
devir=1 devir=1
kaynak=(http://downloads.sourceforge.net/project/portmedia/$isim/$surum/$isim-src-$surum.zip \ kaynak=(http://downloads.sourceforge.net/project/portmedia/$isim/$surum/$isim-src-$surum.zip
portmidi-217-build-fix.patch) portmidi-217-build-fix.patch)
derle() { derle() {
unset MAKEFLAGS cd $isim
sed -i "s#/usr/local#/usr#" */CMakeLists.txt pm_python/setup.py
mkdir -p pm_java/Release
JAVA_HOME="/opt/jdk"
export PATH=$PATH:$JAVA_HOME/bin
patch -p1 -i $SRC/portmidi-217-build-fix.patch
cd $isim cmake . \
sed -i "s#/usr/local#/usr#" */CMakeLists.txt pm_python/setup.py -DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_CXX_FLAGS="-O2 -fPIC" \
mkdir -p pm_java/Release -DCMAKE_RUNTIME_OUTPUT_DIRECTORY=$PKG/usr/bin \
patch -p1 -i $SRC/portmidi-217-build-fix.patch -DJAVA_AWT_INCLUDE_PATH="$JAVA_HOME/include" \
-DJAVA_INCLUDE_PATH="$JAVA_HOME/include" \
cmake . -DCMAKE_INSTALL_PREFIX=/usr \ -DJAVA_INCLUDE_PATH2="$JAVA_HOME/include/linux" \
-DJAVA_JVM_LIBRARY="$JAVA_HOME/jre/lib/amd64/server/libjvm.so" \
-DCMAKE_ARCHIVE_OUTPUT_DIRECTORY=Release \ -DCMAKE_ARCHIVE_OUTPUT_DIRECTORY=Release \
-DCMAKE_LIBRARY_OUTPUT_DIRECTORY=Release \ -DCMAKE_LIBRARY_OUTPUT_DIRECTORY=Release \
-DCMAKE_RUNTIME_OUTPUT_DIRECTORY=Release -DCMAKE_RUNTIME_OUTPUT_DIRECTORY=Release
make -j1
make DESTDIR=$PKG install
make # Fix missing symlink for libporttime.so (FS#21528)
make DESTDIR=$PKG install ln -s libportmidi.so $PKG/usr/lib/libporttime.so
# Fix missing symlink for libporttime.so (FS#21528)
ln -s libportmidi.so $PKG/usr/lib/libporttime.so
} }