new package: polyphone

This commit is contained in:
Tee KOBAYASHI 2022-05-06 16:39:11 +09:00 committed by xtkoba
parent 67f0b79630
commit 232e5b1321
3 changed files with 86 additions and 0 deletions

View File

@ -0,0 +1,26 @@
TERMUX_PKG_HOMEPAGE=https://www.polyphone-soundfonts.com/
TERMUX_PKG_DESCRIPTION="An open-source soundfont editor for creating musical instruments"
TERMUX_PKG_LICENSE="GPL-3.0"
TERMUX_PKG_MAINTAINER="@termux"
TERMUX_PKG_VERSION=2.3.0
TERMUX_PKG_SRCURL=https://github.com/davy7125/polyphone/archive/refs/tags/${TERMUX_PKG_VERSION}.tar.gz
TERMUX_PKG_SHA256=ecf401f2a083bb5396032953bb3d051e39aa4483063da9546852219ad532605a
TERMUX_PKG_DEPENDS="glib, libc++, libflac, libogg, librtmidi, libvorbis, openssl, portaudio, qcustomplot, qt5-qtbase, qt5-qtsvg, zlib"
TERMUX_PKG_BUILD_DEPENDS="qt5-qtbase-cross-tools, qt5-qttools-cross-tools"
TERMUX_PKG_BUILD_IN_SRC=true
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="
DEFINES+=USE_LOCAL_STK
PKG_CONFIG=pkg-config
PREFIX=$TERMUX_PREFIX
"
termux_step_pre_configure() {
TERMUX_PKG_SRCDIR+="/sources"
TERMUX_PKG_BUILDDIR="$TERMUX_PKG_SRCDIR"
}
termux_step_configure() {
"${TERMUX_PREFIX}/opt/qt/cross/bin/qmake" \
-spec "${TERMUX_PREFIX}/lib/qt/mkspecs/termux-cross" \
${TERMUX_PKG_EXTRA_CONFIGURE_ARGS}
}

View File

@ -0,0 +1,47 @@
--- a/sources/context/audiodevice.cpp
+++ b/sources/context/audiodevice.cpp
@@ -28,7 +28,7 @@
#include "portaudio.h"
#include "contextmanager.h"
-#ifndef Q_OS_WIN
+#if !defined Q_OS_WIN && !defined __ANDROID__
#if __APPLE__
#include "jack.h"
@@ -165,7 +165,7 @@
if (!found)
listRet[0]._isDefault = true;
-#ifndef Q_OS_WIN
+#if !defined Q_OS_WIN && !defined __ANDROID__
// Add jack if not windows
listRet << HostInfo("Jack", -2);
#endif
@@ -203,7 +203,7 @@
// Arrêt des serveurs son si besoin
this->closeConnections();
-#ifdef Q_OS_WIN
+#if defined Q_OS_WIN || defined __ANDROID__
// Asio cannot work without these two lines
if (hostType == paASIO)
{
@@ -268,7 +268,7 @@
void AudioDevice::openJackConnection(quint32 bufferSize)
{
-#ifndef Q_OS_WIN
+#if !defined Q_OS_WIN && !defined __ANDROID__
// Format audio à l'écoute
_format.setSampleRate(SAMPLE_RATE);
_format.setChannelCount(2);
@@ -437,7 +437,7 @@
_standardStream = nullptr;
}
-#ifndef Q_OS_WIN
+#if !defined Q_OS_WIN && !defined __ANDROID__
if (_jack_client)
{
try

View File

@ -0,0 +1,13 @@
--- a/sources/polyphone.pro
+++ b/sources/polyphone.pro
@@ -61,9 +61,8 @@
}
unix:!macx {
QMAKE_CXXFLAGS += -std=c++11 -ffloat-store
- DEFINES += __LINUX_ALSASEQ__ __UNIX_JACK__
CONFIG += link_pkgconfig
- PKGCONFIG += alsa jack portaudio-2.0 zlib ogg flac vorbis vorbisfile vorbisenc glib-2.0
+ PKGCONFIG += portaudio-2.0 zlib ogg flac vorbis vorbisfile vorbisenc glib-2.0
contains(DEFINES, USE_WOLFSSL) {
PKGCONFIG += wolfssl
} else {