new package: qt5-qtserialport
This commit is contained in:
parent
aa6b34f8e1
commit
76000b7f4c
|
@ -0,0 +1,33 @@
|
|||
TERMUX_PKG_HOMEPAGE=https://www.qt.io/
|
||||
TERMUX_PKG_DESCRIPTION="Qt Serial Port Library"
|
||||
TERMUX_PKG_LICENSE="LGPL-3.0"
|
||||
TERMUX_PKG_MAINTAINER="@termux"
|
||||
TERMUX_PKG_VERSION=5.15.7
|
||||
TERMUX_PKG_SRCURL="https://download.qt.io/official_releases/qt/5.15/${TERMUX_PKG_VERSION}/submodules/qtserialport-everywhere-opensource-src-${TERMUX_PKG_VERSION}.tar.xz"
|
||||
TERMUX_PKG_SHA256=20aa3988e1474c64fbb4fd7d84c43c84a03645ec3ee58c3725ff04ea987113a9
|
||||
TERMUX_PKG_DEPENDS="libc++, qt5-qtbase"
|
||||
TERMUX_PKG_BUILD_DEPENDS="qt5-qtbase-cross-tools"
|
||||
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"
|
||||
}
|
||||
|
||||
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 "libQt5SerialPort*.prl" \
|
||||
-exec sed -i -e '/^QMAKE_PRL_BUILD_DIR/d' "{}" \;
|
||||
|
||||
## Remove *.la files.
|
||||
find "${TERMUX_PREFIX}/lib" -iname \*.la -delete
|
||||
}
|
|
@ -0,0 +1,18 @@
|
|||
--- a/src/serialport/qserialport_unix.cpp
|
||||
+++ b/src/serialport/qserialport_unix.cpp
|
||||
@@ -67,13 +67,13 @@
|
||||
|
||||
#ifdef Q_OS_LINUX
|
||||
|
||||
-# ifdef Q_OS_ANDROID
|
||||
+# ifdef __ANDROID__
|
||||
# include <android/api-level.h>
|
||||
# else
|
||||
# define __ANDROID_API__ 16
|
||||
# endif
|
||||
|
||||
-# if !defined(Q_OS_ANDROID) || (!defined(Q_PROCESSOR_X86) && __ANDROID_API__ < 16)
|
||||
+# if !defined(__ANDROID__) || (!defined(Q_PROCESSOR_X86) && __ANDROID_API__ < 16)
|
||||
struct termios2 {
|
||||
tcflag_t c_iflag; /* input mode flags */
|
||||
tcflag_t c_oflag; /* output mode flags */
|
Loading…
Reference in New Issue