add qtmultimedia submodule (version 5.12.10) (#304)

This commit is contained in:
Simeon Huang 2021-05-08 19:46:56 +01:00 committed by Yaksh Bariya
parent 7446ec0afb
commit b5f581524a
No known key found for this signature in database
GPG Key ID: F7486BA7D3D27581
3 changed files with 80 additions and 0 deletions

View File

@ -0,0 +1,38 @@
TERMUX_PKG_HOMEPAGE=https://www.qt.io/
TERMUX_PKG_DESCRIPTION="Qt 5 Multimedia Library"
TERMUX_PKG_LICENSE="LGPL-3.0"
TERMUX_PKG_MAINTAINER="Simeon Huang <symeon@librehat.com>"
TERMUX_PKG_VERSION=5.12.10
TERMUX_PKG_REVISION=1
TERMUX_PKG_SRCURL="https://download.qt.io/official_releases/qt/5.12/${TERMUX_PKG_VERSION}/submodules/qtmultimedia-everywhere-src-${TERMUX_PKG_VERSION}.tar.xz"
TERMUX_PKG_SHA256=cc98f19eb54b581f4a270855c4dc07ae9272e775ae7c5729c885e6c5e197a03c
# qt5-qtdeclarative is not needed because quick widget requires OpenGL
# gstreamer is not supported because it requires glib and Qt OpenGL support
TERMUX_PKG_DEPENDS="qt5-qtbase, pulseaudio, openal-soft"
TERMUX_PKG_BUILD_DEPENDS="qt5-qtbase-cross-tools, fdupes"
TERMUX_PKG_BUILD_IN_SRC=true
TERMUX_PKG_NO_STATICSPLIT=true
termux_step_configure () {
"${TERMUX_PREFIX}/opt/qt/cross/bin/qmake" \
-spec "${TERMUX_PREFIX}/lib/qt/mkspecs/termux-cross"
# GST_VERSION=1.0 if/when OpenGL is supported
}
termux_step_make_install() {
make install
#######################################################
##
## Fixes & cleanup.
##
#######################################################
## Drop QMAKE_PRL_BUILD_DIR because reference the build dir.
find "${TERMUX_PREFIX}/lib" -type f -name "libQt5Multimedia*.prl" \
-exec sed -i -e '/^QMAKE_PRL_BUILD_DIR/d' "{}" \;
## Remove *.la files.
find "${TERMUX_PREFIX}/lib" -iname \*.la -delete
}

View File

@ -0,0 +1,22 @@
--- src/src/multimedia/configure.json 2021-05-08 17:50:32.795445138 +0000
+++ src.mod/src/multimedia/configure.json 2021-05-08 17:49:30.639754395 +0000
@@ -71,7 +71,8 @@
"test": "gstreamer_appsrc",
"use": "gstreamer_1_0",
"sources": [
- { "type": "pkgConfig", "args": "gstreamer-app-1.0" }
+ { "type": "pkgConfig", "args": "gstreamer-app-1.0" },
+ { "libs": "-lgstapp-1.0" }
]
},
"gstreamer_photography_0_10": {
@@ -120,7 +121,8 @@
"label": "PulseAudio >= 0.9.10",
"test": "pulseaudio",
"sources": [
- { "type": "pkgConfig", "args": "libpulse >= 0.9.10 libpulse-mainloop-glib" }
+ { "type": "pkgConfig", "args": "libpulse >= 0.9.10 libpulse-mainloop-glib" },
+ { "libs": "-lpulse", "condition": "config.unix" }
]
},
"wmf": {

View File

@ -0,0 +1,20 @@
diff -uNr src/config.tests/pulseaudio/pulseaudio.cpp src.mod/config.tests/pulseaudio/pulseaudio.cpp
--- src/config.tests/pulseaudio/pulseaudio.cpp 2020-10-15 06:53:20.000000000 +0000
+++ src.mod/config.tests/pulseaudio/pulseaudio.cpp 2021-05-08 17:18:24.844729781 +0000
@@ -27,7 +27,7 @@
****************************************************************************/
#include <pulse/pulseaudio.h>
-#include <pulse/glib-mainloop.h>
+#include <pulse/mainloop.h>
#if !defined(PA_API_VERSION) || PA_API_VERSION-0 != 12
# error "Incompatible PulseAudio API version"
@@ -37,6 +37,6 @@
{
const char *headers = pa_get_headers_version();
const char *library = pa_get_library_version();
- pa_glib_mainloop_new(0);
+ pa_mainloop_new();
return (headers - library) * 0;
}