milis/talimatname/genel/p/portmidi/talimat

40 lines
1.2 KiB
Plaintext
Raw Normal View History

2017-10-27 20:46:27 +02:00
# Tanım: Gerçek zamanlı MIDI giriş/çıkış için platform bağımsız kütüphane
2016-02-24 01:27:23 +01:00
# URL: http://portmedia.sourceforge.net
2017-10-27 20:46:27 +02:00
# Paketçi: milisarge
# Gerekler: cmake glib alsa-lib openjdk
2016-02-24 01:27:23 +01:00
2017-10-28 14:10:23 +02:00
isim=portmidi
surum=217
devir=1
2016-02-24 01:27:23 +01:00
2017-11-22 10:33:39 +01:00
kaynak=(http://downloads.sourceforge.net/project/portmedia/$isim/$surum/$isim-src-$surum.zip
2016-02-24 01:27:23 +01:00
portmidi-217-build-fix.patch)
2017-10-27 23:59:41 +02:00
derle() {
2016-02-24 01:27:23 +01:00
2017-11-22 10:33:39 +01:00
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
cmake . \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_CXX_FLAGS="-O2 -fPIC" \
-DCMAKE_RUNTIME_OUTPUT_DIRECTORY=$PKG/usr/bin \
-DJAVA_AWT_INCLUDE_PATH="$JAVA_HOME/include" \
-DJAVA_INCLUDE_PATH="$JAVA_HOME/include" \
-DJAVA_INCLUDE_PATH2="$JAVA_HOME/include/linux" \
-DJAVA_JVM_LIBRARY="$JAVA_HOME/jre/lib/amd64/server/libjvm.so" \
-DCMAKE_ARCHIVE_OUTPUT_DIRECTORY=Release \
2016-02-24 01:27:23 +01:00
-DCMAKE_LIBRARY_OUTPUT_DIRECTORY=Release \
-DCMAKE_RUNTIME_OUTPUT_DIRECTORY=Release
2017-11-22 10:33:39 +01:00
make -j1
make DESTDIR=$PKG install
2016-02-24 01:27:23 +01:00
2017-11-22 10:33:39 +01:00
# Fix missing symlink for libporttime.so (FS#21528)
ln -s libportmidi.so $PKG/usr/lib/libporttime.so
2016-02-24 01:27:23 +01:00
}